pdf template generates a PDF document from HTML or Markdown content.
Content Schema
string
HTML content to render as PDF
string
Markdown content to render as PDF (alternative to HTML)
string
Custom CSS styles for the PDF
string
Page size:
a4, letter, legal (default: a4)string
Page orientation:
portrait, landscape (default: portrait)object
Page margins with
top, right, bottom, left in pixelsProvide either
html or markdown, not both. If both are provided, html takes precedence.Example: HTML to PDF
Example: Markdown to PDF
Response with Download URL
Page Sizes
Use Cases
- Invoices: Billing documents
- Contracts: Agreements and legal documents
- Reports: Formal reports and summaries
- Certificates: Awards and certifications
- Exports: Printable versions of any content