We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Display bookmarks panel on document open

In Adobe Acrobat, I’m able to go to the document properties, click Initial View, and select “Bookmarks Panel and Page” from the navigation tab.

Is this really not possible using Aspose?

Hi Sam,

You may 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.

Thank you! That was very helpful. I was unaware Document Outline was synonymous with “bookmarks tab”.

Hi Sam,

Actually, Adobe refers it as Bookmarks in the Adobe Reader or Adobe Acrobat; however, in the PDF specification Adobe calls it Outline. So, both bookmark and outline are used synonymously.

I hope this helps.