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

html to pdf api: pictures printed across two pages

Low_slow wrote on 2013-04-26:
I'm using the free version of the "html to pdf"-api and I'm getting images being split across two pages when producing pdfs from our website, which is a bit weird. Is there a way to set it so the picture is scaled to fit on the first page, or is moved as one to the second page?
support wrote on 2013-04-26:

In some cases it may help to set the "page-break-inside:avoid" css property on images:
img { page-break-inside:avoid; }