Skip to content

Examples

Use the interactive demo to explore PDF, EPUB, and TXT rendering. The demo source is configured directly in examples/web/App.tsx.

Quick actions

ts
const INITIAL_SDK_CONFIG: PapyrusConfig = {
  initialUITheme: 'dark',
  initialPageTheme: 'sepia',
};

// Runtime
setDocumentState({ uiTheme: 'light' });
setDocumentState({ pageTheme: 'high-contrast' });