From f780473b5bccec1ea54bd096c60ea868cf376efb Mon Sep 17 00:00:00 2001 From: geisserml Date: Thu, 7 Dec 2023 21:05:41 +0100 Subject: [PATCH] cli: fix output numbering (should be 1-based) --- src/pypdfium2/_cli/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pypdfium2/_cli/render.py b/src/pypdfium2/_cli/render.py index 49045294b..daddded23 100644 --- a/src/pypdfium2/_cli/render.py +++ b/src/pypdfium2/_cli/render.py @@ -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)