figure_scale argument to function .to_pdf(..) added

This commit is contained in:
Nicolas 2025-05-23 13:52:59 +02:00
parent b3c2f5e384
commit c4fdb5040a
1 changed files with 2 additions and 1 deletions

View File

@ -674,6 +674,7 @@ class DocumentWriter():
font_family: Literal[None, 'serif', 'sans-serif'] = None, font_family: Literal[None, 'serif', 'sans-serif'] = None,
table_renderer: TRenderer = 'simple', table_renderer: TRenderer = 'simple',
latex_template_path: str = '', latex_template_path: str = '',
figure_scale: float = 1,
engine: latex.LatexEngine = 'pdflatex') -> bool: engine: latex.LatexEngine = 'pdflatex') -> bool:
""" """
Export the document to a PDF file using LaTeX. Export the document to a PDF file using LaTeX.
@ -689,7 +690,7 @@ class DocumentWriter():
Returns: Returns:
True if the PDF file was successfully created True if the PDF file was successfully created
""" """
latex_code = inject_to_template(self.to_latex(font_family, table_renderer), latex_code = inject_to_template(self.to_latex(font_family, table_renderer, figure_scale),
latex_template_path, latex_template_path,
'templates/default_template.tex') 'templates/default_template.tex')