Comments (7)
Ok this is dumb but I actually didn't install the dependencies ghostscript
and graphicsmagick
🤦. Now it works. Just install it as here.
Unfortunately I won't be able to use the library since I'll use it in a Google Cloud Function. If you are looking for an alternative like me you can use external API's such as cloudconver
from pdf2image.
is there any update regarding the issue? guys, it's working fine before now it's broken.
from pdf2image.
Ok this is dumb but I actually didn't install the dependencies
ghostscript
andgraphicsmagick
facepalm. Now it works. Just install it as here.
Unfortunately I won't be able to use the library since I'll use it in a Google Cloud Function. If you are looking for an alternative like me you can use external API's such as cloudconver
When I try to install the ghostscript4js package it gives this error. What could it be from? Can you please help?I think I was referring to the Ubuntu packages: https://github.com/yakovmeister/pdf2image/blob/master/docs/gm-installation.md Follow the Windows instructions there
yes, I installed both under C:\Program Files, but it still doesn't work, base64 is an empty string :(( Do you know a different package with a similar function?
from pdf2image.
I also have the same issue. Here's my code
let res = await fetch(url);
let buffer = await res.buffer();
const options = {
width: 2550,
height: 3300,
density: 330,
savePath: "./output/from-buffer-to-base64"
}
// let convert = fromPath('pdf.pdf', options);
let convert = fromBuffer(buffer, options);
console.log(convert)
let output = await convert(1, true)
console.log('output')
console.log(output)
let base64 = output.base64;
console.log('base64')
console.log(base64)
fetch
is the npm library node-fetch
here.
See the console outputs:
[Function: r] {
bulk: [Function],
setOptions: [Function],
setGMClass: [Function]
}
output
{ base64: '', size: '2550x3300', page: 1 }
base64
Edit: Does not work with the specimen1.pdf or other pdf's I tried
from pdf2image.
Ok this is dumb but I actually didn't install the dependencies
ghostscript
andgraphicsmagick
🤦. Now it works. Just install it as here.Unfortunately I won't be able to use the library since I'll use it in a Google Cloud Function. If you are looking for an alternative like me you can use external API's such as cloudconver
When I try to install the ghostscript4js package it gives this error. What could it be from? Can you please help?
from pdf2image.
Ok this is dumb but I actually didn't install the dependencies
ghostscript
andgraphicsmagick
facepalm. Now it works. Just install it as here.
Unfortunately I won't be able to use the library since I'll use it in a Google Cloud Function. If you are looking for an alternative like me you can use external API's such as cloudconver
When I try to install the ghostscript4js package it gives this error. What could it be from? Can you please help?
I think I was referring to the Ubuntu packages: https://github.com/yakovmeister/pdf2image/blob/master/docs/gm-installation.md Follow the Windows instructions there
from pdf2image.
Unfortunately, I also only get an empty string back. Am I doing something wrong? I have installed ghostscript and graphicsmagick. Is there anything else I should be aware of? I am currently using Windows 10.
from pdf2image.
Related Issues (20)
- More info about params HOT 2
- Error write epipe Windows 10 HOT 5
- Density option is broken. HOT 3
- YOU DONT NEED THIS LIBRARY HOT 1
- bulk in version 2.2.0 HOT 2
- Convert buffer to base64 HOT 2
- Timestamp included in the base64 response HOT 1
- problem canvas HOT 3
- stream operator isn't terminated by valid EOL HOT 3
- Breaking Types HOT 1
- Error on processing more than 10 pages HOT 2
- Get image the same dimension as pdf HOT 2
- width and height should be allowed to be excluded (no defaults) HOT 1
- Unable to create image buffer from pdf buffer HOT 6
- Remove .page-number from the saved filename HOT 2
- generated images is broken HOT 10
- Store Converted pages to S3 Bucket HOT 2
- ImageMagick 6.9 not supported?
- Convert all pages error
- GraphicsMagick/ImageMagick: gm couldn't be executed HOT 1
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 pdf2image.