suppress warnings PDF to JPG

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
gattu_koli
Posts: 10
Joined: 2013-01-24T21:44:53-07:00
Authentication code: 6789

suppress warnings PDF to JPG

Post by gattu_koli »

Hi,

I am getting below warning message while converting PDF to JPG even though passing -quiet argument. Is there any another approach to do this or can I pass -dQuite parameter to ghostscript from convert to suppress warnings.
IM ver - 6.8.5-8
GS ver - 9.05

**** Warning: stream operator not terminated by valid EOL.
**** Warning: stream operator not terminated by valid EOL.
**** Warning: stream operator not terminated by valid EOL.
**** Warning: stream operator not terminated by valid EOL.

**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> www.opoosoft.com <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.

regards.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: suppress warnings PDF to JPG

Post by snibgo »

You might modify your delegates.xml to add "-dQuite" or "-q" or whatever to the Ghostscript command.
snibgo's IM pages: im.snibgo.com
gattu_koli
Posts: 10
Joined: 2013-01-24T21:44:53-07:00
Authentication code: 6789

Re: suppress warnings PDF to JPG

Post by gattu_koli »

The arguments are already added to the delegates.xml. Still I am getting warning messages.

<delegate decode="pdf" encode="ps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pswrite "-sOutputFile=%o" -- "%i""/>
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: suppress warnings PDF to JPG

Post by snibgo »

You can find out the exact command issued:

Code: Select all

convert -verbose in.pdf out.jpg
I don't know of any other options to suppress warnings from GS. You can redirect stderr, of course.
snibgo's IM pages: im.snibgo.com
Post Reply