pip install pdfitdown
app.py
1 2 3 4 5 6 7 |
from pdfitdown.pdfconversion import Converter converter = Converter() converter.convert(file_path = "images/1.jpg", output_path = "logo.pdf") converter.convert(file_path = "users.csv", output_path = "users.pdf") converter.convert(file_path = "sample.xlsx", output_path = "users2.pdf") converter.convert(file_path = "sample.md", output_path = "business_growth.pdf", title="Business Growth for Q3 in 2024") |