PDFium Delphi Component Docs

TextSnapshotCacheCount 속성

컴포넌트: TPdf  ·  유닛: PDFium
텍스트 스냅샷 캐시가 현재 유지하는 완전한 텍스트 페이지 스냅샷 개수를 반환합니다

Syntax

property TextSnapshotCacheCount: Integer; // read only

Description

이 값은 지금 텍스트 스냅샷이 유효한 페이지 수를 세므로, 문서가 로드된 동안 최대 Min(TextSnapshotCacheCapacity, PageCount)입니다

이 개수는 TextPageSnapshot이 완료되어 새 스냅샷을 캐시하면 늘어나고, 용량 압박, 페이지 편집, 문서 다시 로드로 항목이 무효화되면 줄어듭니다

읽기는 네이티브 PDFium 페이지 접근이 쓰는 렌더 잠금으로 보호되므로, 이 값은 동시 렌더링과 일관됩니다

Remarks

문서가 로드되지 않았거나 TextSnapshotCacheCapacity가 0인 동안에는 개수가 0입니다

이 개수는 특정 시점의 점유 수치입니다. 누적 조회 효율이 필요하면 TextSnapshotCacheHitCountTextSnapshotCacheMissCount를 사용하세요

Example

Snapshot := Pdf.TextPageSnapshot[1];
LogTextSnapshotCache(Pdf.TextSnapshotCacheCount,
  Pdf.TextSnapshotCacheCapacity);

See Also

TextSnapshotCacheCapacity, TextSnapshotCacheHitCount, TextSnapshotCacheMissCount, TextPageSnapshot