Nutrient Web SDK

ReferenceEventsPageRenderErrorEvent

Interface PageRenderErrorEvent

This event is emitted when a WebAssembly page render cannot allocate enough memory and still fails after one automatic retry. The device itself can still have free memory, and the page can continue displaying current lower-resolution content when available.

Interface

Example

Handle a terminal page render error.

instance.addEventListener("page.renderError", event => {
if (event.error instanceof NutrientViewer.OutOfMemoryError) {
console.log(event.pageIndex, event.pageStillDisplaysContent);
}
});

Properties

The terminal WebAssembly rendering memory error.

number

The index of the page that could not be rendered.

boolean

Whether current content for the page is visible when the event is emitted.