Vous avez écrit :
> > BTW: I'm want to use that method for looking up the /Resources in the
> > page tree. Maybe PdfPage::GetResources() should do that
> > automatically? Same with other inherited attributes?
>
> GetResources() obtains access to the resources object its self, allowing
> the user to manipulate it. It'd certainly be very useful to have a
> separate method to obtain a list of all required resource, both local
> and inherited, though.
>
> I'm not sure how podofoimpose handles this, and I have to head out now.
> I wouldn't be too surprised if it's relying on podofo's unused indirect
> object garbage collection.

For what I’m concerned, I was rather curious to see how Andreas would manage 
to retrieve all resources! To be honest, the way I do this in podofoimpose is 
a bit rough, asking for Resources dictionary at each level and go up with   
"rparent = rparent->GetIndirectKey( "Parent" );". You can read this in 
PdfObject* PdfTranslator::getInheritedResources(PdfPage* page).
Another problem, at least I found it problematistic, was to have all resources 
in an unique object. I wrote 
PdfTranslator::mergeResKey(PdfObject *base,PdfName key, PdfObject *tomerge)
to adress this. All in all, I would have like to find these methods into 
PoDoFo itself because not being a developer, I’m pretty sure these methods 
are suboptimal and not enough tested, if at all. 

-- 
Pierre Marchand

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to