-
Hi, Can someone please guide me how to do this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
I presume you mean normal, standard text, when you say "field" - not PDF form fields? import fitz
doc = fitz.open("input.pdf")
for page in doc:
# somehow locate the items to make a list of rectangle "rects"
for rect in rects:
page.add_redact_annot(rect)
page.apply_redactions()
doc.ez_save("output.pdf") So far the easy part. |
Beta Was this translation helpful? Give feedback.
Try this script:
test-JM.zip