[poppler] pdf file whose index has no link

Leonard Rosenthol leonardr at pdfsages.com
Mon Apr 17 13:03:39 PDT 2006


At 03:53 PM 4/17/2006, Vincent Torri wrote:

>>        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.
>
>what do you mean by "object" ?

         PDF documents are composed of "objects".


>>        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.
>
>in Link.h, I see 7 kind of actions (LinkActionKind enum). Maybe they 
>are not all implemented.

         That is true, not all standard PDF types of actions are 
implemented in Xpdf.


>>        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.
>
>well, before defining dest, I test the action with :
>
>   if (item->action->getKind () != actionGoTo) *******

         Ah, that would be good then!

         Which puts us back to the question - why is that particular 
GoTo giving you back NULL.   Again, without the object ID, it's 
impossible to know.


LDR

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