There is no
page_format option in the API but you can use the
width and
height API options. Here are examples of some common page formats:
Legal:
<input type='hidden' name='width' value='8.5in' />
<input type='hidden' name='height' value='14in' />
Letter:
<input type='hidden' name='width' value='8.5in' />
<input type='hidden' name='height' value='11in' />
A4:
<input type='hidden' name='width' value='210mm' />
<input type='hidden' name='height' value='297mm' />