-
Notifications
You must be signed in to change notification settings - Fork 544
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
[Error: PDF creation timeout. PDF generation script did not end.] #5
Comments
Sorry, for the bug. The default timeout is currently 10 seconds, which is a bit low for some computers. Also I should document the options a bit better (or make a better api of the module). So can you try to use.
|
I'm still getting the timeout. Both at 30 and 90 seconds. I'm working on a: Can't imagine the machine is the problem. ;) |
Still timing out at 10 minutes. I can't imagine the converting a single line of html is gonna take that much time. |
Hehe, absolutely not. As an alternative I can write the html to file and read that file in phantomjs. |
Alright. Thanks for looking into it! |
Hmm. It should work: https://groups.google.com/d/msg/phantomjs/GbndcSYaBWc/AznZfhT03zYJ |
How can I execute the pdf_as_a4_portrait.coffee? Doing it with Phantomjs.exe gets me a |
Okay that was case of PBKAC. Using Phantomjs.exe I can produce a pdf with pdf_as_a4_portrait.coffee. So the problem is somewhere between node and phantom.js. |
Sorry for the late reply. echo '<html></html>' | phantomjs pdf_as_a4_portrait.coffee HTMLBUFFERSIZE '{"width":"210mm", "height": "297mm"}' |
@mpkorstanje I've updated some parts of the script. I'm passing the html differently to the process. So it's possible that it works now on windows. edit: |
I'll try and have a look at that tonight. |
Okay. Running How do I package this and install it in node? |
Try to execute the tests. Are those working in the |
They time out sadly.
|
I believe you're doing the tests on the master branch.
Anyways. Thanks for your patience. |
You were correct. Checked out the wrong branch. Test passed. I've got pdfs for the test files. It works now. Cheers!
|
Nice. So I'll merge this & it will land in the markdown-pdf module after they incorporate it. |
Awesome! Will you poke the issue at markdown-pdf when you merge your fixes? |
cc: @harshbhatt @marcbachmann
Let me know if there's anything I can help with! |
Is this still an issue? Please try to run those phantomjs tests: https://github.com/Medium/phantomjs |
The scripts here? Can you help me out in doing so - still new to using npm and nodejs - would apprecaite it. |
@harshbhatt here you go
|
Thanks @marcbachmann, appreciate it. After cloning the repo, I ran |
Apparently npm doesn't set the PATH variable on windows. So it can't execute |
Does anybody know a CI platform that supports Windows? 😄 |
@harshbhatt did you execute npm install? |
@marcbachmann I did, but nothing happened. I did set nodejs as a PATH variable so after some digging, ran Sorry about the noob-ness here - not familiar with nodejs as you can probably tell 😄 |
You still need to execute |
I just tested the module on Windows 8.1. There are no dependencies like on linux. |
I'm not sure I follow. As far as I understood, I had npm installed and I installed phantomjs using |
I'm sporadically receiving this error, which appears related to this thread: var html = ejs.renderFile(appRoot + '/path/to/file', { |
On Windows 7 when trying to convert a .html to .pdf I get this message:
[Error: PDF creation timeout. PDF generation script did not end.].
and no .pdf.Script
LICENSE.md.html
Note: Originally discovered the issue in the markdown-pdf module for Atom.
The text was updated successfully, but these errors were encountered: