classcraft / classcraft-meteor-wkhtmltopdf Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED Use : https://www.npmjs.com/package/wkhtmltopdf instead – Meteor smart package of the meteor-wkhtmltopdf node module.
DEPRECATED Use : https://www.npmjs.com/package/wkhtmltopdf instead – Meteor smart package of the meteor-wkhtmltopdf node module.
Is there any docs or getting started guides?
I got this error: ```wkhtmltopdf: error [Error: Exit with code 1 due to http error: 1203]
PDF returned looks fine, but it still returns this error.
Hi,
I can't seem to get this package to work.
If I do
generatePDF = (html, {}) ->
wkhtmltopdf(html, (code, signal) ->
console.log 'worked!', fs.readFileSync('out.pdf').toString()
).pipe(fs.createWriteStream('out.pdf'))
then I get no output at all, no message logged either.
If I try
wkhtmltopdf(html, (code, signal) ->
console.log 'worked!', fs.readFileSync('out.pdf').toString()
).pipe(fs.createWriteStream('out.pdf'))
Then I get a 3kb corrupt PDF. I guess because the method isnt able to finish in time.
What am I doing wrong?
wkhtmltopdf: error [Error: /bin/sh: 1: wkhtmltopdf: not found]
I get this error, when trying to use the package.
here is a simple meteor method
Meteor.methods({
genPdf: function () {
var future = new Future();
wkhtmltopdf("<h1>test</h1>", {}, function (code, signal) {
future["return"](fs.readFileSync('out.pdf').toString('base64'));
}).pipe(fs.createWriteStream('out.pdf'));
return future.wait();
}
});
I was able to make this work on my localhost. base64 string returns when i call this methods. But on ubuntu 14.04 methods returns nothing. No errors, no exceptions nothing.
I did a research about wkhtmltopdf binaries and installed couple of different versions but sadly didn't able to make it work.
on ubuntu
which wkhtmltopdf
/usr/local/bin/wkhtmltopdf
how can i solve this issue ?
Hi, I have this package in my meteor project.
twbs:bootstrap
How do I get to the bootstrap.css at runtime?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.