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:

Light
Dark
Blue
Dark blue
Green
Dark green
Red
Dark red

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>

See also


Next steps

GemBox.PdfViewer is a JavaScript library that enables you to show PDF files seamlessly in your web applications.

Download Buy