summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-09-05 14:27:21 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-09-05 14:28:13 +0200
commit24f691867d02e853153a53e49276c2a8c30ea1fe (patch)
treedfa898fc28b4e240c144e278ce90eb5a359302cc /vcl
parentc96e2c238f8fd3a78773e29ced11ddaa9e9d783f (diff)
Force version 2.1 of the sRGB profile for PDF/A (fdo#54546)
Change-Id: I7c40c37fbe344f1e46ea4a09fb99a5ac82ffd577
Diffstat (limited to 'vcl')
-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 e17c3184c92d..a5d6a77828df 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -6563,6 +6563,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)