Example
instance.addEventListener("page.renderError", event => {
if (event.error instanceof NutrientViewer.OutOfMemoryError) {
console.log("Page rendering ran out of memory", event.pageIndex);
}
});
Hierarchy
PSPDFKitErrorOutOfMemoryError
Constructors
Parameters
messagestringOptional
Properties
Accessors
- get name(): string
Returns
string
An error raised when a page render cannot complete because the WebAssembly renderer could not allocate enough memory within its configured heap. This can happen because of document or page complexity even when the device still has free memory. This extends NutrientViewer.Error and is delivered through the
page.renderErrorevent.