From: Cristy Date: Fri, 8 Apr 2016 21:48:07 +0000 (-0400) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29433 X-Git-Tag: 7.0.1-0~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8de8fb60fd71767493a6ee90d3d30677845efbfe;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29433 --- diff --git a/coders/pdf.c b/coders/pdf.c index 499bbe55c..131e82850 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -689,8 +689,7 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception) /* Render Postscript with the Ghostscript delegate. */ - if ((image_info->ping != MagickFalse) || - (image_info->monochrome != MagickFalse)) + if (image_info->monochrome != MagickFalse) delegate_info=GetDelegateInfo("ps:mono",(char *) NULL,exception); else if (cmyk != MagickFalse) @@ -705,8 +704,8 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception) } density=AcquireString(""); options=AcquireString(""); - (void) FormatLocaleString(density,MagickPathExtent,"%gx%g",image->resolution.x, - image->resolution.y); + (void) FormatLocaleString(density,MagickPathExtent,"%gx%g", + image->resolution.x,image->resolution.y); if ((image_info->page != (char *) NULL) || (fitPage != MagickFalse)) (void) FormatLocaleString(options,MagickPathExtent,"-g%.20gx%.20g ",(double) page.width,(double) page.height); @@ -717,7 +716,8 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception) if (cropbox != MagickFalse) (void) ConcatenateMagickString(options,"-dUseCropBox ",MagickPathExtent); if (stop_on_error != MagickFalse) - (void) ConcatenateMagickString(options,"-dPDFSTOPONERROR ",MagickPathExtent); + (void) ConcatenateMagickString(options,"-dPDFSTOPONERROR ", + MagickPathExtent); if (trimbox != MagickFalse) (void) ConcatenateMagickString(options,"-dUseTrimBox ",MagickPathExtent); read_info=CloneImageInfo(image_info);