Open MadaManu opened 7 years ago
@dustin-H there is no reference to a runnings-file in the documentation… I managed to set headers and footers, but how far does this runnings-file go? I tried changing border/margin depending on the page, but that didnt seem to do anything
How to add a runnings-file is described in our README.
You can find the options with the link above. This project is just a small wrapper around PhantomJS.
However, since PhantomJS has been archived I do not recommend using this package. (https://github.com/ariya/phantomjs/issues/15344)
Maybe you want to use something like PdfKit instead.
The documentation regarding the use and methods that can be used in the runnings is not clear at all? I am confused, can I add there a watermark? Can I make the footer show the current page number? Do I have to pass this value in the args? How do I get the number of pages that the pdf has?
I am very new to using html2pdf - and I'm a bit confused - so I'm sorry if I'm asking too obvious things.