TheDocumentation Index
Fetch the complete documentation index at: https://genui.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
pdf template generates a PDF document from HTML or Markdown content.
Content Schema
HTML content to render as PDF
Markdown content to render as PDF (alternative to HTML)
Custom CSS styles for the PDF
Page size:
a4, letter, legal (default: a4)Page orientation:
portrait, landscape (default: portrait)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
| Size | Dimensions |
|---|---|
a4 | 210 x 297 mm |
letter | 8.5 x 11 in |
legal | 8.5 x 14 in |
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