IsPageCached

Viewer interaction

Description

True when the page's bitmap at the current zoom and view rotation sits in the in-memory cache. The check consults the same composite cache key the paint path uses, so a True result guarantees the next paint of that page needs no rendering

Syntax

Delphi

Function TPDFlibViewer.IsPageCached(APage: Integer): Boolean;

Parameters

APageOne-based page index

Return values

FalseThe page is not cached at the current zoom and rotation
TrueA cached bitmap for the page is ready to draw

See also

TPDFlibViewer, Cache, DrainPrefetched, DiskCacheHits