Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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 !

    #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.

    #28319

    Thank you for the answer !

    I’ll try to avoid orphan and the TOC. And I’ll wait for the “mirrored margins” 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘General questions / FAQ’ is closed to new topics and replies.