Hi!
I was looking for a way to ensure that bookmarks were hidden when opening a document ( that is to set
Navigation tab to
Page only using the terminology from the
Initial View tab of the Acrobat document properties ) when I found this discussion from 2011. I just thought that I'd add my findings, to make it simpler for other people looking for the same thing:
It seems that since 2011 support has been added in PDFSharp to show bookmarks:
Code:
document.PageMode = PdfPageMode.UseOutlines;
or, to turn them off (as I needed):
Code:
document.PageMode = PdfPageMode.UseNone