Ghostscript and high resolutions?

I am writing a script that reads some markup data, generates a tex document and converts it to a png image.

As long as I use the resolution up tp 286 px / inch everything works fine. Unfortunately the GhostScript I am using to generate the image data does nothing when I use higher values.

How can I fix this behavior?

+1


source to share


1 answer


Since the information about your problem is not very detailed (which fonts are used in the TeX document? Are they Chinese, Japanese, Korean or ...? What Ghostscript command line are you using?). here's what to check. But that's just the first guess: try adding " -c "100000000 setvmthreshold" -f /path/to/pdffile.pdf

" to your command:

  gswin32c.exe ^
      -o c:/path/to/output.png ^
      -sDEVICE=png ^
      -r600x600 ^
      -c "100000000 setvmthreshold" ^
      -f /path/to/pdffile.pdf

      



This will allow the use of additional RAM over 100MB of Ghostscript. If you are using X-Windows (Linux, Unix) then " -dMaxBitmap=...

" might help (if you have enough RAM):

  gs \
      -o /path/to/output.png \
      -sDEVICE=png \
      -r600x600 \
      -dMaxBitmap=100000000 \
      -c "100000000 setvmthreshold" \
      -f /path/to/pdffile.pdf

      

+4


source







All Articles