Open elipongr opened 2 months ago
There is need to used page.clean_contents()
any longer to ensure correct positions of content insertions.
Any blog or documentation where you have updated it?
Any blog or documentation where you have updated it?
We have made this more explicit in the current documentation https://pymupdf.readthedocs.io/en/latest/functions.html#Page.clean_contents.
Otherwise, this is now a duplicate of #4034, for which an upstream bug has been submitted.
We have another issue:
We use it with
page.clean_contents(true)
, as you know making it false causes the issue above. The result is that the whole PDF content is deleted.White_pdf_IN.pdf White_pdf_OUT.pdf
Originally posted by @elipongr in https://github.com/pymupdf/PyMuPDF/issues/3741#issuecomment-2373626282