pymupdf / PyMuPDF

PyMuPDF is a high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.
https://pymupdf.readthedocs.io
GNU Affero General Public License v3.0
4.52k stars 446 forks source link

Addresses wrong label generation #3513

Closed JorjMcKie closed 1 month ago

JorjMcKie commented 1 month ago

We compute a wrong index for page labels enumerating the ASCII letter range, so that we always deliver label number +1 for a given page number.

This fix subtracts 1 from the index for label styles "a"/"A".