J-F-Liu/lopdf

[Request] Example of PDF Split

WCarrollSTO opened this issue · 2 comments

Hello, thank you for the library! It has been quite useful for merging PDFs.

I was wondering if we could please have an example of splitting PDF Pages into individual Documents. I've tried writing my own, going by the "Merge" example, but I have had no luck.

If you mean going page by page, I've been using doc.delete_pages([1,2,4,5]) to return each page in turn by removing all others.

I need to do this as well, but I need to split specific sections of a page into a new page, so one page could end up being several pages