url_to_pdf
Fetch a URL and convert it to PDF using Prince.
Args:
url: URL of a document to fetch and convert
style: Additional CSS to apply (inline stylesheet content)
page_size: Page size (e.g., A4, letter)
page_margin: Page margins (e.g., 20mm)
javascript: Enable JavaScript execution
pdf_profile: PDF profile (e.g., PDF/A-3b, PDF/UA-1)
output_filename: Output filename for the PDF (default: "output.pdf")
markdown_to_pdf
Convert Markdown content to PDF using Prince.
Args:
content: Markdown content to convert
style: Additional CSS to apply (inline stylesheet content)
page_size: Page size (e.g., A4, letter)
page_margin: Page margins (e.g., 20mm)
javascript: Enable JavaScript execution
pdf_profile: PDF profile (e.g., PDF/A-3b, PDF/UA-1)
output_filename: Output filename for the PDF (default: "output.pdf")
html_to_pdf
Convert HTML content to PDF using Prince.
Args:
content: HTML content to convert
style: Additional CSS to apply (inline stylesheet content)
page_size: Page size (e.g., A4, letter)
page_margin: Page margins (e.g., 20mm)
javascript: Enable JavaScript execution
pdf_profile: PDF profile (e.g., PDF/A-3b, PDF/UA-1)
output_filename: Output filename for the PDF (default: "output.pdf")