PDFium Delphi Component Docs

ReadingWordCacheCapacity property

Unit: PDFium

Sets the maximum number of managed geometry pages retained when ReadingWordPrefetch is enabled

Syntax

property ReadingWordCacheCapacity: Integer;

Description

The configured default is three pages; values from 1 to 16 are accepted, and any other value raises EPdfError without changing the capacity or the cache

With ReadingWordPrefetch=False the effective capacity is one, whatever the configured value

LRU eviction protects the currently requested cacheable page while warming neighbours; the complete retained pool also has limits of 32768 word records and 262144 UTF-16 text units

Prefetched pages must expose at most 262144 native characters; native parsing and transient extraction allocations are separate from these retained-data limits

An oversized explicitly requested page still uses the existing single-page active working set, outside the bounded retained pool, and does not start adjacent prefetch

Changing this property or ReadingWordPrefetch clears retained geometry without resetting lifetime counters

See Also

ReadingWordPrefetch, ReadingWordCacheCapacity, ClearReadingWordCache, ReadingWordCacheStatistics, TrackReadingWordAt