Hi,
I expected to get all dependencies of an object by calling
PdfVecObjects::GetObjectDependencies. Unfortunately, I do not get all
dependencies but only the ones till a reference is found.
So, either the documentation for PdfVecObjects::GetObjectDependencies has to be
updated or the code has to be fixed. The code fix is attached below
void PdfVecObjects::GetObjectDependencies( const PdfObject* pObj,
TPdfReferenceList* pList ) const
{
PdfArray::const_iterator itArray;
TCIKeyMap itKeys;
if( pObj->IsReference() )
{
if( std::find( pList->begin(), pList->end(), pObj->GetReference() ) ==
pList->end() )
{
pList->push_back( pObj->GetReference() );
// FIX - follow also indirect objects
PdfObject* referencedObject(this->GetObject(pObj->GetReference());
if (referencedObject != NULL)
this->GetObjectDependencies(referencedObject,pList);
}
}
...
Hartwig
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users