These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to keep Bookmarks collapsed?

Shrobona
Registered: Sep 19 2008
Posts: 3
Answered

Hi! I would like to know if there is any way we can keep the Bookmark section collapsed when the PDF is first opened by someone who is opening the PDF for the first time?

Thanks!

daka630
Expert
Registered: Mar 1 2007
Posts: 1420
Shrobona,

Somethings to try.
When the output PDF is initially created, as a quality check, view the PDF.
In the Navigation Pane you'll observe "Options" in the upper right. Access the drop down menu and
select "Collapse Top-Level Bookmarks". Do a "Save As". Close the PDF. Open the PDF. The bookmarks will be collapsed.

In your authoring application, see if you can set the Bookmarks' expansion level.
In Adobe FrameMaker, using the PDF Setup dialog, one can select Default | All | None.
A selection of "None" would result in your desired setup upfront.
Although I may have missed something, I have not seen a similar choice in the PDFMaker associated with Acrobat 7 or 8 when authoring with MS Word.

PlantPDF has a plug-in to do this (not sure which version of Acrobat it is for).
[url]http://www.planetpdf.com/mainpage.asp?webpageid=637[/url]

You may want to look at 3rd Party plug-ins.
This article, by Duff Johnson, discusses a number of them.
[url]http://www.acrobatusers.com/articles/2007/02/bookmark_options/index.php[/url]

Use JavaScript.
There is a bookmark object associated with Acrobat JavaScript which has a property "open" which determines whether the bookmark shows its children in the navigation panel. The values are open | closed.
Perhaps a JavaScript, run via a Batch Sequence would help.

Be well...

Be well...

Shrobona
Registered: Sep 19 2008
Posts: 3
Hi!
Thank you so much for your reply. I could use both the options mentioned in your post to collapse the bookmarks!
However, what I intended to ask in my question was, that the bookmarks section itself be collapsed (as in not seen), when the user first opens the PDF.
I am not sure if it actualy depends on the user (if he has set to view/hide his bookmarks) or can it be set while generating the PDF?!

I should have ellaborated my question appropriately!:)


Shrobona
daka630
Expert
Registered: Mar 1 2007
Posts: 1420
Shrobona,
Something that may provide the result you desire.
Once you have the output PDF generated access the Initial View tab within the PDF Properties dialog.
(File > Properties > Initial View)
In the Layout and Magnification pane, for Navigation tab, use the Page Only setting.
In the User Interface Options pane, for Hide windows controls, select/check this setting.
Save or Save As. Close the PDF. Open the PDF; observe that, on initial open, the Navigation Pane is "off".

Be well...

Be well...

Shrobona
Registered: Sep 19 2008
Posts: 3
Hello Dave,

The options you suggested resulted in exactly what I wanted!

Thank you!

Shrobona
saraveenan
Registered: Oct 21 2007
Posts: 38
Hi Shrobona,

You can even batch this options to set the initial view if you a have to do it for a number of files. Just try "batch processing" in the advanced menu.

Regards,

Saravana :)

Saravanan Murugesan

crashnburn
Registered: Aug 14 2009
Posts: 14
interesting
thirilog1053
Registered: Aug 27 2010
Posts: 2
Dear Dave,

I am trying to set some N number of PDF files to its bookmarks should be collapsed when opening initially:

[Below is the code snippet frond in Web]

[Per your suggestion an using this script via Batch Sequence]

function CloseBookmark(bm){
bm.open = false;
if (bm.children != null) {
for (var i = 0; i < bm.children.length; i++) {
CloseBookmark(bm.children[i]);
}
}
return;
}

CloseBookmark(this.bookmarkRoot);

Its performing well, but I couldn't save the PDF with the collapsed changes. (As there is no physical changes happened!)

Could you please help me to save all the PDFs with the effective collapsed changes?

Thanks in Advance,
Thirilog

Thirilog