This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/maui/user-interface/dark-theme.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. PDF viewer dark mode | Nutrient SDK

With Nutrient, it’s possible to programmatically change the interface to dark mode by setting the Application.Current!.UserAppTheme(opens in a new tab) property:

Application.Current!.UserAppTheme = AppTheme.Dark;
Application.Current!.UserAppTheme = AppTheme.Light;

Note that you can only set the theme to AppTheme.Dark or AppTheme.Light before loading the MAUI SDK. Any theme changes after the SDK is loaded will not be applied.

Advanced theming

The MAUI SDK uses the Nutrient Web SDK internally for rendering. If you need more granular control over the viewer’s appearance beyond the built-in dark and light themes — such as customizing colors, typography, spacing, or applying theme changes to specific UI sections — refer to the Web SDK theming guide.