PDF Page numbers

PDF Page numbers

aub_10aub_10 Posts: 2Questions: 1Answers: 0

How to add page numbers in PDF?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,106Questions: 1Answers: 10,394 Site admin
    Answer ✓

    You would need to refer to the pdfmake documentation for how to use their API to add that information. Use the customize callback of the pdfHtml5 button type to customise the document.

    Allan

  • aub_10aub_10 Posts: 2Questions: 1Answers: 0

    thanks a lot for your help

  • Salim350Salim350 Posts: 7Questions: 3Answers: 0

    doc['footer']=(function(page, pages) {
    return {
    columns: [
    'Left part of footer',
    {
    alignment: 'right',
    text: [
    { text: page.toString(), italics: true },
    ' of ',
    { text: pages.toString(), italics: true }
    ]
    }
    ],
    margin: [10, 0]
    }
    });

This discussion has been closed.