Hello Hartwig, Thanks for pointing this out. I commited a fix to SVN and also a small optimization to use std::equal_range instead of std::find.
Regards,
Dom
Am Thursday 24 March 2011 schrieb skywind mailing lists:
> 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
--
Dominik Seichter - [email protected] - http://domseichter.blogspot.com
KRename - http://www.krename.net - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ 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
