Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

import PDF convert to raster. #219

Open
theoryshaw opened this issue Dec 15, 2015 · 4 comments
Open

import PDF convert to raster. #219

theoryshaw opened this issue Dec 15, 2015 · 4 comments

Comments

@theoryshaw
Copy link

Would there be a relatively easy way to use something like Ghostscript and/or ImageMagick to convert an uploaded (or drag and dropped) PDF to a background raster image?

@theoryshaw
Copy link
Author

@bytesnz
Copy link
Collaborator

bytesnz commented Dec 15, 2015

There is also https://www.npmjs.com/package/pdf2json and https://www.npmjs.com/package/pdf for converting PDFs to json (for canvas) or to images. Would need to look into benefits/drawbacks. Would probably be worth testing the libraries to see if there are any gotchas.

@theoryshaw
Copy link
Author

I like that pdf2json taps into pdf.js--a project with a lot of momentum behind, it seems.

@theoryshaw
Copy link
Author

Ran across this too: https://github.com/mooz/node-pdf-image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants