|
THPDFPage.AddFreeTextAnnotation
|
トップへ 前へ 次へ |
|
現在のページに新しい FreeText 注釈を追加します。
type THPDFFreeTextAnnotationJust = ( ftLeftJust, ftCenter, ftRightJust );
Delphi 構文: procedure AddFreeTextAnnotation ( 目次: AnsiString; Rectangle: TRect; Quadding: THPDFFreeTextAnnotationJust; Color: TColor = clRed );
C++ 構文: void __fastcall AddFreeTextAnnotation ( AnsiString 目次, Windows::TRect &Rectangle, THPDFFreeTextAnnotationJust Quadding, Graphics::TColor Color );
説明 使用法 AddFreeTextAnnotation to add new FreeText annotation specified text message ( 目次), rectangle area ( Rectangle ), justification ( Quadding ) and color on the current page.
Value Meaning ftLeftJust Left justification. ftCenter Center justification. ftRightJust Right justification.
ASCII 以外の内容(中国語、日本語、韓国語、アラビア語、キリル文字など)は、AnsiString オーバーロードでは UTF-8 で渡すか、WideString として渡します。そのような注釈は独自の appearance を持ち、ページの現在のフォントでテキストを 12 pt で描きます。そのため注釈を追加する前に、SetFont で文字をカバーするフォントを選んでください。フォントはページテキストと一緒に埋め込まれ、行は矩形に折り返され、Quadding に従います。ASCII だけの内容は従来どおりの注釈のままビューアーが Helvetica で描きます。埋め込みなしの Helvetica が許されない PDF/A と PDF/X では、これも埋め込みページフォントで描かれます
|