invalidateCacheForPage

abstract fun invalidateCacheForPage(@IntRange(from = 0) pageIndex: Int)

Invalidates the rendered cache of the given pageIndex for this document. Use this method if a single page of the document is not updated after a change, or changed externally, and needs to be re-rendered.

Note: this call may block for a while and should not be invoked on the main thread.

Parameters

pageIndex

0-based index of the page to refresh.