Modules
PapyriumViewer
Core module entry points for loading and unloading viewer instances.
Entry points
async function loadChrome(config: PapyriumLoadConfiguration): Promise<ViewerInstance>async function load(config: PapyriumLoadConfiguration): Promise<ViewerInstance>function unload(instance: ViewerInstance): void
Responsibilities
load: resolves configuration, creates the viewer instance, and mounts chrome when enabled.loadChrome: explicit chrome-first entrypoint for integrations that always require UI chrome.unload: detaches listeners and destroys the active instance safely.
Usage example
import { load, unload } from '@conekto/papyrium';
const instance = await load({
container: '#viewer',
document: pdfBytes,
locale: 'en-gb',
});
unload(instance);