Welcome Guest Search | Active Topics | Sign In | Register

Split Images Options
Ramon
Posted: Sunday, March 10, 2013 4:13:28 AM
Rank: Member
Groups: Member

Joined: 2/17/2013
Posts: 14
LS,

Is there a way to determine if an image will be split because of page overrun?
During HtmlToPdf coversion and prevent this by:
- scaling the picture
- move picture to next page


Regards,

Ramon
eo_support
Posted: Sunday, March 10, 2013 11:50:41 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You can apply "page-break-inside:avoid" CSS style on the image to avoid it being split. With that style if an image can not fit in the current page, it will be moved to the next page. You can find more details here:

http://www.essentialobjects.com/doc/4/htmltopdf/paging.aspx

Thanks!
Ramon
Posted: Monday, March 11, 2013 12:37:13 AM
Rank: Member
Groups: Member

Joined: 2/17/2013
Posts: 14
Hi,

Yeah I saw that option in the documentation, but never used it because of the sentence below:

Quote:

If the contents of an element with "page-break-inside: avoid" set exceed the current page, the exceeding portion is clipped off.


I will try it and if it behaves like above I will mention it in this thread.

Regards,

Ramon


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.