I have been using OpenOffice Writer for a few years now, and really like it. I've used it exclusively to generate PDF documentation, but I've hit a snag.
I want to be able to call a PDF document from another program, and have the PDF open to a particular topic. In the Adobe PDF Reader world, this would be with a named destination, and the Adobe Reader call would use the option "nameddest=name" where name is the name of the named destination in the PDF. A lot like a bookmark, but I've tried defining a bookmark in Writer, and Adobe Reader does not recognize it as a named destination.
Anyone know if Adobe PDF named destinations can be created in Writer or not?
Thanks in advance.
- djb
[Solved] Named Destinations in PDF Docs
[Solved] Named Destinations in PDF Docs
Last edited by Hagar Delest on Thu Jul 23, 2009 9:12 pm, edited 1 time in total.
Reason: tagged [Solved].
Reason: tagged [Solved].
OOo 3.1.1 on MS Windows XP
Re: Named Destinations in PDF Docs
It seems to work for me if I choose File > Export to PDF > Links > Export bookmarks as named destinations: YES
The bookmark is not visible at all in the Acrobat reader graphical interface, but it does work if I start the reader with
$ acroread /a nameddest=BMK01 printme.pdf
The bookmark is not visible at all in the Acrobat reader graphical interface, but it does work if I start the reader with
$ acroread /a nameddest=BMK01 printme.pdf
AOO4/LO5 • Linux • Fedora 23
[Solved] Named Destinations in PDF Docs
Excellent. You're right, Writer bookmarks will convert to PDF named destinations, but only if there are no special characters in the bookmarks. I have underscores ("_") in the bookmarks, and these got converted to "5F" in the PDF named destination. (eg, "marker_01" gets converted to "marker5F01) I simply removed the "_" and viola! It works!
Also, if anyone is interested, there is a way to see what text string the named destinations are in Acrobat.
Select View->Destination Panels->Destinations from the Acrobat menu. That's how I realized the underscores were getting replaced.
- djb

Also, if anyone is interested, there is a way to see what text string the named destinations are in Acrobat.
Select View->Destination Panels->Destinations from the Acrobat menu. That's how I realized the underscores were getting replaced.
- djb
OOo 3.1.1 on MS Windows XP
Re: Named Destinations in PDF Docs
No such menu in my Reader (the no-cost download from Adobe, v 9.1.2).Select View->Destination Panels...
I can't find any way to check how the bookmark names are exported but it sounds like it could be a bug.... only if there are no special characters in the bookmarks. I have underscores ("_") in the bookmarks, and these got converted to "5F" in the PDF...
If I look directly at the contents of a PDF exported from a document containing two bookmarks, named "BMK $1" and "BMK_01", I see:
/BMK2520241 ...
/BMK5F01 ...
So that matches your description for the underscore.
I know nothing about the internals of PDF files, but it may well be that the destination names have some strong limitations on what characters are allowed; perhaps only letters and numbers. If that's the case, then OOo is probably handling the "funny" characters about as well as could be expected.
You can always submit a bug report--it's really not very nice to munge the names without at least warning you there's a problem--and see what the developers have to say: [Tutorial] Reporting bugs or suggestions.
AOO4/LO5 • Linux • Fedora 23
Re: Named Destinations in PDF Docs
I'm using a paid version, Adobe Acrobat Pro version 8. I was supposed to use this to create the PDFs, but I like Writer sooooo much better.acknak wrote:No such menu in my Reader (the no-cost download from Adobe, v 9.1.2).Select View->Destination Panels...

Hadn't thought about it, I just may do that.acknak wrote:I can't find any way to check how the bookmark names are exported but it sounds like it could be a bug.... only if there are no special characters in the bookmarks. I have underscores ("_") in the bookmarks, and these got converted to "5F" in the PDF...
...
You can always submit a bug report--it's really not very nice to munge the names without at least warning you there's a problem--and see what the developers have to say: [Tutorial] Reporting bugs or suggestions.

- djb
OOo 3.1.1 on MS Windows XP
Re: [Solved] Named Destinations in PDF Docs
... sorry to disturb You,
but under Acrobat 9 and newer,
this function is not functional any more.
You can't have bookmarks AND Named Destinations
with the PDFmaker.
but under Acrobat 9 and newer,
this function is not functional any more.
You can't have bookmarks AND Named Destinations
with the PDFmaker.
OpenOffice 3.1 on Windows Vista / OpenOffice 2.4 on Ubuntu 9.04