examples: add get_country_list and add_invoice

This commit is contained in:
Richard Kubíček
2025-02-28 19:11:20 +01:00
parent 1cf1498b25
commit fa3d2ddf32
4 changed files with 129 additions and 44 deletions

View File

@@ -1,7 +1,14 @@
"""
This module contains tools for working with these examples.
"""
def save_file_as_pdf(
input_data: bytes, output_path: str = "output.pdf"
) -> None:
def save_file_as_pdf(input_data: bytes, output_path: str = "output.pdf") -> None:
"""
Save the input data as a PDF file.
:param input_data:
:param output_path:
:return:
"""
with open(output_path, "wb") as f:
f.write(input_data)