Kaydet (Commit) b6ee7da3 authored tarafından Fridrich Štrba's avatar Fridrich Štrba

Revert "Relax ICC profile version for PDF/1-a to 2.4"

The lcms2 author advises 2.1 and that is the version we advertize
in the name of the embedded icc file.

This reverts commit 3bb22684.
üst bedbb471
...@@ -6563,8 +6563,8 @@ sal_Int32 PDFWriterImpl::emitOutputIntent() ...@@ -6563,8 +6563,8 @@ sal_Int32 PDFWriterImpl::emitOutputIntent()
beginCompression(); beginCompression();
checkAndEnableStreamEncryption( nICCObject ); checkAndEnableStreamEncryption( nICCObject );
cmsHPROFILE hProfile = cmsCreate_sRGBProfile(); cmsHPROFILE hProfile = cmsCreate_sRGBProfile();
//force ICC profile version 2.4 //force ICC profile version 2.1
cmsSetProfileVersion(hProfile, 2.4); cmsSetProfileVersion(hProfile, 2.1);
cmsUInt32Number nBytesNeeded = 0; cmsUInt32Number nBytesNeeded = 0;
cmsSaveProfileToMem(hProfile, NULL, &nBytesNeeded); cmsSaveProfileToMem(hProfile, NULL, &nBytesNeeded);
if (!nBytesNeeded) if (!nBytesNeeded)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment