Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong internal property accessed in get_xml_metadata #3100

Closed
gsiegman opened this issue Jan 26, 2024 · 2 comments
Closed

Wrong internal property accessed in get_xml_metadata #3100

gsiegman opened this issue Jan 26, 2024 · 2 comments
Labels
fix developed release schedule to be determined

Comments

@gsiegman
Copy link

Description of the bug

In the Document method get_xml_metadata on line 4274 of init.py the following code is accessing the wrong property internal.

if xml and xml.internal:

It should be:

if xml and xml.m_internal:

How to reproduce the bug

  1. Open a document

  2. Run the method Document.get_xml_metadata

PyMuPDF version

1.23.19

Operating system

MacOS

Python version

3.11

@julian-smith-artifex-com
Copy link
Collaborator

Thanks for this, you are quite right. It's fixed in my tree.

@julian-smith-artifex-com
Copy link
Collaborator

Fixed in 1.23.20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix developed release schedule to be determined
Projects
None yet
Development

No branches or pull requests

2 participants