PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: HTML splits between pages
   PostPosted: 07 Aug 2011, 09:10 
Hello,

I try to render an HTML page that contains 3 divs with images, one above the other. The middle image is "split" between the first and second page.
Is there a way for PD4ML not to split the image, but instead automatically insert a page break and display the full image in the second page? In my case the height of each image is not known in advance (these are dynamic images).

Thanks,

Dani


  Subject: Re: HTML splits between pages
   PostPosted: 07 Aug 2011, 09:44 
OK, I found the enableImgSplit ,method which prevents the image from splitting.
Is there a similar solution for the surrounding div? because now, the div starts in the first page and stretches until the second page, where the image rendering starts.

Thanks,

Dani


  Subject: Re: HTML splits between pages
   PostPosted: 07 Aug 2011, 10:11 
There is a CSS style page-break-inside: avoid intended for that. Unfortunately it cannot be applied directly to DIV. So a solution would be to place the DIV content into a table cell (with invisible borders) and to apply the style to the table to the table row.



[Reply]     [ 3 posts ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share