Hesham,
My partner used my code to translate table of contents into bookmarks
on PDFs for some times now and never reported such a thing. (he uses
both Preview -sorry, I though like Bonjour that apple was getting into
internationlizing French words ;)- and acrobat pro)
Would you put your code so that I may compare it to mine.
Regards,
Julien
Le 24 oct. 2010 à 23:31, "Hesham G." <[email protected]> a
écrit :
I think this answer will not convince my customers :)
Ok, I hope someone would check this. If i can give any help, I'd be
delighted.
Best regards ,
Hesham
---------------------------------------------
Included message :
Not necessarily a bug in PDFBox. Preview on the Mac is not the
same thing as Acrobat, and has some bugs and shortcomings. One
needs to determine whether specs or standards have been violated by
PDFBox or by Preview.
On Oct 24, 2010, at 4:09 PM, Hesham G. wrote:
Ok ... Now that is more clear :)
I have tried this on more than 1 PDF, and they did the same thing
(The bookmarks appear and work fine in Windows, but do not appear
in Mac).
So is this considered a bug in PDFBox ?
I can give you a sample code here if you like for writing such
bookmarks.
Best regards ,
Hesham
---------------------------------------------
Included message :
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