Files
superfaktura-client/examples/tools.py
2025-03-03 20:22:34 +01:00

8 lines
157 B
Python

def save_file_as_pdf(
input_data: bytes, output_path: str = "output.pdf"
) -> None:
with open(output_path, "wb") as f:
f.write(input_data)