[Solved] Exporting to PDF with Bookmarks "Closed"

Writing a book, Automating Document Production - Discuss your special needs here

[Solved] Exporting to PDF with Bookmarks "Closed"

Postby TheRealOrion » Mon Nov 09, 2009 12:16 am

I have a large document with many headings and subheadings. When I export to PDF, all those headings turn into bookmarks, which is great. However, they always start out "open," which means that the bookmarks list in Acrobat is five times longer than the bookmark pane. I don't have Acrobat Pro--it's far outside my price range for software--so I can't just edit the PDF manually.

Is there a way to force the bookmarks to export "closed" instead of "open"?

Is there any other workaround you can think of that will achieve the same effect?
Last edited by TheRealOrion on Sat Dec 19, 2009 1:03 am, edited 1 time in total.
LibreOffice 5.2.5.1 on MacBook OS X 10.12.3, "Sierra"
TheRealOrion
 
Posts: 302
Joined: Tue Mar 04, 2008 9:43 am
Location: Vancouver, BC

Re: Exporting to PDF with Bookmarks "Closed"

Postby mriosv » Tue Nov 10, 2009 12:53 am

See the options in File/Export As PDF, Links tab.
LibreOffice 3.5.4 AOo-3.4 on Win 7 Ultimate
mriosv
Volunteer
 
Posts: 651
Joined: Mon Mar 09, 2009 1:12 am
Location: Galiza (España)

Re: Exporting to PDF with Bookmarks "Closed"

Postby TheRealOrion » Tue Nov 10, 2009 6:26 pm

Yeah, that's where I've been looking. The options I see are:

"Export bookmarks as named destinations."
"Convert document references to PDF targets."
"Export URLs relative to file system."
"Cross-Document Links: Default Mode, Open with PDF reader application, Open with Internet browser."

Does one of those handle open/closed bookmarks? None of the names would seem to suggest that, but I don't entirely understand all of them.
LibreOffice 5.2.5.1 on MacBook OS X 10.12.3, "Sierra"
TheRealOrion
 
Posts: 302
Joined: Tue Mar 04, 2008 9:43 am
Location: Vancouver, BC

Re: Exporting to PDF with Bookmarks "Closed"

Postby keme » Wed Nov 11, 2009 3:00 am

The setting you're looking for is on the Initial view tab of the pdf export dialog. Set Panes to Page only.

Note that not all software will respect this setting. Foxit reader 2.2 does not, while Adobe reader 9.2 does. I'm not at the Mac right now, so I can't check how Preview behaves (my guess is that it disregards this setting, and keeps the state from when it was previously open...). If needed, you can download Adobe reader for Mac OS-X from Adobe's web pages.
Apache OO 3.4.1/4.1.2/4.1.3, on Ms Windows 7/10 and Mac OS-X 10.8.5 and 10.11.
LibreOffice 4.3.3.2 on Mepis Antix MX 14
User avatar
keme
Volunteer
 
Posts: 3128
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Exporting to PDF with Bookmarks "Closed"

Postby TheRealOrion » Wed Nov 11, 2009 1:26 pm

No, that's not what I mean. In the bookmark menu, if you have sub-headings they appear indented, yes? If you click on a heading, its sub-headings appear and disappear. When I export a PDF, the file automatically has all the sub-headings visible. I'd like the bookmark tree to just show all the Heading 1's, which are my chapter titles. Does that make sense now? Is there a way to create that behaviour when I open the file? This is a big, reference book that I give to other people, so I'd like them to just see the chapter titles when they first open it.
LibreOffice 5.2.5.1 on MacBook OS X 10.12.3, "Sierra"
TheRealOrion
 
Posts: 302
Joined: Tue Mar 04, 2008 9:43 am
Location: Vancouver, BC

Re: Exporting to PDF with Bookmarks "Closed"

Postby RoryOF » Wed Nov 11, 2009 1:40 pm

If you cannot find a solution, Orion, you could restructure your bookmarks as follows:

Set up a Table of Contents displaying Chapter Headings only. Clicking on a Chapter would then take you to a page where the subheadings for that chapter were displayed. These subheadings in turn would point to the appropriate place in the document. At the bottom of each of these subpages you might put a Return to Main Contents link for easy navigation.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28737
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Exporting to PDF with Bookmarks "Closed"

Postby tn@BeWo » Thu Nov 12, 2009 1:38 pm

TheRealOrion wrote:... Is there a way to force the bookmarks to export "closed" instead of "open"?
Is there any other workaround you can think of that will achieve the same effect?
At least the free Reader doesn't support this afaik.
What you can do is to script the reader from outside to close the Bookmarks up to a certain level on open. If you want to deliver the behavior to other people reading your documents, you'd have to give them the script as well.
OOo 3.2.1 on ubuntu 10.4, MsWXP, MsW2k
tn@BeWo
Volunteer
 
Posts: 253
Joined: Fri Jul 24, 2009 8:26 am

Re: Exporting to PDF with Bookmarks "Closed"

Postby TheRealOrion » Sat Dec 19, 2009 1:02 am

For those who are interested, I found the way to do this! I knew there was a toggle somewhere. It just took me a long time to find it.

If you go through "File" and "Export as PDF..." you get a window with several tabs of options. Under the "User Interface" tab, the last option at the bottom is "Visible Bookmark Levels" and it has a counter next to it. Set that to "1," and the only bookmarks that will be "visible" when you open the file are the ones at level one.

Voila.
LibreOffice 5.2.5.1 on MacBook OS X 10.12.3, "Sierra"
TheRealOrion
 
Posts: 302
Joined: Tue Mar 04, 2008 9:43 am
Location: Vancouver, BC

Re: [Solved] Exporting to PDF with Bookmarks "Closed"

Postby zdanman » Fri Jul 27, 2018 1:07 am

You CANNOT (i repeat) CANNOT have underscores (_) in the tags/bookmarks if named destinations!!!! :crazy: :crazy: :crazy: :crazy:
OpenOffice 4.1.1 Windows 7 64-bit
zdanman
 
Posts: 3
Joined: Sun Mar 22, 2015 8:28 pm


Return to Advanced Uses

Who is online

Users browsing this forum: No registered users and 3 guests