Generate single and multi-page PDFs from templates
| Method | Endpoint | Description |
|---|---|---|
POST | /pdf/render | Render PDF from a template |
POST | /pdf/multi-page | Multi-page PDF with different content per page |
GET | /pdf/presets | List presets for paper sizes |
| Preset | Dimensions | Description |
|---|---|---|
A4 | 210 x 297 mm | ISO standard, most common worldwide |
Letter | 8.5 x 11 in | US standard letter size |
Legal | 8.5 x 14 in | US legal size |
A3 | 297 x 420 mm | Large format |
A5 | 148 x 210 mm | Compact size, booklets |
custom | User-defined | Specify with customSize |
| Parameter | Type | Default | Description |
|---|---|---|---|
preset | string | A4 | Paper size preset |
landscape | boolean | false | Landscape orientation |
margins | object | - | Page margins (top, bottom, left, right) in pixels |
customSize | object | - | Custom dimensions when preset is custom |
printBackground | boolean | true | Include CSS backgrounds |
scale | number | 1 | Scale factor (0.1-2.0) |
userStorageUrl response field is only included if you have configured custom storage.API key obtained from the Pictify dashboard