Hello Hesham,
Sorry for that, I can be a bit messy sometimes. I meant that the first
debugging exectution provided the same results as you (in Aperçu,
didn't try on Windows).
Then, I added an instruction like outlineItem.openNode() where
outlineItem is the PDDocumentOutline object.
Aperçu then understands that there is an outline attached to the
document. I don't know if it feets the specs but works like this.
Regards,
Julien PLÉE
Le 24 oct. 10 à 18:41, Hesham G. a écrit :
Thanks Julian for your reply.
Sorry, I do not understand your answer ! Do you mean the bookmarks
appeared fine to you in Mac ?
Best regards ,
Hesham
---------------------------------------------
Included message :
Hello Hesham,
I had the same result in Aperçu at the beginning. I didn't tried to
open it in Windows, I did instead "open" the bookmark root after
adding the bookmarks to it and it did well.
Regards
Julien PLÉE
Le 24 oct. 10 à 17:04, Hesham G. a écrit :
Hello ,
I have created a new PDF book using PDFBox, copied pages to it from
another PDF, then I defined a new bookmarks tree for it normally as
specified here : http://www.pdfbox.org/userguide/bookmarks.html
The output PDF works perfect in Windows, and the bookmarks work
great.
But when I opened the same PDF in Mac OS X using the default PDF
viewer(Called 'Preview')... The PDF worked fine, but no bookmarks
appear in it. Here is a PDF sample so you can test it :
http://www.4shared.com/document/99lLOhb0/PDF_with_PDFBox_bookmarks_that.html
You will see the bookmarks appear fine in Windows, but it does not
appear at all in Mac. Any idea what is wrong ?
Best regards ,
Hesham