Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't Set Linked Form Values #398

Closed
malvidin opened this issue Mar 5, 2018 · 0 comments · Fixed by #414
Closed

Doesn't Set Linked Form Values #398

malvidin opened this issue Mar 5, 2018 · 0 comments · Fixed by #414
Labels
is-bug From a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF PdfWriter The PdfWriter component is affected workflow-forms From a users perspective, forms is the affected feature/workflow

Comments

@malvidin
Copy link
Contributor

malvidin commented Mar 5, 2018

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

malvidin added a commit to malvidin/PyPDF2 that referenced this issue Apr 5, 2018
@MartinThoma MartinThoma added is-bug From a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF PdfWriter The PdfWriter component is affected and removed is-bug From a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF labels Apr 7, 2022
@MartinThoma MartinThoma added the workflow-forms From a users perspective, forms is the affected feature/workflow label Apr 16, 2022
MartinThoma pushed a commit that referenced this issue Apr 16, 2022
If a form text field is linked to multiple locations in a PDF, PdfFileWriter.updatePageFormFieldValues failed to set the value.

If writer_annot contains a link to a Parent object, the value in that should object should be set.

Closes #398
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-bug From a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF PdfWriter The PdfWriter component is affected workflow-forms From a users perspective, forms is the affected feature/workflow
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants