Open a ticket
Chat with us
Click or drag to resize

Setting available bookmarks options

Please note that application of the options described in this section depend on the initial set up explained here.

In this example:

  • bookmarks will be shown automatically on document load if the document have it (ShowBookmarksOnOpen default value is false)

  • shown bookmarks will not be in fully expanded state (BookmarksFullyExpanded default value is false)

  • once closed bookmarks on reopen will preserve expanded bookmark items (PreserveBookmarksState default value is false)

C#
using PdfViewer = Terminalworks.PdfViewer.AspNetCore;

var options = new PdfViewer.Options {
  Bookmark = new PdfViewer.BookmarkOptions {
    ShowBookmarksOnOpen = true,
    BookmarksFullyExpanded = false,
    PreserveBookmarksState = true
  }
};
Copyright © 2024 Terminalworks. All Rights Reserved