Themes and styling in GemBox.PdfViewer
GemBox.PdfViewer allows you to choose from several themes that affect the styling of the PDF viewer. You can select one of the following themes:
- light
- dark
- blue
- dark-blue
- green
- dark-green
- red
- dark-red
The following example shows you can initialize the PDF viewer with the selected theme:
GemBoxPdfViewer.create({
container: "#viewer",
theme: "dark-red"
});
Click on the button to see how the theme looks on the viewer:
Themes when using ASP.NET Core tag helper
When using tag helper, you can set the theme when initializing the PDF viewer:
<gembox-pdfviewer
style="width:600px;height:350px;"
initial-document="./document.pdf"
license-key="FREE-LIMITED-KEY"
theme="dark-red">
</gembox-pdfviewer>