I have a ghostscript command that converts PDF to multiple PNG images (one for each page). The arguments of the command are as follows:
-dNOPAUSE -q -r300 -sPAPERSIZE=a4 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dUseTrimBox -sDEVICE=png16m -dBATCH -sOutputFile="C:\outputfile%d.png" -c \"30000000 setvmthreshold\" -f "C:\inputfile.pdf"
PDF is displayed like regular A4 pages in Adobe Reader, but in PNG images it becomes huge (for example, 2480 by 3507 pixels).
if I changed the resolution in the ghostscript command to -r110 , the page size is correct, but the image quality is very rasterized.
Is there any other way to improve image quality without affecting image size?
thanks
source share