Skip to content

Add an option to start counter generator at index 0 #279

Open
@Eskapp

Description

@Eskapp

This is a feature request.

As Python indexing starts at 0, it would be natural to have the option to start the pdf2image.generators.counter_generator starting at 0. Currently, it can only start at 1 (except if I missed something).
https://github.com/Belval/pdf2image/blob/master/pdf2image/generators.py#L43

Typically, a simple extra optional argument: index_start (or similar) could be added and default to the current behavior

Also (and this is where the request idea initially comes from), pymupdf / fitz starts page index at 0. Adding this option would allow to get the same indexing for the images generated with pdf2image and the page numbers generated by pymupdf / fitz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions