Skip to content

delete_pages() does not accept a single int #4462

@JojoMueller

Description

@JojoMueller

Description of the bug

document.delete_pages() should accept a single int positional parameter - called "Format 3" in documentation. But calling it with a single int parameter triggers an exception when trying to covert it to a tuple with tuple(r).

How to reproduce the bug

call e.g. delete_pages(-1)

PyMuPDF version

1.25.4

Operating system

Windows

Python version

3.13

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions