SuffolkLITLab / FormFyxer

A tool for learning about and pre-processing forms
MIT License
11 stars 1 forks source link

Renaming PDF fields doesn't seem to work on fields used more than once #123

Closed BryceStevenWilley closed 1 year ago

BryceStevenWilley commented 1 year ago

I.e. if the there's two fields with the same name, the tool can't seem to rename any of them, even if all of the renames that you give to each are the same name. Gonna take a quick look at this now, it wasn't blocking, but did confuse me for a bit.

BryceStevenWilley commented 1 year ago

Realizing how light of a wrapper this is over FormFyxer. This issue is almost certainly something wrong on that side, so I'll move it to that repo.

nonprofittechy commented 1 year ago

I guess now Docassemble can fill PDFs with multiples of the same field name, but that wasn't historically true. Maybe we can also fix this issue if QPDF supports it.

I suspect internally when a name is duplicated, it looks different to QPDF. Adobe Acrobat shows names like that with a # symbol at the end.

BryceStevenWilley commented 1 year ago

It turned out to be an easy fix. It's one field from the PDF perspective, but it just has Kids that are shown in different places. We weren't able to rename it because we were expecting certain fields to be present that weren't, so we were just skipping over those fields.