procedure SetText(const Font: WString; FontSize: Double; X, Y: Double; const Text: WString; Color: TColor = clBlack)
指定されたページ座標にテキストページオブジェクトを追加します
PDF に登録されたフォント名を渡します。ラスター注釈には代わりに AddImage を使います
現在ページへの編集はすべて PDFium のメモリ内表現にバッファーされます。レンダリングキャッシュを更新するには UpdatePage を、変更を永続化するには SaveToFile を呼び出します
Pdf1.Active が True であり、ページが選択されている必要があります
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;