How to copy annotations from one page to another and resize the pdf when needed #2499
Replies: 3 comments 3 replies
-
Let me transfer to Discussions first ... |
Beta Was this translation helpful? Give feedback.
-
Uff, this is a difficult thing to do! First of all - to be very clear: fields / widgets never ever can be covered, because being a PDF with fields makes you a Form PDF, and there is a central object enumerating all fields in the document. The target PDF would have to become a Form PDF, the source fields would have to be joined with any existing target fields, looking / exclusing field name duplicates ... and what not. Eek! Second: If you do not insist to keep the target status "annotation" for a source page annotation, you can convert the source PDF to PDF via Otherwise, let me think a bit more ... |
Beta Was this translation helpful? Give feedback.
-
Thanks ChatGPT.
I am still finding a faster way to used just for printer... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am building a resize_pdf_pages function in python, and I have reliably been able to get the desired output, which is standardizing pages to 8.5" X 11" format. Page.show_pdf_page() made this very easy, but I am losing all annotations in the process, as this method does not preserve them. How do I both resize the pages and preserve the annotations?
I want the input and output documents to be "the same", other than resizing where needed. In the event of a page being too large, I would like the annotations to scale down with the original page, keeping their relative position to the input page. In the event of a page being too small, I do not scale the page up at all, I post it to the center of a standard 8.5" x 11" page. I would like to preserve the annotation positions relative to the original page size in this case.
Here is my current function:
Beta Was this translation helpful? Give feedback.
All reactions