apilayer / html2pdf.it

Webservice for generating pdfs from html
html2pdf.it
549 stars 157 forks source link

browser shows "something broke" #29

Closed muralikodali closed 7 years ago

muralikodali commented 9 years ago

pdf: /home/murali/programs/gitbag/html2pdf.it/bin/phantomjs: 1: /home/murali/programs/gitbag/html2pdf.it/bin/phantomjs: Syntax error: "(" unexpected Error: Wrong code: 2 at ChildProcess. (/home/murali/programs/gitbag/html2pdf.it/lib/webservices/pdf.js:99:19) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:766:16) at Socket. (child_process.js:979:11) at Socket.emit (events.js:95:17) at Pipe.close (net.js:466:12)

nareshdb commented 8 years ago

duplicate of the issue #39

edm00se commented 7 years ago

This looks to be a duplicate of #39 as @nareshdb pointed out. This should be addressed by the latest version in the master branch, which switches to phantomjs-prebuilt from npm, and should always be both available as a dependency in the project's installed node_modules directory, and host OS requirement of installing phantom js separately is removed; all path issues should be resolved.