Skip to content

PDFDocumentProxy.cleanup method

PDFDocumentProxy › cleanup

Unofficial

Cleans up resources held by the document.

Signature:

cleanup(manuallyTriggered?: boolean): Promise<void>

Parameters:

ParameterTypeDescription
manuallyTriggered?booleanWhether cleanup was manually triggered.

Returns: Promise<void> — A promise that resolves when cleanup is complete.