Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Runnings? #51

Open
MadaManu opened this issue Oct 21, 2017 · 3 comments
Open

Runnings? #51

MadaManu opened this issue Oct 21, 2017 · 3 comments

Comments

@MadaManu
Copy link

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
Copy link
Member

@AlexandreKilian
Copy link

@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
Copy link
Member

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. (ariya/phantomjs#15344)

Maybe you want to use something like PdfKit instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants