Skip to content

Page setup ​

Sizes are physical. A higher dpi adds pixels and leaves the page the same size on paper. Margins and type sizes stay in millimetres and points, so you do not recalculate them when you change dpi.

Page size ​

page_size defaults to a4. orientation is portrait or landscape. Landscape swaps the width and height below.

page_sizeSize150 DPI300 DPI600 DPI
letter8.5 × 11 in1275 × 16502550 × 33005100 × 6600
legal8.5 × 14 in1275 × 21002550 × 42005100 × 8400
tabloid11 × 17 in1650 × 25503300 × 51006600 × 10200
a3297 × 420 mm1754 × 24803508 × 49617016 × 9921
a4210 × 297 mm1240 × 17542480 × 35084961 × 7016
a5148 × 210 mm874 × 12401748 × 24803496 × 4961
a6105 × 148 mm620 × 8741240 × 17482480 × 3496
b5176 × 250 mm1039 × 14762079 × 29534157 × 5906
india-18x24180 × 240 mm1063 × 14172126 × 28354252 × 5669
postcard-4x64 × 6 in600 × 9001200 × 18002400 × 3600
card-5x75 × 7 in750 × 10501500 × 21003000 × 4200
square10.2 × 10.2 in1530 × 15303060 × 30606120 × 6120

Pixel sizes are round(millimetres / 25.4 × dpi) for the portrait page.

dpi is 150, 300, or 600. The default is 150. A 300 or 600 DPI file is a larger download. The link still expires 15 minutes after the response.

Paper ​

paper chooses the ruling. plain, college-ruled, and wide-ruled work on every key. The other papers are enabled per key. Ask for them in the access request. A paper the key cannot use returns feature_not_enabled.

paperPage
plainUnruled page
college-ruledCollege ruled, about 7.1 mm between lines
wide-ruledWide ruled, about 8.7 mm between lines
feint-ruledFeint ruled
gridSquare grid, 5 mm or 10 mm
squared-10mm10 mm squares
dotsDot grid
memoWarm memo ruling
india-school-single-lineIndia school single line
india-school-squareIndia school square
india-college-single-lineIndia college single line
lineatur-25Lineatur 25
lineatur-27Lineatur 27
lineatur-28Lineatur 28
cis-school-gridCIS school grid
cis-school-lineCIS school line

tint is white, cream, aged, or dark. The default is white. Tint is not drawn on a transparent PNG.

grid_size is small or large. It changes grid and dots only. Small is about 5 mm. Large is about 10 mm. Named papers such as squared-10mm keep their own pitch.

If you omit margins_mm, the API uses the writing margins of the selected paper. College-ruled and wide-ruled pages keep a wide left margin so the text clears the red line. Send all four edges when you want your own margins. Each edge is 0 to 80 millimetres.

json
"margins_mm": { "top": 18, "right": 16, "bottom": 18, "left": 16 }

Text block ​

FieldDefaultRangeMeaning
alignmentleftleft, center, rightHorizontal alignment of the lines
directionautoauto, ltr, rtlWriting direction. auto follows the text
line_height1.30.8–3Line spacing as a multiple of the font size
paragraph_spacing_mm00–30Extra space after a blank-line paragraph
font_size_pt228–72, or autoBody size in points
max_font_size_pt368–72Largest size used when the size is auto

auto reduces the size until the text fits within the page limit for the format. The smallest automatic size is 8 points. If the text still needs more pages than the format allows, the response is page_limit_exceeded. The response field font_size_pt is the size that was used.

Keys are enabled after you request access.