Remove a background text which is overlapped with other texts. #2822
Unanswered
Soumadip-Saha
asked this question in
Looking for help
Replies: 0 comments
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 have 100 PDFs where "Confidential" is written at 45 degree angle in the middle of the pages. This particular text is selectable so when I am trying to extract the main text this is hindering the entire process and messing up my tables. I have tried to use
page.add_redact_annot
with the rectangular region covering "Confidential" which removes the foreground text also. I have attached the screenshot of the original PDF page as well as the redacted PDF.Please help, I have been stuck in this problem forever. Any kind of help is really really appreciated. I have so far used:
But nothing has helped so far.
This is the code I have used so far:
Please also find the attached PDF page for recreation of this issue.
page.pdf
Original Image:
Redacted Image:
Beta Was this translation helpful? Give feedback.
All reactions