Hello all,
This patch to make GetFromResources function supporting ColorSpace that can be
an array:
PdfObject* PdfPage::GetFromResources( const PdfName & rType, const PdfName &
rKey )
{
if( m_pResources->GetDictionary().HasKey( rType ) )
{
// OC 15.08.2010 BugFix: Ghostscript creates here sometimes an
indirect reference to a directory
// PdfObject* pType = m_pResources->GetDictionary().GetKey(
rType );
PdfObject* pType = m_pResources->GetIndirectKey( rType );
if( pType->IsDictionary() && pType->GetDictionary().HasKey(
rKey ) )
{
PdfObject* pObj = pType->GetDictionary().GetKey( rKey
); // CB 08.12.2017 Can be an array
if (pObj->IsReference()) {
const PdfReference & ref = pObj->GetReference();
return
this->GetObject()->GetOwner()->GetObject( ref );
}
return pObj;
// END
}
}
return NULL;
}
Cordialement / Best Regards,
Christophe BLANCHARD
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential and/or
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email
and all attachments,
(iii) Dassault Systemes does not accept or assume any liability or
responsibility for any use of or reliance on this email.
For other languages, go to http://www.3ds.com/terms/email-disclaimer
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users