Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27040

    How do I add an inline footer to the last page only?
    I’ve tried this, but last footer will not display:

    {code}

    <pd4ml:page.footer scope="2+,skiplast">
    <div style="width:620px;">
    <div style="padding: 0px 57px;">
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tbody>
    <tr>
    <td valign="bottom" style="font-size: 9px; font-family: Arial; color: rgb(102, 102, 102); text-align: right; ">Page: $[page] of $[total]</td>
    </tr>
    </tbody>
    </table>
    </div>
    </div>
    </pd4ml:page.footer>
    <pd4ml:page.footer scope="last">
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tbody>
    <tr>
    <td valign="top" style="font-size: 8px;line-height:10px; font-family: Arial; color: rgb(255, 255, 255); text-align: justify;">
    last page
    
    </td>
    </tr>
    </tbody>
    </table>
    </pd4ml:page.footer>

    {code}

    #29824

    PD4ML API/custom tags allow to define a scope for page header/footer. For example: scope=”1,2″, scope=”2+”, scope=”even”, scope=”skiplast”.

    scope=”last” support is problematic to implement. In an extreme case the last page may have no space to place a footer: it should force a page break and the trailing footer goes to new page with no content, which is undesired.

    In order to prevent it you may use a conditional page break to move some content (to make the last page not totally blank) and a footnote.

    Example:

    ....
    ....
    text text text ...
    
    the last text section...
    ....
    ....
    totals section

    The page break will take effect only if the remaining vertical page space is less than 200px (and the last text section + footnote do not presumably fit it)

    ifSpaceBelowLessThan parameter value for your document structure/layout needs to be found an empiric way.

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

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.