Welcome Guest Search | Active Topics | Sign In | Register

Paragraph in a single page Options
Vignesh
Posted: Friday, March 12, 2021 10:40:32 AM
Rank: Newbie
Groups: Member

Joined: 3/3/2021
Posts: 2
Is there any option in EO to detect paragraph and keep the paragraph in single page. Paragraphs should not be split to next page
Also can EO control orphans and widows using HTML to PDF converter?
eo_support
Posted: Monday, March 15, 2021 2:13:29 PM
Rank: Administration
Groups: Administration

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

You would control this through CSS:

https://www.essentialobjects.com/doc/pdf/htmltopdf/paging.aspx#manual

So for example, if you just want P element not to break into multiple pages, you can apply the following CSS style:

Code: CSS
p
{
    page-break-inside:avoid;
}


If you can not modify the page to include such styles, you can apply it through this property:

https://www.essentialobjects.com/doc/eo.pdf.htmltopdfoptions.userstylesheet.aspx

Hope this helps.

Thanks


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.