Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

Blank First Page on Large Table Options
Brad Blankenship
Posted: Thursday, April 13, 2017 3:11:57 PM
Rank: Member
Groups: Member

Joined: 11/8/2015
Posts: 26
I have a document that produces a very long table. EO.PDF is creating a mostly blank first page, after my report header. When printing the html from Chrome, this does not happen.

I will send over a sample project and final PDF for review as the information contained is confidential.
eo_support
Posted: Monday, April 17, 2017 12:49:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 19,333
Hi,

We have looked into the issue. The root of the problem is the following CSS rule:

Code: C#
.page-break:last-child {
    page-break-after: avoid !important;
}


This rule is applied to the first "page-break" DIV (which contains the big table) and it has the effect of sticking this DIV together with the element immediately after it. This cause the whole DIV to be treated as an unbreakable section, in the best effort not to break this DIV, the converter moves the whole section from the first page to the second page since the second page has more available space than the first page. To avoid this problem you will need to remove the above rules.

The fact that the converter treats two adjacent elements as unbreakable if the first element has "page-break-after:avoid" does seem to be excessive and causes issues like yours that's hard to troubleshoot. We will change our next build to only create a small unbreakable area between the first and second element. This will work better for your situation but will still have its limitation ---- for example, if there is a large space between the first and the second element (such as introduced by the first element's margin-bottom), then even if you have page-break-after:avoid on the first element, the small page break avoid section will not be large enough to cover this space between the two elements and page break can still occur.

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.