[poppler] pdf file whose index has no link

Leonard Rosenthol leonardr at pdfsages.com
Mon Apr 17 12:24:40 PDT 2006


At 03:00 PM 4/17/2006, Vincent Torri wrote:
>>        there are LOTS of destinations and actions in that PDF - 
>> please identify by object ID.
>
>ha, ok.

         I wasn't kidding...

         I don't have time to go through the entire PDF to figure out 
which object it is.  But if you can tell me which, then I can easily 
look at it to determine why you get the results you do.


>     item->action = oitem->getAction ();

         This is good - you get each item's action, which can be one 
of the many (12?) standard types of Actions (or custom) allowed in a PDF.


>LinkDest *dest = ((LinkGoTo *)item->action)->getDest ();

         This assumes that ALL actions are GoTo actions with 
destinations.   BAD ASSUMPTION.   For example, enclosed are two PDFs 
which have bookmarks with VERY different types of actions.


Leonard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6.6.1-Bookmark-Sound.pdf
Type: application/octet-stream
Size: 81237 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20060417/eba1a94a/6.6.1-Bookmark-Sound-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6.6.1-Bookmark-Launch.pdf
Type: application/octet-stream
Size: 23762 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20060417/eba1a94a/6.6.1-Bookmark-Launch-0001.obj
-------------- next part --------------
---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:leonardr at pdfsages.com>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                              215-938-0880 (fax)


More information about the poppler mailing list