1

I have to write a windows command line shell script to convert pdf to Images. Sample command:

convert.exe -density 300x300 -resize 3508x <file>.pdf -units PixelsPerInch -profile srgb.icc <FILE>.jpg

This command works fine for pdfs with NON-White background but goes wrong with pdfs with WHITE background. Any idea how I can give a command that works for both?

Plus

1) If the PDF is converted to .png ( as opposed to .jpg) it works. Any idea why?

keyser
  • 18,829
  • 16
  • 59
  • 101

1 Answers1

-1

This might be helpful, Save pdf to jpeg using c#.

Also have a look here.

Community
  • 1
  • 1
Milan Dhameliya
  • 129
  • 1
  • 10