-
Notifications
You must be signed in to change notification settings - Fork 664
Closed
Labels
fix developedrelease schedule to be determinedrelease schedule to be determinedhas testupstream bugbug outside this packagebug outside this package
Description
Description of the bug
with some docs with already disabled optional content layers the rendered pages still contain them;
example link: https://dropmefiles.com/zTbp4
How to reproduce the bug
f = 'path/oc-for-ocr.pdf'
dpi = 150
import fitz
from PIL import Image
doc = fitz.open(f)
print(doc.layer_ui_configs()) # shows that almost all layers except "Text" are off
pix = doc[0].get_pixmap(matrix=fitz.Matrix(dpi/72, dpi/72))
img =Image.frombytes('RGB', (pix.width, pix.height), pix.samples)
img.show() # displays image containing all layers infoPyMuPDF version
1.24.9
Operating system
Windows
Python version
3.8
Metadata
Metadata
Assignees
Labels
fix developedrelease schedule to be determinedrelease schedule to be determinedhas testupstream bugbug outside this packagebug outside this package