Skip to content
Discussion options

You must be logged in to vote

Everything ok: page=doc[11] is page number 12 in 0-based counting scheme.
But a PDF also supports page labels, which can be literally anything the PDF creator likes to see, e.g. "A-1" or Roman numbers.
So your situation may also be blurred by this.
PyMuPDF also supports page labels, and you get see what your page's label is by page.get_label():

import fitz
doc=fitz.open("pymupdf.pdf")
page=doc[4]
page.get_label()
'iii'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Arif11112000
Comment options

Answer selected by JorjMcKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants