doc = pymupdf.open("D:\1.pdf")
page = doc[0]
page.add_redact_annot(quad=pymupdf.Rect([560, 225, 740, 570]), fill=False)
page.apply_redactions(images=2, graphics=1)
doc.save("d:\x.pdf")
i want to remove all elements in the red circle. it does well. but a cover ([560, 225, 740, 570]) leaves here. How can i delete this cover? tks.
1.pdf
x.pdf
doc = pymupdf.open("D:\1.pdf")
page = doc[0]
page.add_redact_annot(quad=pymupdf.Rect([560, 225, 740, 570]), fill=False)
page.apply_redactions(images=2, graphics=1)
doc.save("d:\x.pdf")
i want to remove all elements in the red circle. it does well. but a cover ([560, 225, 740, 570]) leaves here. How can i delete this cover? tks.
1.pdf
x.pdf