Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GhostScript dPDFSETTINGS shortcut

I'm very new to the GhostScript world and I was wondering what was the configurations that are setted when we write, for example, -dPDFSETTINGS=/ebook?

The problem I face is that /ebook is too low quality and /printer is to heavy. I'm searching somewhere in the middle :)

like image 255
rekam Avatar asked Jul 28 '26 05:07

rekam


1 Answers

Based on the the corresponding documentation, you probably want to set ColorImageResolution like this for instance if you want to tune image resolution:

gs -sDEVICE=pdfwrite -q -dPDFSETTINGS=/printer -dColorImageResolution=150 -o out.pdf in.pdf

You need to set GrayImageResolution or MonoGrayImageResolution for non coloured images.

Be aware that setting the resolution does not work if PDFSETTINGS is unset (respectively set to /default). I don't know why.

like image 157
doak Avatar answered Jul 30 '26 09:07

doak