removing one page from a small document (perhaps three pages total) to
keep things simple and easy to work with.
Thanks,
Adam
From:
Hesham G. heshamgne...@gmail.com
To:
users@pdfbox.apache.org
Date:
09/14/2010 01:55
Subject:
Re: getting and setting names of named destinations
Adam ,
I
Kevin and Adam ,
I have made some tests and i am now sure of the problem ... The problem is
not in the method setNamedDestination( G917701 );
The main problem is if i use importPage(...) to copy/paste some pdf pages,
then copy their bookmarks. Here is a code sample where i copy a PDF having
Named
Kevin ,
You said you were having problems setting a named destination. I have tried to
define a bookmark named destination but it didn't work.
Here is my code :
PDNamedDestination pn = new PDNamedDestination();
pn.setNamedDestination( G917701 );
bookmark.setDestination( pn );
When I open the
Strange ... I will try to dig in this, and I will be waiting your reply for
more details if you can help.
Happy trip ...
Best regards ,
Hesham
-
Included message :
No, I was able to get mine to work sorta... the named destinations are
problematic
Hesham,
I'm sorry to mislead you. I looked at my notes and it turns out I never
created them; I just edited them. So I a'm not sure I can help you. I am
very interested in this and will experiment with it next week.
Has anyone out there been able to create named destinations using pdfbox?
Kevin
Kevin ,
I have been investigating the Named destinations for bookmarks, and i
remembered your problem. Please try this example to get the names of the
destinations ... I hope it's right :
try {
PDNamedDestination pn = (PDNamedDestination)bookmark.getDestination(); //
The bookmark = A
Thanks a lot. I was able to get them as well. However, I still run into some
problems when I set them. I've decided to use a different means to set them
for my work, so I don't need PDFBox for that any more. However it would be
nice if it worked a little better (IMHO).
On Tue, Aug 31, 2010 at
I've figured this out. Basically you get a Map from getNames() and can fix
the destination names (keys), then use setNames(). However this seems to
break the destinations in a way that I do not understand. I will keep
plugging away and will post code samples when I have it worked out.
Anyone else
Ok, sort of pigybacking off the previous discussions... I was able to get
PDFBox to allow me to get the page numbers of named dests, and even to alter
the zoom factor for each one. However, I cannot get and/or set the names
themselves (the actual names of the named destinations). Anyone got any
9 matches
Mail list logo