Stamp annotation not being displayed in Acrobat #1670
Replies: 7 comments
-
I recommend to use append() instead that add_page() that is pulling more data
Can you check you are getting what you are expecting ? |
Beta Was this translation helpful? Give feedback.
-
In order to modify the contents of the pages, a new PDF document cannot be created based solely on the original. As a result, I have to iterate through the pages, conduct relevant operations on the page object, and subsequently save the adjusted pages to a new PDF file. |
Beta Was this translation helpful? Give feedback.
-
oups to quick/tired 🥴. I've updated the code propolsa |
Beta Was this translation helpful? Give feedback.
-
Once the page have been copied in, can your code modify them ? |
Beta Was this translation helpful? Give feedback.
-
I close this issue and convert it as a discussion. |
Beta Was this translation helpful? Give feedback.
-
This approach works, however I still have the same result in the new file - the stamp annotation is not there. |
Beta Was this translation helpful? Give feedback.
-
I've been a little to quick to convert it to discussion. I create an issue on last post |
Beta Was this translation helpful? Give feedback.
-
I am currently developing a script that iterates over the pages of a PDF file, removes specified annotations, and generates a new PDF file as output.
To simplify the example presented below, I have only included code for iterating over the pages and writing them to the new PDF
Upon opening the resulting "new_sample.pdf" file with Acrobat, it can be observed that the stamp annotation that existed in the original file has been unexpectedly removed.
Code + PDF
This is a minimal, complete example that shows the issue:
sample.pdf
Beta Was this translation helpful? Give feedback.
All reactions