On Tuesday 16 November 2010 11:22:54 you wrote:
> Hi,
> 
> Currently this is on purpose to differenciate between direct and indirect
> objects (those who have an owner are indirect).

Well, I would have guessed this is done based on object and generation number:

---
bool PoDoFo::PdfReference::IsIndirect   (   )    const [inline]
 Allows to check if a reference points to an indirect object.
 A reference is indirect if object number and generation number are both not 
equal 0.
---

> I do not think, it is much of a hassle to keep a reference to the
> PdfVecObjects to resolve references. So, even if your suggestions has a
> small benefit for the user of the library, I do not think such a big
> change is a good idea as it might effect other code you depends on the
> behaviout of GetOwner() returning NULL for direct objects.

As there is a a documented API call to differentiate direct and indirect 
objects, whereas there is no limitation for GetOwner()  to be valid only for 
direct objects, i would consider any application depending on this behaviour 
to be broken ...

Regards,

Stefan

-- 
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
phone: +49 241 53809034     mobile: +49 151 50412019

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to