This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Pixel Width When Using Print Media

psgibbs wrote on 2013-07-16:
Is it possible to change the width of the page when using print media? When using the print media option, the page size is cut down to ~800px wide (I believe elsewhere the formula is listed as 96 px / inch), this makes the PDF somewhat inconsistent with what users are seeing. I can disable the print media option, but then 'page-break-inside' styles appear to be ignored.

Is there a good solution for this?

Thanks,
Paul
support wrote on 2013-07-17:
Hello,

Unless I'm missing something, you can use the setPageWidth() API function.

Also, page-break-inside should work regardless of the used media. If you can post here a link to your HTML document, we will take a look at it.