pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilad Denneboom <gilad.denneb...@gmail.com>
Subject Re: bookmark.getDestination is null
Date Wed, 30 Oct 2013 19:10:06 GMT
Like I said, you need to determine (using instanceof, for example) which
actual class it is, one of the subsets of PDAction, like PDActionGoTo ...


On Wed, Oct 30, 2013 at 7:51 PM, Sera <news4sera@gmx.de> wrote:

> current.getAction() is just a PDAction. From there I don't have access to
> getDestination().
> Am 30.10.2013, 16:27 Uhr, schrieb Gilad Denneboom <
> gilad.denneboom@gmail.com>:
>
>
>  You should get the Action of the bookmark, and then check which type of
>> action it is (probably PDActionGoTo), and from the Action you'll have
>> access to the Destination.
>>
>>
>> On Wed, Oct 30, 2013 at 4:00 PM, Sera <news4sera@gmx.de> wrote:
>>
>>  Hello!
>>> I need to extract the pagenumber out of the bookmarks and tried it with
>>>
>>> PDOutlineItem current = bookmark.getFirstChild();
>>> PDDestination destination = null;
>>> destination = current.getDestination();
>>>
>>> But the destination stays null. Any ideas on how to fix this?
>>>
>>> Regards,
>>> Sera
>>>
>>>
>
> --
> Erstellt mit Operas E-Mail-Modul: http://www.opera.com/mail/
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message