HTML to PDF/RTF Java converter and tools › Forums › PD4ML v3 Archived Forums (Read Only) › PD4ML Tips & Tricks › How auto splite image inpd4ml › Re: Re: How auto splite image inpd4ml
May 26, 2010 at 20:50
#27355
If the image dimensions fit a single page, there is a couple of methods should help:
- PD4ML API call pd4ml.enableImgSplit(false)
- CSS style IMG { page-break-inside: avoid }. In most of situations it is better to apply style page-break-inside: avoid not to an image directly, but to its hosting container (div, table row, etc).
Of course, if a particular image does not fit a single page, both methods take no effect for it.
From the two alternatives we would recommend to use the CSS approach. If your HTML documents are read-only, you may define the extra styles with addStyle() PD4ML API call.