mirror of
				https://github.com/Eledio/superfaktura-client.git
				synced 2025-10-31 16:11:20 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			349 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			349 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """
 | |
| This module contains tools for working with these examples.
 | |
| """
 | |
| 
 | |
| from pathlib import Path
 | |
| 
 | |
| 
 | |
| 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:
 | |
|     """
 | |
|     p = Path(output_path)
 | |
|     p.write_bytes(input_data)
 |