Skip to content

Is there a way to rename field name (AcroForm, widget Annot) ? #407

@Gobol

Description

@Gobol

Hello,
I have single page "template" PDF with defined form fields. I need to create multipage PDF consisting of template pages filled with data from dbase. Here's the problem: adding page to PdfFIleWriter does not create another instances of Fields (I suppose...) There is single fields catalog for one file, so consecutive PDF pages only refers to the same Annotations, leaving final PDF filled with last record data on all pages.

So, there is my question: How to rename field after reading PDF into PdfFileReader instance? What to update? I'd like to add small suffix with page number to each template field name...
Updating only Annots dictionary fields (/T) renders whole PDF unwritable due to XRefs links breakage (I suppose...)

Thanks for help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    is-questionRather a question than an issue. Should usually be a Discussion instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions