Skip to content

Commit

Permalink
cli: fix output numbering (should be 1-based)
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Dec 7, 2023
1 parent 65fc95d commit f780473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pypdfium2/_cli/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def __init__(self, path_parts):

def _get_path(self, i):
output_dir, prefix, n_digits, format = self._path_parts
return output_dir / f"{prefix}{i:0{n_digits}d}.{format}"
return output_dir / f"{prefix}{i+1:0{n_digits}d}.{format}"

def __call__(self, bitmap, i):
out_path = self._get_path(i)
Expand Down

0 comments on commit f780473

Please sign in to comment.