<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Some applications do not correctly recognize the page size in cairo-generated postscript when the page is something other than 8.5"x11"; &nbsp;in particular, the "ps2pdf" utility, and MacOSX's "preview". This is true regardless of whether the size is specified via the call to cairo_ps_surface_create(), or a subsequent call to cairo_ps_surface_set_size().<br><div><br></div><div>Inspecting the postscript output reveals that the DSC comment "%%BoundingBox" is properly set to reflect the page size. &nbsp;However, a colleague tells me that the correct way to specify this is via:</div><div><br></div><div>%%BeginSetup</div><div>....</div><div>&lt;&lt;/PageSize [<i>widthPts heightPts</i>]&gt;&gt; setpagedevice</div><div>...</div><div>%%EndSetup</div><div><br></div><div>Indeed, when I manually add this to the cairo-output, the aforementioned apps seem to work as expected. Section 6.2 of the postscript 3 manual seems to indicate this is the correct way to specify page size (<a href="http://www.adobe.com/devnet/postscript/pdfs/PLRM.pdf">http://www.adobe.com/devnet/postscript/pdfs/PLRM.pdf</a>).</div><div><br></div><div>FWIW...</div><div>Rick Brownrigg</div><div><br></div><div><br></div></body></html>