You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromPILimportImageimportio, osimportpymupdf.propymupdf.pro.unlock() # add trial key for more than 3 pagesdocument=pymupdf.open("pink-elements-inside-image1-not-shown.docx")
image_bytes=document.load_page(0).get_pixmap().tobytes(output="png")
img=Image.open(io.BytesIO(image_bytes))
img.save("tmp.png")
and open tmp.png to observe that the pink graphical elements are omitted (while they are shown if you open the document with other software like Google Docs or Mac's Pages)
PyMuPDF version
1.25.0
Operating system
Linux
Python version
3.9
The text was updated successfully, but these errors were encountered:
Description of the bug
At a
.docx
file, PyMuPDF Pro did not display certain graphical purple elements:With PyMuPDF Pro:
With Google Docs or Mac's Pages app:
How to reproduce the bug
Download attached pink-elements-inside-image1-not-shown.docx and run
and open
tmp.png
to observe that the pink graphical elements are omitted (while they are shown if you open the document with other software like Google Docs or Mac's Pages)PyMuPDF version
1.25.0
Operating system
Linux
Python version
3.9
The text was updated successfully, but these errors were encountered: