Copy a page from document to another

Discuss PDF file handling with the Polybios plugin here
Post Reply
amiga23
Posts: 20
Joined: Thu Jan 30, 2014 6:01 pm

Copy a page from document to another

Post by amiga23 »

Is it possible to load a page from one PDF and safe it in another? Simple use case would be to split PDFs into single pages, or merge several pages into one document.

I did not find anything in the documentation how to do this.

addPage and insertPage only create empty pages.

Any hints?

User avatar
airsoftsoftwair
Posts: 4349
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Copy a page from document to another

Post by airsoftsoftwair »

I'm afraid that's not possible currently. But some editing capabilities are planned for the future.

amiga23
Posts: 20
Joined: Thu Jan 30, 2014 6:01 pm

Re: Copy a page from document to another

Post by amiga23 »

Thank you for the answer. In python I have also not found a framework so I am combining pypdf2 and pdfminer to achieve that feature.

An alternative could be to remove the unwanted pages. If that would be possible in future, would be great. Then I could simply create a copy of the document and remove pages to implement the split functionality. But no hurry if you have other priorities, I have a solution with python3 now.

Thank you for the many updates you provide.

Post Reply