You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add a header and footer to each page of a pdf I am creating using webshot. Is it possible to modify the phantomPage options handler function to handle callbacks, per this SO question?
The text was updated successfully, but these errors were encountered:
So I spent the day trying to figure this out, as I really needed to be able to modify the header/footers in my project. the question above using eval() didn't work. However, I wrote the following modification to be inserted on line 70 of webshot.phantom.js:
The above works for my code, but it is missing a few additional paperSize options to work as a general solution. It also can't handle the pageNum and numPages arguments, but it is an improvement that I think can be helpful. I've never submitted a pull request in git before, but think we can merge this into the main branch?
I'm trying to add a header and footer to each page of a pdf I am creating using webshot. Is it possible to modify the phantomPage options handler function to handle callbacks, per this SO question?
The text was updated successfully, but these errors were encountered: