Martin Skec

Results 33 comments of Martin Skec

Hi @crisog, you can set width and height to `undefined` and allow the underling library to set aspect ratio. You can find some examples -> https://github.com/yakovmeister/pdf2image/issues/88#issuecomment-1817514947

Hi @batchfy-bot, removing the page number might work for 1-page PDFs. We can consider it, but that would be breaking change and would have to wait for the next major...

Hi @latel, can you try installing the latest GraphicsMagick 1.3.42?

Tests do not pass for me with the fix.

I don't believe there are alternative packages that do the same thing. An alternative would be to execute binaries using `cross-spawn` directly, in which case it might make more sense...

Hi @adamhalasz, Do you still face this issue? `cross-spawn` is a dependency from `gm`, it should be installed and available. You can run `npm ls cross-spawn` to see if it's...

Hi @lukaprijatelj, can you try your code with another PDF? Maybe pdf1 from this repository https://github.com/yakovmeister/pdf2image/blob/master/test/data/pdf1.pdf

Hi @Gr33nLight, usually this can happen if dependencies are not correctly installed. In your case you are adding them in lambda layers. Please check if they are actually available for...

I tried building it myself some months ago and published everything in this repo https://github.com/mskec/gm-lambda-layer Check it out and compare with how you are building them.

@steadweb can you send me your lambda zip and PDF you are trying to convert? You can use my email which should be visible in my profile.