Page 1 of 1

conversion for .pdf to another format, Ghostscript

Posted: 2009-06-29T04:33:40-07:00
by coulon
I'am converting from .pdf to .jpg, .png etc.(doesn't matter). On one computer it's OK, on the other one I obtain horizontal black lines at random heights.

AFAIK Imagemagick "delegates" the conversion to Ghostscript when the input is .pdf.

With the bad computer I have two versions of Ghostscript installed. How can I know to which version Imagemagick delegates? How can I force "delegating" to either Ghostscript version? The most recent isn't always the best! The -verbose option gives this crap:

[ghostscript library] -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dFirstPage=3 -dLastPage=3 "-sOutputFile=C:/DOCUME~1/coulon/LOCALS~1/Temp/magick-kvoGqIvL" "-fC:/DOCUME~1/coulon/LOCALS~1/Temp/magick-By81XudK" "-fC:/DOCUME~1/coulon/LOCALS~1/Temp/magick-W9PDxY0L"C:/DOCUME~1/coulon/LOCALS~1/Temp/magick-kvoGqIvL PNM 540x760 540x760+0+0 1-bit Bilevel DirectClass 50.5kb
source.pdf[2]=>source.pdf PDF 540x760 540x760+0+0 16-bit Bilevel DirectClass 50.5kb
source.pdf[2]=>essai.jpg PDF 540x760 540x760+0+0 16-bit Bilevel DirectClass 146kb 0.031u 0:01

Re: conversion for .pdf to another format, Ghostscript

Posted: 2009-06-29T18:09:00-07:00
by anthony
The "delegate.xml" fiel either gives the delegate as a full path, OR uses the current PATH environment variable.
Depends on how it was installed.

Modify the delegate configuration file if you need to.

Re: conversion for .pdf to another format, Ghostscript

Posted: 2009-06-30T07:23:55-07:00
by coulon
the PATH command gives no path to Ghostcript, and delegate.xml contains this line:

<delegate decode="pdf" encode="ps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 -sDEVICE=pswrite "-sOutputFile=%o" -- "%i""/>

How can I modify the equivalent of PSDelegate?

convert -list delegate displays this: pdf<=>eps "C:/gs/gs8.14/bin/gswin32c.exe"
but this gs8.14 is not present in delegate.xml. Is it in another configuration file?

Re: conversion for .pdf to another format, Ghostscript

Posted: 2009-06-30T19:56:07-07:00
by anthony
That looks like the source code delegates file, not the installed one.

Mine has...

Code: Select all

<delegate decode="pdf" encode="ps" mode="bi" command=""gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i""/>
which means the command is just "gs" so Im will find it on the current PATH environment variable.