pymupdf4llm and page 0 counting upwards #3730
Replies: 1 comment
-
pymupdf4llm here follows the same convention as pymupdf and literally all other libraries dealing with document management. |
Beta Was this translation helpful? Give feedback.
-
Hi and thanks for a great library!
Im running
But the pages starts at 0 which makes the reference system i built furter down my data pipe a mess.
I can add a loop over the files in the folder and do a +1 on every page number but then i need to do the same in the extracted .md files as well for the images. Is there a more gracious way to tell pymupdf4llm to start counting page 1 as one, instead of 0? That would save me a lot of post processing.
Tanks
Beta Was this translation helpful? Give feedback.
All reactions