Skip to content

referencing wrong method in deletePage, deletePageRange #818

@JorjMcKie

Description

@JorjMcKie

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions