Gottox / node-pdfutils

tool for analyzing and converting PDF
103 stars 23 forks source link

it writes a 0 byte file for output #20

Open prassh123 opened 9 years ago

prassh123 commented 9 years ago
var pdfutils = require('pdfutils').pdfutils;
pdfutils(__dirname + '/aws.pdf', function(err, doc) {
         doc[0].asPDF().toFile('firstpage1.pdf');
}
I am running on mac and have poppler installed. 
Gottox commented 9 years ago

I cannot reproduce this issue with linux. Can you provide the version of poppler, node, and pdfutils you're using?

prassh123 commented 9 years ago

poppler-0.26.5 (brew installed this) node --version v0.10.32 pdfutils@0.3.2 node_modules/pdfutils

knksmith57 commented 9 years ago

+1 having the same issue.

nwtn commented 9 years ago

+1