bauhausjs / phantom-html2pdf

Node module to generate PDFs from HTML via PhantomJS
MIT License
112 stars 47 forks source link

Runnings? #51

Open MadaManu opened 7 years ago

MadaManu commented 7 years ago

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.

dustin-H commented 7 years ago

http://phantomjs.org/api/webpage/property/paper-size.html

AlexandreKilian commented 5 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

dustin-H commented 5 years ago

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.