Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26594

    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

    #28630

    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

    #28631

    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.

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.