Vertically splitting a PDF document #1679
Unanswered
dummifiedme
asked this question in
Looking for help
Replies: 1 comment 1 reply
-
From what I can think of (programming noob): We can take each page and in a loop,
Edit:Can something like this work? I actually found the "Recipe" in the documentation! 😄 Edit 2: I modified the code for my use, but I notice that the annotations are lost, and I kind of understand why. What should we do if we wish to preserve the annotations as well? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I came across some scanned PDFs which contain two pages as one.
I have a code using pymupdf which extracts highlights and images for me.
With such books which are not technically single page per page, they mess up results. So, I was wondering if there is a way to split a PDF vertically have a logical sequence in the new PDF. I can keep that snippet handy and without any need of external tools.
From what I have learnt about pymupdf, its fairly robust and can manipulate a PDF heavily. I hope this is something doable as well?
Beta Was this translation helpful? Give feedback.
All reactions