Repository navigation
page.add_redact_annot(rect, fill=False) still has white cover. how can i delete it? #4654
Replies: 4 comments 4 replies
|
This is not an issue, but a Discussions item. |
0 replies
|
Your page is a wild mixture of images and graphics and text overlapping each other in different constellation. for p in page.get_drawings():
page.draw_rect(p["rect"], color=(1, 0, 0))
for img in page.get_image_info():
page.draw_rect(img["bbox"], color=(0, 1, 0))Then decide whether you have a chance at all - at least using redactions. |
4 replies
0 replies
|
@Bkhxq If required please continue this discussion on our forum at https://forum.pymupdf.com , we are trying to move all discussions there! :) |
0 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.
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions