Forum How do I...?

How do I break images across pages?

kingradar
I have an image that is approximately 1024pixels wide, and 4009 pixels high. I'm including it via an img tag. Ie:

<img alt="Page Image" src="data:image/gif;base64,........." />


The image appears to be scaled down to approximately 7.5 inches wide inside the PDF, but the bottom just runs off the page. Is it possible for me to instruct Prince to break the image up across multiple pages, if necessary?

I've tried using "page-break-inside: auto" with no success.

Thanks,

Ladar
mikeday
Sorry, Prince will never break images across multiple pages. You will need to split it into multiple images yourself, or scale it down to fit on one page by setting width and/or height.