Closed
Description
Please provide all mandatory information!
Describe the bug (mandatory)
I was trying to redact a PDF by adding the Redact annotations with the Quad of an input string
To Reproduce (mandatory)
Here's the code, hope I am not doing anything:
for page in doc:
quads = page.getTextPage().search('sample string here')
for q in quads:
page.addRedactAnnot(quads[0])
page.apply_redactions()
Expected behavior (optional)
The addRedactAnnot function should've just annotated the Quad to be removed as I apply the redaction, however it raises an error when I pass it the Quad object
Your configuration (mandatory)
- Windows 10 Pro
- Python 3.6.8 using Anaconda
- 1.16.12, installed using pip