summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-09-05 14:27:21 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2012-09-05 15:36:21 +0200
commit5a36a0cab0d4d32968404c0d88772e1a6303af00 (patch)
treee23530a0baf251ceb0ca2dcab95494a6628ef104
parentac5345c4d9ac03cff9e6efc7f6269a2282119ea5 (diff)
fdo#54546: Force version 2.1 of the sRGB profile for PDF/A-1a
(cherry picked from commit 24f691867d02e853153a53e49276c2a8c30ea1fe) Change-Id: I7c40c37fbe344f1e46ea4a09fb99a5ac82ffd577 Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 2c4d10b61ca7..6676cfbcb4ab 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -6203,6 +6203,8 @@ sal_Int32 PDFWriterImpl::emitOutputIntent()
beginCompression();
checkAndEnableStreamEncryption( nICCObject );
cmsHPROFILE hProfile = cmsCreate_sRGBProfile();
+//force ICC profile version 2.1
+ cmsSetProfileVersion(hProfile, 2.1);
cmsUInt32Number nBytesNeeded = 0;
cmsSaveProfileToMem(hProfile, NULL, &nBytesNeeded);
if (!nBytesNeeded)