diff --git a/DocumentSpecs.py b/DocumentSpecs.py index 4eff801..f35183d 100644 --- a/DocumentSpecs.py +++ b/DocumentSpecs.py @@ -11,6 +11,9 @@ class DocumentSpecs(BaseModel): fontsize: int paperwidth: int paperheight: int + ratio: int margin: int vmargin: int extension: str + fps: int + stilltime: int diff --git a/FormatParameters.py b/FormatParameters.py index f221f95..478156a 100644 --- a/FormatParameters.py +++ b/FormatParameters.py @@ -8,6 +8,9 @@ class FormatParameters(BaseModel): fontsize: int paperwidth: int paperheight: int + ratio: int margin: int vmargin: int extension: str + fps: int + stilltime: int diff --git a/convert_pdf.py b/convert_pdf.py index 453d408..dba89cd 100644 --- a/convert_pdf.py +++ b/convert_pdf.py @@ -21,7 +21,7 @@ def convert_pdf(filename, filetype, output_path, resolution=300): img.alpha_channel = 'remove' image_filename = os.path.splitext(os.path.basename(filename))[0] - image_filename = f'{image_filename}-{i}.{filetype}' + image_filename = f'{image_filename}-{i:03}.{filetype}' image_filename = os.path.join(output_path, image_filename) img.save(filename=image_filename)