Create PDF Layout
pdf-layoutCreate PDFs with precise positioning using Yoga flexbox layout. Design dashboards, slides, certificates, and flyers with exact placement control.
Instructions
Create a PDF with precise positioning using Yoga flexbox layout.
Best for: Dashboards, slides, certificates, flyers, and designs requiring exact placement.
All items are positioned absolutely on specific pages. Use the "page" property to target different pages (e.g., page: 2 for multi-slide presentations). Pages are created as needed.
Use groups for flexbox containers - they support direction, gap, justify, alignItems, and alignment properties for sophisticated layouts.
Default margins: 0 (full canvas access for precise positioning).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Optional logical filename (metadata only). Storage uses UUID. Defaults to "document.pdf". | |
| title | No | Document title metadata | |
| author | No | Document author metadata | |
| font | No | Font strategy (default: auto). Built-ins: Helvetica, Times-Roman, Courier. Use a path or URL for Unicode. | |
| layout | No | Layout configuration for overflow handling | |
| pageSetup | No | Page configuration including size, margins, and background color. | |
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |