Comments (4)
The reason is you don't have wkhtmltopdf
executable in your PATH
, so the script tries to use the one in this repository. wkhtmltopdf
in this repo is compatible with the AWS Lambda runtime (static linux-x86-64 build).
Once you install wkhtmltopdf and have it in PATH
, it should work.
from zeplin-html-to-pdf.
Thank you for response.. I did what you have suggested but I still get the same error... here are some logs..
which wkhtmltopdf
/usr/bin/wkhtmltopdf
And the console path when I printed this is the O/P
/home/xxxxx/jdk1.8.0_102/bin:/home/xxxxx/Android/Sdk/tools:/home/xxxx/jdk1.8.0_102/bin:/home/xxxx/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
events.js:141
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at exports._errnoException (util.js:911:11)
at WriteWrap.afterWrite (net.js:785:14)
from zeplin-html-to-pdf.
@gduggirala I managed to get around it by downloading a latest copy of wkhtmltopdf
(the 64bit Linux version) from their downloads page.
I also went from changed this line to read var proc = spawn("/bin/sh", ["-o", "pipefail", "-c", "./wkhtmltopdf - - " + options.join(" ") + " | cat"]);
, thereby just reading the local copy of the file.
from zeplin-html-to-pdf.
I am closing this issue due to inactivity, we also released a major update, feel free to reopen the issue if you encounter this problem again.
from zeplin-html-to-pdf.
Related Issues (13)
- NPM install reference to ssh://[email protected]/zeplin/eslint-config-zeplin.git HOT 1
- Validation error: Missing field 'html' HOT 2
- wkhtmltopdf process exited with code 126 HOT 10
- Page Dimensions HOT 2
- I receive empty PDF HOT 1
- Cannot read property 'toString' of null HOT 2
- Upgrade to wkhtmltopdf v0.12.5 HOT 1
- Incorrect Characters in Output PDF HOT 2
- Performance Questions HOT 1
- Cannot parse this character "●" (print the box character instead) HOT 1
- When options are set getting Error: wkhtmltopdf process exited with code 1 HOT 3
- wkhtmltopdf process exited with code 126 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zeplin-html-to-pdf.