pdfViewerPageObjectCacheMaxEntries top-level property
Maximum number of per-page objects the viewer retains in each page-keyed object cache, regardless of size. See PdfPageObjectCache.
Left unbounded these caches grow one small entry for every page ever visited and are dropped only on a document/revision swap - retention keyed by the page index that only ever grows, the same shape issue #283 measured (the render worker's record cache had the identical problem, capped in #286). The entries hold text/annotation data, not decoded pixels, so the footprint is minor, but on a long scroll it is still unbounded in the page count. Capturing this cap when a viewer builds its caches bounds it. Lower it once at startup on a memory-constrained device.
Implementation
int pdfViewerPageObjectCacheMaxEntries =
defaultPdfViewerPageObjectCacheMaxEntries;