PDFium Delphi Component Docs

ImportPages 메서드

컴포넌트: TPdf  ·  유닛: PDFium
다른 열린 TPdf의 하나 이상의 page를 이 document로 복사합니다

Syntax

function ImportPages(const Source: TPdf; const Range: WString = ''): Boolean

Description

열려 있는 다른 TPdf에서 이 문서로 한 페이지 이상을 복사해 옵니다

Range를 비워 두면 모든 페이지를 들여오고, "1-3,5"처럼 지정하면 원하는 부분만 가져옵니다

현재 페이지에 대한 모든 편집은 PDFium의 메모리상 표현에 버퍼링됩니다. UpdatePage로 렌더링 캐시를 갱신하고 SaveToFile로 변경 사항을 저장하세요

Remarks

Example

begin
  if Pdf1.Active then
  begin
    Pdf1.MoveTo(100, 100);
    Pdf1.LineTo(200, 150);
    Pdf1.LineTo(200, 200);
    Pdf1.ClosePath;
    Pdf1.AddPath(clRed, 1.5, clYellow, fmWinding);
    Pdf1.UpdatePage;
  end;
end;

See Also

AddPage, DeletePage, ImportPreferences