doc.need_appearances()
fails with "AttributeError: module 'pymupdf.mupdf' has no attribute 'PDF_TRUE' "
#3859
Labels
bug
fix developed
release schedule to be determined
Fixed in next release
upstream bug
bug outside this package
Description of the bug
Since
fitz_new
has replaced the oldfitz
module, attempting to set the/NeedAppearances
property withdoc.need_appearances()
results in anAttributeError
. It seems the attributesPDF_TRUE
andPDF_FALSE
are missing from the new module.I could reproduce this issue with PyMuPDF version 1.24.10. Notice that
doc.need_appearances()
used to work withfitz_old
in version 1.24.1 and earlier.How to reproduce the bug
The issue can be reproduced with this example PDF form:
http://foersom.com/net/HowTo/data/OoPdfFormExample.pdf
When attempting to set
doc.need_appearances()
with the snippet below:The following traceback is shown:
The same issue happens with
PDF_FALSE
as well.PyMuPDF version
1.24.10
Operating system
MacOS
Python version
3.12
The text was updated successfully, but these errors were encountered: