Skip to content

page.add_redact_annot(rect, fill=False) still has white cover. how can i delete it? #4653

Description

@Bkhxq

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.

Image Image

1.pdf
x.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions