Customizing the PDF
Learn how to set margins, headers, footers and other options.
Job parameters
{
"url": "https://en.wikipedia.org/wiki/Airplane",
"footer_template": "<div style=\"width=100%; font-size: 12px; text-align: center\">Page <span class=\"pageNumber\"></span> of <span class=\"totalPages\"></span></div>",
"margin_bottom": "2cm"
}$ curl -u myapp-api-key: \
--data @body.json \
--header "Content-Type: application/json" \
https://api.paperplane.app/jobs
{
"id": "29d89d2f-1a4f-4bcc-a2ff-16ca6e90e635",
"url": "https://en.wikipedia.org/wiki/Airplane",
"status": "queued",
"done": false,
"object": "job"
}$ curl -u myapp-api-key: https://api.paperplane.app/jobs \
-d url="https://en.wikipedia.org/wiki/Airplane" \
-d margin_top=0.5cm \
-d margin_bottom=0.5cm \
-d page_size=A4
{
"id": "a43ad1ff-ee2a-4c32-b279-eef51cc46d12",
"url": "https://en.wikipedia.org/wiki/Airplane",
"status": "queued",
"done": false,
"object": "job"
}Custom page sizes
Size units
Last updated