PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Keeping header and tables together [paging]
   PostPosted: 13 Jul 2010, 18:01 
Often when i use a construction like <h2>...<table>... the header ends up at the middle of the first page and the table on a new page.

Is it possible to give some single directive to keep headers always on the same page as their first lines of content, or is the only option to put the header and its associated content in a DIV with "page-break-inside: avoid"?


Best regards,
Arvid


  Subject: Re: Keeping header and tables together [paging]
   PostPosted: 14 Jul 2010, 18:15 
Another option is to place a conditional page break before <h2>

For example <pd4ml:page.break ifSpaceBelowlessThan="500"/>


  Subject: Re: Keeping header and tables together [paging]
   PostPosted: 15 Jul 2010, 10:52 
Yes, that could be useful too, if you have a good idea about the size of the element coming after the heading. I'm not sure that it would be so helpful to add as a general directive in our pre-processor, though.

Most typesetting/word processing tools have logic that ensures that a header will never be the last thing on a page, it would be very neat to a have generic function like that in PD4ML.

Perhaps a tag like <pd4ml:please-dont-break-here>, that could be added by a pre-processor after every element that you don't want to be the last on a page, would be really nice!



[Reply]     [ 3 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share