Free Support Forum -

How to set PFD document to open with bookmarks shown?

Please give instruction on how to set the PDF document property so that when open in Adobe Reader the bookmark navigations will be shown at left by default, i.e. without requiring user to click on the bookmark expansion button.

Hi Michael,

You can use ChangeViewerPreference method of PdfContentEditor class to show the bookmark panel by default. Please use the following code snippet to achieve the goal:

//create PdfContentEditor object

PdfContentEditor editor = new PdfContentEditor();

//bind input PDF file


//change Viewer Preferences


//save output PDF file


I hope this helps. If you have any further questions, please do let us know.