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

referencing wrong method in deletePage, deletePageRange #818

Closed
JorjMcKie opened this issue Jan 10, 2021 · 2 comments
Closed

referencing wrong method in deletePage, deletePageRange #818

JorjMcKie opened this issue Jan 10, 2021 · 2 comments
Assignees
Labels

Comments

@JorjMcKie
Copy link
Collaborator

Please provide all mandatory information!

Describe the bug (mandatory)

Exception raised when trying to delete a page (range) in a PDF, "AttributeError: 'Document' object has no attribute 'outline_xref'".

To Reproduce (mandatory)

Execute doc.deletePage(pno).

Expected behavior (optional)

Screenshots (optional)

Your configuration (mandatory)

Occurs in any v1.18.6 of PyMuPDF.

Additional context (optional)

As a hot fix for those who can access and change their installation, modify fitz.py according to the following diff file:
diff.txt

@JorjMcKie JorjMcKie added the bug label Jan 10, 2021
@JorjMcKie JorjMcKie self-assigned this Jan 10, 2021
@JorjMcKie
Copy link
Collaborator Author

There also exist Linux and OSX wheels now which fix this issue - see the respective branches of https://github.com/pymupdf/PyMuPDF-wheels.
Drop me a note if you require a Windows wheel.

@JorjMcKie
Copy link
Collaborator Author

Fixed by v1.18.7, currently being uploaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant