kempsteven/vue-html2pdf

How to add a footer

cjh-store opened this issue · 3 comments

How to add a footer to each page in the case of automatic paging

@cjh-store Did you find anything?

We can add a footer with a little bit of bottom margin (using html-to-pdf-options) and beforeDownload method

An example of the automatic paging is given here using beforeDownload method

Another example of a footer at bottom of the page is here as follows:

Use bottom margin by html-to-pdf-options prop like this
image

and insert page number with the company name (for example) like this inside the beforeDownload method (this is an extended version of the example referred to above
image

Here is what is looks like
image

Hope it helps

How can we add a Vue component for footer and header?