- impemented removal of links and widgets (form fields, signatures, etc.), when their rectangles overlap with any redaction rectangle
- refactored to use PyMuPDF function for annotation removal
- fixed automatic submodule update
Closes: #98
Closes: #98
Remove links and widgets (form fields, signatures, etc.), when their rectangles overlap with any redaction rectangle. Closes: #98
@ -63,0 +60,4 @@
def redact_links(mupdf_page: pymupdf.Page):
# This should not raise an exception, but it does sometimes
Instead of being limited by #134, maybe just use redaction rectangles as additional input argument?
Done in 1b19dad419.
@ -228,1 +222,4 @@
sep='\n')
# No links on any page
links = page.mupdf_page.get_links()
assert len(links) == 0, print(page, links, sep='\n')
add test for one remaining link on second page for beautiful.pdf
Done in !151 (commit 2219c2e2cd).
Note
The build job for
0f708c4581finished with status success. Install and run the x86_64 test build with:curl https://gitlab.gnome.org/mahlzahn/censor-ci/-/jobs/6306023/artifacts/raw/censor-dev.flatpak -o censor-dev.flatpak flatpak install --user censor-dev.flatpak flatpak run --user page.codeberg.censor.Censor.Devel
Archived
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?