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
The problem was overwriting a dictionary key value. Easy fix.
Of course, "description" is correct, which will be reflected in the returned dictionary and the documentation likewise.
Description of the bug
Using
doc.embfile_add()
, I added an attachment to a pdf file. Then, I retrieved its metadata usingdoc.embfile_info()
.In contrast to the documentation at https://pymupdf.readthedocs.io/en/latest/document.html#Document.embfile_info, the resulting dict does not contain a
desc
field for the description. Instead, the description is found under the keydescender
:How to reproduce the bug
With
doc
being apymupdf.Document
, just callResult:
PyMuPDF version
1.24.13
Operating system
MacOS
Python version
3.12
The text was updated successfully, but these errors were encountered: