How to crop a pdf page? #306
Answered
by
TomColdenhoff
TomColdenhoff
asked this question in
Q&A
-
I'm trying to crop out the margins of a pdf before I extract the text from it. So far I haven't figured out how to do so. Can someone tell me if PdfPig supports this? and if it does, how I should do it? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
TomColdenhoff
Mar 11, 2021
Replies: 1 comment
-
Found the answer! after extracting the words I was able to check if the words were inside a given rectangle. My code:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TomColdenhoff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the answer! after extracting the words I was able to check if the words were inside a given rectangle.
My code: