PDFHTML5 How to make report footer on exported pdf

PDFHTML5 How to make report footer on exported pdf

fammifarendrafammifarendra Posts: 2Questions: 1Answers: 0

Hi, i know how to create header and footer (page header and page footer) that repeated on every page
But, i want to know how to create report footer that will visible on the last page after table ?
I need to place name and signature, etc on that report footer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    See the comments on this page, there's an example doing that.

    Colin

  • fammifarendrafammifarendra Posts: 2Questions: 1Answers: 0

    Thanks for reply, i just solved myself
    about the page you mention, i'm not sure, it looks like page footer to me, i dont try it yet

    I made this in the customize section

    customize: function (doc) {

                        doc.content.push(
                            {text:$("#label1").text(),margin:[240,20,20,20]}
                        );
                        doc.content.push(
                            {text:$("#nama1").text(),margin:[240,40,20,20]}
                        );
    
                        doc.content.push(
                            {text:$("#nama2").text(),margin:[400,-30,20,20]}
                        );
                        doc.content.push(
                            {text:$("#label2").text(),margin:[400,-100,20,20]}
                        );
    

    (..another code ..)
    }

    The result looks like this, there is a signature place at the last page

This discussion has been closed.