- utilizes PyMuPDF’s redaction annotations with infinite rectangles around the page
- Alternatively, there is
pymupdf.Page.clip_to_rect, but the following command did not remove elements outside of page border reliably:mupdf_page.clip_to_rect(mupdf_page.cropbox)
- Alternatively, there is
- makes tests of files in https://github.com/py-pdf/sample-files/tree/main/009-pdflatex-geotopo succeed
- adds a simple test file with elements outside of the page’s cropbox
Closes: #121
- utilizes PyMuPDF’s redaction annotations with infinite rectangles around the page
- Alternatively, there is [`pymupdf.Page.clip_to_rect`](https://pymupdf.readthedocs.io/en/latest/page.html#Page.clip_to_rect), but the following command did not remove elements outside of page border reliably:
```py
mupdf_page.clip_to_rect(mupdf_page.cropbox)
```
- makes tests of files in https://github.com/py-pdf/sample-files/tree/main/009-pdflatex-geotopo succeed
- adds a simple test file with elements outside of the page’s cropbox
Closes: #121