Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhantomJS Command Line Options #22

Closed
cnaccio opened this issue Mar 20, 2015 · 4 comments
Closed

PhantomJS Command Line Options #22

cnaccio opened this issue Mar 20, 2015 · 4 comments

Comments

@cnaccio
Copy link

cnaccio commented Mar 20, 2015

How do we go about passing command line options to phantomjs? For instance I need to pass the --ignore-ssl-errors=yes option. See this page to see what I'm talking about: http://phantomjs.org/api/command-line.html

@marcbachmann
Copy link
Owner

Sorry, that's not yet possible. I'd accept pull requests.

@cnaccio
Copy link
Author

cnaccio commented Mar 26, 2015

Can I modify the source to accomplish this? If so where could I hard code in my additional parameters to the call to phantomjs?

From: Marc Bachmann [mailto:notifications@github.com]
Sent: Thursday, March 26, 2015 3:04 PM
To: marcbachmann/node-html-pdf
Cc: Charles Naccio
Subject: Re: [node-html-pdf] PhantomJS Command Line Options (#22)

Sorry, that's not yet possible. I'd accept pull requests.


Reply to this email directly or view it on GitHub #22 (comment) . https://github.com/notifications/beacon/AHq1N3Dt_9Bm6Nh1A-qXmeToX4RcdXnqks5n5F3LgaJpZM4DyUSz.gif

@marcbachmann
Copy link
Owner

https://github.com/marcbachmann/node-html-pdf/blob/master/src/pdf.coffee#L72

You can edit the [@script] array in the file & run npm test once. By running npm test it creates all the js files out of the coffee-script source.

@marcbachmann
Copy link
Owner

I've added that in the newest version

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

No branches or pull requests

2 participants