vcl/source/gdi/pdfwriter_impl.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 24f691867d02e853153a53e49276c2a8c30ea1fe
Author: Fridrich Å trba <fridrich.st...@bluewin.ch>
Date:   Wed Sep 5 14:27:21 2012 +0200

    Force version 2.1 of the sRGB profile for PDF/A (fdo#54546)
    
    Change-Id: I7c40c37fbe344f1e46ea4a09fb99a5ac82ffd577

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx 
b/vcl/source/gdi/pdfwriter_impl.cxx
index e17c318..a5d6a77 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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to