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

editor.BindPdf(“input.pdf”);

//change Viewer Preferences

editor.ChangeViewerPreference(ViewerPreference.PageModeUseOutlines);

//save output PDF file


editor.Save(“output.pdf”);


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