PDFCraft
Render option

Scale a page up or down when rendering to PDF

Rendering scale factor.

Fieldoptions.scale
Typenumber, 0.1 to 2
Default1

What it is for

A multiplier on the rendered size, 0.1 to 2.0. Below 1 fits more on a page; above 1 magnifies.

The trap

This scales the render, not the layout. Media queries still see the original viewport, so scaling down does not trigger a mobile breakpoint and scaling up does not trigger a desktop one.

Example

curl -X POST https://api.pdfcraft.dev/v1/render \
  -H "Authorization: Bearer $PDFCRAFT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "html": "<h1>hello</h1>",
    "options": {
      "scale": 0.8
    }
  }' \
  --output out.pdf

Every option

Try any of these in the playground without writing a line of code, or read the full reference.