Skip to main content
HandTextAI renders a single page using a fixed page size and orientation.

Supported page sizes

Use page_size with one of these values:

ISO (A-series)

page_sizemm (W×H)px @ 300 DPIpx @ 600 DPI
a3297×4203508×49617016×9921
a4210×2972480×35084960×7016
a5148×2101748×24803496×4961
a6105×1481240×17482480×3496

US paper

page_sizeinches (W×H)px @ 300 DPIpx @ 600 DPI
letter8.5×112550×33005100×6600
legal8.5×142550×42005100×8400
half_letter5.5×8.51650×25503300×5100

Cards

page_sizeinches / mm (W×H)px @ 300 DPIpx @ 600 DPI
postcard_us4×61200×18002400×3600
card_5x75×71500×21003000×4200
card_a24.25×5.51275×16502550×3300
square_5x55×51500×15003000×3000
card_96x13596×135mm1134×15942268×3189

Envelopes (content sizes)

page_sizeinches / mm (W×H)px @ 300 DPIpx @ 600 DPI
dl99×210mm1169×24802338×4960
envelope_104.125×9.51238×28502476×5700
envelope_monarch3.875×7.51163×22502326×4500

Orientation

Set orientation: "landscape" to swap width and height.

DPI scaling rule (critical)

All pixel parameters (margins, font size, spacing) are specified at a 300 DPI baseline. If you set dpi: 600, the service automatically scales these values so the output matches the same real-world physical size.