PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: A few questions about PD4ML
   PostPosted: 24 Nov 2010, 12:22 
Hi everybody,

I'm trying PD4ML library and i have a few questions (I dont find answers during my tests and in the documentation) :

1. Could I handle events whenever PD4ML creates a new page?
for exemple :
- Could I create a margin-left at each uneven page and a margin-right at each even page ?
- Could I avoid orphan ?

2. When I create a table of contents, how can I refered the title to his pagenumber ?

Thank you !


  Subject: Re: A few questions about PD4ML
   PostPosted: 24 Nov 2010, 15:45 
> 1. Could I handle events whenever PD4ML creates a new page?

No.

> - Could I create a margin-left at each uneven page and a margin-right at each even page ?

We call the feature "mirrored margins", it is in our TODO list, and it is going to be available with forthcoming versions.

> - Could I avoid orphan ?

you may achieve that with a conditional page breaks
<pd4ml:page.break ifSpaceBelowLessThan="150">
placed before paragraphs, or by "page-break-inside: avoid" CSS style applied to paragraph portions.

> 2. When I create a table of contents, how can I refered the title to his pagenumber ?

<pd4ml:toc> generates a table of contents from H1-h6 hierarchy with correct references and page numbers.

Page numbering info is known on the very late phases of PDF output, so there is no reasonable way to implement, for example, placeholders for page numbers in main HTML body.


  Subject: Re: A few questions about PD4ML
   PostPosted: 24 Nov 2010, 17:33 
Thank you for the answer !

I'll try to avoid orphan and the TOC. And I'll wait for the "mirrored margins" :-)



[Reply]     [ 3 posts ] 

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