PDFium Delphi Component Docs

ReadPageObjectsSnapshot 메서드

컴포넌트: TPdf  ·  유닛: PDFium
한 페이지의 모든 페이지 객체에 대한 소유권 있는 핸들 없는 스냅샷을 읽어 옵니다

Syntax

function ReadPageObjectsSnapshot(PageNumber: Integer; const Options: TPdfPageObjectSnapshotOptions; out Status: TPdfPageObjectSnapshotStatus): TPdfPageObjectsSnapshot;

Description

ReadPageObjectsSnapshot은 한 페이지의 모든 페이지 객체에 대한 타입, 경계, 변환, 텍스트, 마크, 의존성 정보를 네이티브 FPDF_PAGEOBJECT 핸들을 전혀 담지 않는 소유권 있는 TPdfPageObjectsSnapshot으로 복사합니다

PageNumber는 1 기반이고 Status는 빈 스냅샷이 돌아온 이유를 알려주므로 호출자는 없는 페이지와 한도에 걸린 읽기를 구별할 수 있습니다

Remarks

    • 스냅샷은 문자열과 배열을 직접 소유하므로 문서를 닫거나 다시 적은 뒤에도 유효합니다
    • 반복 읽기는 페이지 객체 스냅샷 캐시로 충족됩니다. PageObjectSnapshotCacheCapacity를 참고하세요
    • 현재 페이지의 캐시된 스냅샷을 읽을 때는 PageObjectsSnapshot을 사용하세요

Example

렌더링 콜백 밖에서 페이지의 모든 객체를 검사합니다

var Snap: TPdfPageObjectsSnapshot; Status: TPdfPageObjectSnapshotStatus;
Doc := Pdf1.ReadPageObjectsSnapshot(1, Default(TPdfPageObjectSnapshotOptions), Status);

See Also