In pdfpdf 5.3.1 duplicated pages overwrites the original page's data it is duplicating. #3171
Labels
on-hold
PR requests that need clarification before they can be merged.A comment must give details
I was duplicating a page from reader with
copy.deepcopy
and adding it to writer withwriter.add_page
. The duplicated page overwrites the page it is duplicating.For example, if Page1 has a field
Name
filled with valueJohn
, and you duplicate Page1 and add new values , e.g. Page2 is added "Marvin", Page3 "is added "Adam", then in the generated pdf all theName
fields will be contain Adam - the last duplicated page's value.Environment
Code + PDF
This is a minimal, complete example that shows the issue:
file.pdf
The text was updated successfully, but these errors were encountered: