[poppler] Problem getting object identifier

Brad Hards bradh at frogmouth.net
Sat Nov 10 00:58:00 PST 2007


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/OFF>>>>>>

How do I get 35?

I realise that there won't be one for every object (e.g. the Print dictionary 
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.

Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20071110/516e2119/attachment.pgp 


More information about the poppler mailing list