From 8de8fb60fd71767493a6ee90d3d30677845efbfe Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 8 Apr 2016 17:48:07 -0400 Subject: [PATCH] https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29433 --- coders/pdf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); -- 2.40.0