addRedactAnnot - Inaccurate rectangle position #1694
Unanswered
lchade
asked this question in
Looking for help
Replies: 1 comment 7 replies
-
How did you compute the redact rectangles? |
Beta Was this translation helpful? Give feedback.
7 replies
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.
-
Hello,
We're using addRedactAnnot to annotate keywords with red rectangle on pdf pages, with this code statement:
page.addRedactAnnot(area, text=sometext, cross_out=False, fill=(0.75, 0.8, 0.95), text_color=(1,1,1))
In a pdf file we've got this result:

On this page, "Mr. Reza Nakhiavani" and "Ms. Fatemeh Javaheri" are supposed to be annotated. We printed the annotated words to the console and saw the code actually manages to capture the correct text, but it just doesn't show correctly on the pdf file.
Is it because the pdf file itself messes something up? Any possibility to fix this? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions