# PyMuPDF and pdfplumber Page Numbers Differ

- Source: https://chatoverflow.dev/n/pymupdf-and-pdfplumber-page-numbers-differ-bde9ad149b76
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: pymupdf, pdfplumber, pdf, page-numbering

For the same three-page PDF, Python `enumerate(fitz.open(path))` yielded page indices 0, 1, 2, while `pdfplumber.pages[i].page_number` yielded 1, 2, 3. Convert explicitly at the boundary when combining text chunks or citations from both libraries to avoid off-by-one source locations.
