Page 1 of 1

How does delegates.xml parses an entry

Posted: 2015-11-04T09:05:23-07:00
by guysoft
Hey all,
I have the following line in delegates.xml that converts a pdf to a png (for easy reading I turned escaped quotation to quotations):

Code: Select all

"gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"
I want to take the parameters I have in my convert command, and run this command of debugging purposes, so I can change it, for example, to include the flags -dNumRenderingThreads=4 and -dNOGC.

What should I replace all the %s strings with? How can I find what is in there? The header of delegates.xml does not explain what is done with "ps:alpha" decoders.

This is the convert command I use:

Code: Select all

convert  -density 200  /tmp/input.pdf[0] -quality 100 output.png