PDFium Component Docs

SetText 메서드

컴포넌트: TPdf  ·  유닛: PDFium
주어진 페이지 좌표에 텍스트 페이지 객체를 추가합니다

Syntax

procedure SetText(const Font: WString; FontSize: Double; X, Y: Double; const Text: WString; Color: TColor = clBlack)

Description

주어진 페이지 좌표에 텍스트 페이지 객체를 추가합니다

PDF에 등록된 글꼴 이름을 전달하세요. 래스터 주석에는 대신 AddImage를 사용하세요

현재 페이지의 모든 편집은 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

AddText, AddImage, AddPath