Welcome Guest Search | Active Topics | Sign In | Register

page-break-after avoid in EO.pdf Options
Ha11owed
Posted: Monday, November 28, 2011 12:55:03 PM
Rank: Newbie
Groups: Member

Joined: 11/16/2011
Posts: 9
Hallo,

page-break-after: avoid; currently does not work, It would be very usefull in a situation where a table has a subheader that should be printed before a row:

A html example with subheaders in table2 (the color of the subheaders is red)
html source

and a sample output where after the subheader the page breaks
pdf output

with this feature such a case would be avoided and the subheader would always be printed before a row and never as the last item on the page.
eo_support
Posted: Monday, November 28, 2011 3:05:01 PM
Rank: Administration
Groups: Administration

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

"avoid" only works for "page-break-inside". "always" works for both "page-break-before" and "page-break-after". "avoid" does not work for either because it needs to know exactly within what range page break should be avoided, that means it's only avoid for "page-break-inside".

Thanks
Ha11owed
Posted: Tuesday, November 29, 2011 3:50:17 AM
Rank: Newbie
Groups: Member

Joined: 11/16/2011
Posts: 9
Hallo,

I understand the problem, but couldn't the element before and the element after the current item (on the same level of the html tree) be used to determine the range ?

Also, I understand that this is something that would require a lot of work, but I would like to know if you intend to add it since we have to support subheaders and have to find a diffrent solution if it will not be supported.

Thanks
eo_support
Posted: Tuesday, November 29, 2011 9:36:31 AM
Rank: Administration
Groups: Administration

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

The feature is not difficult to implement. Our main concern is logically it has to be clear and easy enough for our users to clearly understand what it does, and it has to be useful enough for sufficient amount of users so that it would be considered worthwhile for the additional complexity both from the implementation point of view and from the end user point of view. In the case of "previous" and "next" element, it's not always as clear as it looks. For example, logically the next element of a table header row would be the TBODY element instead of the next TR (because the header row is the only child of the THEAD and the THEAD’s next sibling is TBODY). Thus if you apply “page-break-after:avoid” on the table header row it will keep the whole table together instead of just putting the table header row and the next row together. This adds unnecessary confusion to our users.

Another concern is page-break-before/after: avoid is not supported on many browsers yet. We definitely do not want to go ahead of browsers because we do not lead the brower war. We follow the browsers so that our users can comfortably count on the fact that their page behaves the same in our converter as in their browsers. This is important because the absolute majority of our users have the output in their browsers first.

Thanks!
Ha11owed
Posted: Wednesday, November 30, 2011 5:13:51 AM
Rank: Newbie
Groups: Member

Joined: 11/16/2011
Posts: 9
Hallo,

We will solve this problem in another way. Thank you for you clear answer.
Ha11owed
Posted: Tuesday, December 17, 2013 7:25:59 AM
Rank: Newbie
Groups: Member

Joined: 11/16/2011
Posts: 9
Seem that the last version of EO Pdf supports page-break-after: avoid;
Is is officially supported or just a coincidence?

Thank you very much!
eo_support
Posted: Tuesday, December 17, 2013 3:04:46 PM
Rank: Administration
Groups: Administration

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

Yes. I believe page-break-after:avoid is supported in the latest build. When you apply page-break-after:avoid, it is the same as applying page-break-inside:avoid for the next element.

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.