Setting available toolbar options |
Please note that application of the options described in this section depend on the initial set up explained here.
This is an example which shows all available toolbar options and its default values.
If you are fine with the default value, you can omit it, otherwise set it to false.
using PdfViewer = Terminalworks.PdfViewer.AspNetCore; var options = new PdfViewer.Options { Toolbar = new PdfViewer.ToolbarOptions { IsBookmarksVisible = true, IsDocumentInfoVisible = true, IsMultiViewVisible = true, IsNextPageVisible = true, IsNextVisitedVisible = true, IsOpenVisible = true, IsCloseVisible = true, IsPageNumberVisible = true, IsPreviousPageVisible = true, IsPreviousVisitedVisible = true, IsPrintVisible = true, IsRotateClockwiseVisible = true, IsRotateCounterClockwiseVisible = true, IsDownloadVisible = true, IsSearchVisible = true, IsSingleViewVisible = true, IsToolbarVisible = true, IsTooltipVisible = true, IsZoomDropDownVisible = true, IsZoomInVisible = true, IsZoomOutVisible = true } };
Example how to hide Bookmark and Document info buttons from the toolbar:
using PdfViewer = Terminalworks.PdfViewer.AspNetCore; var options = new PdfViewer.Options { Toolbar = new PdfViewer.ToolbarOptions { IsBookmarksVisible = false, IsDocumentInfoVisible = false } };
Support Availability - December 25th to December 29th, 2024
From December 25th to December 29th, 2024, our support team will be available exclusively via email.
For assistance, please contact us at [email protected], and we will respond to your inquiry as soon as possible.