From eb2cc305dfaacf1472a88c650689ba9247be0dd6 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 2 Apr 2017 12:06:30 -0400 Subject: [PATCH] ... --- coders/pdf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coders/pdf.c b/coders/pdf.c index 221be1c20..22be22a3c 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -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); -- 2.40.0