[poppler] Problem getting object identifier
leonardr at pdfsages.com
Sat Nov 10 09:11:07 PST 2007
IIRC (I don't have the Xpdf/Poppler sources with me at the moment),
you first need to check isIndirect() on the object. If it's
indirect, then you can coerce to an indirectObject or objectReference
(forget the name) class which has objectID and objectGen members.
On Nov 10, 2007, at 9:58 AM, Brad Hards wrote:
> Hopefully this is a pretty simple poppler problem: given a Dict (or
> the Object
> that encompasses it), how do I get the object identifer (e.g. the
> number that
> appears in the PDF file).
> For example, given a dictionary entry:
> 35 0 obj<</Type/OCG/Name(Watermark)/Usage<</Print<</PrintState/
> How do I get 35?
> I realise that there won't be one for every object (e.g. the Print
> doesn't have a direct entry number), but I'm happy to confirm that
> there will
> be one for each case I'm worried about.
> poppler mailing list
> poppler at lists.freedesktop.org
More information about the poppler