Skip to content

Doesn't Set Linked Form Values #398

@malvidin

Description

@malvidin

If a form text field is linked to multiple locations in a PDF, PdfFileWriter.updatePageFormFieldValues fails to set the value.

If writer_annot contains a link to a Parent object, the value in that should object should be set.
writer_annot_parent = page['/Annots'][j]['/Parent'].getObject()

https://github.com/mstamy2/PyPDF2/blob/a4279cff969c38a346a29aa0d3174a8b7bf08bbe/PyPDF2/pdf.py#L366

Metadata

Metadata

Assignees

No one assigned

    Labels

    PdfWriterThe PdfWriter component is affectedis-bugFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFworkflow-formsFrom a users perspective, forms is the affected feature/workflow

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions