From d511bb57fef05751ea883ca03070625ecdb5f85a Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 3 Feb 2011 18:50:56 +0000 Subject: [PATCH] --- coders/pdf.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/coders/pdf.c b/coders/pdf.c index 3e6d9ca96..63e77ff8f 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -597,17 +597,15 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception) if ((flags & SigmaValue) == 0) image->y_resolution=image->x_resolution; } - (void) FormatMagickString(density,MaxTextExtent,"%gx%g", - image->x_resolution,image->y_resolution); + (void) FormatMagickString(density,MaxTextExtent,"%gx%g",image->x_resolution, + image->y_resolution); if (image_info->page != (char *) NULL) { (void) ParseAbsoluteGeometry(image_info->page,&page); - page.width=(size_t) floor(page.width*image->x_resolution/delta.x+ - 0.5); - page.height=(size_t) floor(page.height*image->y_resolution/delta.y+ - 0.5); - (void) FormatMagickString(options,MaxTextExtent,"-g%.20gx%.20g ", - (double) page.width,(double) page.height); + page.width=(size_t) floor(page.width*image->x_resolution/delta.x+0.5); + page.height=(size_t) floor(page.height*image->y_resolution/delta.y+0.5); + (void) FormatMagickString(options,MaxTextExtent,"-g%.20gx%.20g ",(double) + page.width,(double) page.height); } if (cmyk != MagickFalse) (void) ConcatenateMagickString(options,"-dUseCIEColor ",MaxTextExtent); -- 2.40.0