]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 2 Apr 2017 16:06:30 +0000 (12:06 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 2 Apr 2017 16:06:30 +0000 (12:06 -0400)
coders/pdf.c

index 221be1c20fe3c7499615334ed44668ece83253b7..22be22a3c302d9b1a2e0d49e8b3f7ec4769b8fa0 100644 (file)
@@ -1325,6 +1325,9 @@ RestoreMSCWarning
       version=(size_t) MagickMax(version,4);
   if (LocaleCompare(image_info->magick,"PDFA") == 0)
     version=(size_t) MagickMax(version,6);
+  profile=GetImageProfile(image,"icc");
+  if (profile != (StringInfo *) NULL) 
+    version=(size_t) MagickMax(version,7);
   (void) FormatLocaleString(buffer,MagickPathExtent,"%%PDF-1.%.20g \n",(double)
     version);
   (void) WriteBlobString(image,buffer);