How to create a jpg preview in pdf format (using linux command line)?

I am trying to find a way to convert pdf to high quality jpg previews in linux window.

I am currently using ImageMagicK + GhostScript, but I need to make the images look excellent in order to get the readable quality that it takes forever to process (30 seconds in my box for one page).

Does anyone know of a better method where I can achieve high-quality previews without having enough oversampling?

Thank!

+3
source share
2 answers

I found pdftoppm installed in my Ubuntu Linux box.

pdftoppm -f 1 -l 1 -scale-to 1024 -png input-file.pdf output-file
  • , -scale-to px
  • (-f 1 -l 1)
  • , -, : output-file-1.png( 1 - )
+5

pdf ps pdf2ps

pdf2ps file.pdf file.ps

jpg ImageMagick convert

convert -resample 300 file.ps file.jpg

0

Source: https://habr.com/ru/post/1792706/


All Articles