DEV Community

Discussion on: How to convert a PDF page to an image using Nodejs

Collapse
 
tdnine profile image
tdnine

Hi, nice article and i followed it - it works fine for jpeg and png, but when i try tiff format it throws up an error. I am on a windows machine, so apparently it should work. The errors i received are

1) Command failed: -tiff -scale-to 1024

2) A list of syntax errors as such with various different fonts
Syntax Error: No display font for 'ArialNarrow'

3) Error writing TIFF header.

I tried with a scale property in options object with value set to 2048 and 4096. But both throwed up same errors as previous with the new scale values in error message.

Any suggestions why would this be happening, anybody else had the similar issue?

Thanks