From: Cristy Date: Sun, 2 Apr 2017 19:45:17 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.5-5~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acfee57f93728581f384aa19508fd584403168df;p=imagemagick ... --- diff --git a/coders/pdf.c b/coders/pdf.c index 22be22a3c..6baa76582 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -1326,7 +1326,7 @@ RestoreMSCWarning if (LocaleCompare(image_info->magick,"PDFA") == 0) version=(size_t) MagickMax(version,6); profile=GetImageProfile(image,"icc"); - if (profile != (StringInfo *) NULL) + if (profile != (StringInfo *) NULL) version=(size_t) MagickMax(version,7); (void) FormatLocaleString(buffer,MagickPathExtent,"%%PDF-1.%.20g \n",(double) version); @@ -2167,6 +2167,7 @@ RestoreMSCWarning (void) FormatLocaleString(buffer,MagickPathExtent,"%.20g 0 obj\n",(double) object); (void) WriteBlobString(image,buffer); + device="DeviceRGB"; channels=0; if (image->colorspace == CMYKColorspace) { @@ -2197,8 +2198,9 @@ RestoreMSCWarning (void) FormatLocaleString(buffer,MagickPathExtent,"\%s\n",device); else (void) FormatLocaleString(buffer,MagickPathExtent, - "[ /Indexed /DeviceRGB %.20g %.20g 0 R ]\n",(double) image->colors- + "[ /Indexed /%s %.20g %.20g 0 R ]\n",device,(double) image->colors- 1,(double) object+3); + (void) WriteBlobString(image,buffer); } else