HTML to PDF/RTF Java converter and tools › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › A few questions about PD4ML This topic has 2 replies, 2 voices, and was last updated Nov 24, 201015:33:59 by VonDriguen. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts VonDriguen November 24, 2010 at 10:22 #26487 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 ! PD4ML November 24, 2010 at 13:45 #28318 > 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 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 ? 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. VonDriguen November 24, 2010 at 15:33 #28319 Thank you for the answer ! I’ll try to avoid orphan and the TOC. And I’ll wait for the “mirrored margins” 🙂 Author Posts Viewing 3 posts - 1 through 3 (of 3 total) The forum ‘General questions / FAQ’ is closed to new topics and replies.