Open CH-Tam opened 4 days ago
Please send me the file via e-mail, thanks.
@CH-Tam - I received nothing so far ... did you use jorj.x.mckie@outlook.de?
Thanks - file received. This is a problem in the base library for which a fix has been developed. I tested it locally with the improvements and confirmed that it works.
The fix works with MuPDF v1.25.0. (the development version on GitHub).
Description of the bug
I want to remove all texts and only keep vector graphics (such as straight lines) in PDF, the code and result are shown below.
However, the original PDF does not contain that black rectangle, the output is undesired. What should I do? (the PDF file is non-public, but it can be provided though private channels.)
Both 1.24.3 and 1.24.7 have this error.
How to reproduce the bug
The result of 1st page is![image](https://github.com/pymupdf/PyMuPDF/assets/52161076/894e69f4-a6e2-45fa-a7f4-f64464d0fab0)
PyMuPDF version
1.24.7
Operating system
Linux
Python version
3.10