PDF

Render the current page as a PDF.

terminal
curl "http://localhost:9867/pdf?output=file"# Response: {"path":"/path/to/state/pdfs/page-20260308-120001.pdf","size":48210}
Response
# CLI Alternative (human-readable by default)
pinchtab pdf -o page.pdf
# Output: Saved page.pdf (48210 bytes)

pinchtab pdf                        # Auto-generates filename: page-20260308-120001.pdf

CLI Flags

FlagDescription
-o, --outputSave PDF to file path
--landscapeLandscape orientation
--scalePage scale (e.g. 0.5)
--paper-widthPaper width (inches)
--paper-heightPaper height (inches)
--page-rangesPage ranges (e.g. 1-3)
--prefer-css-page-sizeUse CSS page size
--display-header-footerShow header/footer
--header-templateHeader HTML template
--footer-templateFooter HTML template
--margin-*Margins (top, bottom, left, right)
--generate-tagged-pdfGenerate tagged PDF
--generate-document-outlineGenerate document outline
--tabTarget specific tab

API Parameters

ParameterDescription
outputfile to save server-side
rawtrue for raw PDF bytes
landscapeLandscape orientation
scalePage scale
paperWidth, paperHeightPaper dimensions