Comments (5)
I'm also having the same problem. Can't seem to use this on converting multiple pdf files. I tried different solutions like promises, async, callback, etc... But I always end up having the files being overwritten and having the wrong content.
from node-pdf2img.
I never tried to convert multiple files.
Maybe i will add this feature in the next release.
from node-pdf2img.
Just make pdf2img.convert return callback when finished so we could wait before next file is converted
from node-pdf2img.
Tried running this with async.js to do multiple files and ran into very odd behavior. Because you have to set options separately for each call the options were getting overwritten before the operations were completed and this was causing the problem.
I think you should do away with setOptions and make options an object passed as 2nd parameter to convert.
from node-pdf2img.
Changing line 101 from
var outputFile = options.outputdir + options.outputname + '_' + page + '.' + options.type;
into
var outputFile = options.outputdir + output + '_' + page + '.' + options.type;
has fixed this.
from node-pdf2img.
Related Issues (20)
- Is anyone still working on this? HOT 1
- Its shitty. doesnt work at all :( HOT 7
- Why is coming this err HOT 9
- Output to base64? HOT 3
- Versions of buildpack
- pdf file size too large
- callback not working
- Specify which pages to convert HOT 1
- Bug in 1 page PDFs
- Republish npm package
- It would be helpful to add a callback whenever a specific page is processed.
- [Error: Command failed: gm identify -format "%p " HOT 4
- Bug in Multiple pages PDFs converted simultaneously HOT 1
- example throw error. HOT 3
- Replace ImageMagick with GhostScript pagecount
- Not working with pm2 in production
- System requirements
- Specific page image
- Is this library actively maintained ?
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 node-pdf2img.