View PDFs in dark mode using JavaScript
Nutrient’s PDF viewer can be switched into dark mode either programmatically or based on available device information. Get additional resources by visiting our guide about enabling the dark theme in our JavaScript PDF viewer.
![]()
This code sample is an example that illustrates how to use our SDK. Please adapt it to your specific use case.