Is it any way to display a table in footer?

Is it any way to display a table in footer?

yuyuiejalyuyuiejal Posts: 3Questions: 1Answers: 0

I have a form which print in PDF , will display a table which is contain signature, name, and position on the bottom page.
Please help!!

Answers

  • colincolin Posts: 15,154Questions: 1Answers: 2,587

    Hi @yuyuiejal ,

    The pdfmake documentation shows it does support footers, but I just tried it and it only seems to span two lines, so I don't think you can do what you're after I'm afraid.

    Cheers.

    Colin

  • yuyuiejalyuyuiejal Posts: 3Questions: 1Answers: 0
    edited May 2018

    I tried to hide and show methods but still not successful.

    @colin

    Can PDFmaker can allow background image? I think background image is the last solution.

  • colincolin Posts: 15,154Questions: 1Answers: 2,587
    edited May 2018

    Hi @yuyuiejal ,

    I take it back, it can be done, you just need to change the pageMargins so that the bottom margin leaves spaces for the extended footer. I found that out while trying to get the image to display correctly.

    For example, put this into the pdfmake playground:

    var dd = {
        pageMargins: [40, 80, 40, 300],
        footer: {
            margin: 80,
            columns: [
                'this\nis\nthe\nfooter\nand\nit\ncan\nbe\nlarger'
            ]
        },
        content: [
            'First paragraph',
            'Another paragraph, this time a little bit longer to make sure, this line will be divided into at least two lines'
        ]
    }
    

    Then, transferred into the world of DataTables, see here,

    Cheers,

    Colin

  • yuyuiejalyuyuiejal Posts: 3Questions: 1Answers: 0

    @colin

    God bless u. U really save my life. It really works!

This discussion has been closed.