|
THPDFPage.AddFreeTextAnnotation
|
Top Previous Next |
|
현재 페이지에 새 FreeText 주석을 추가합니다
type THPDFFreeTextAnnotationJust = ( ftLeftJust, ftCenter, ftRightJust );
Delphi syntax: procedure AddFreeTextAnnotation ( Contents: AnsiString; Rectangle: TRect; Quadding: THPDFFreeTextAnnotationJust; Color: TColor = clRed );
C++ syntax: void __fastcall AddFreeTextAnnotation ( AnsiString Contents, Windows::TRect &Rectangle, THPDFFreeTextAnnotationJust Quadding, Graphics::TColor Color );
Description Use AddFreeTextAnnotation to add new FreeText annotation specified text message ( Contents), rectangle area ( Rectangle ), justification ( Quadding ) and color on the current page.
Value Meaning ftLeftJust Left justification. ftCenter Center justification. ftRightJust Right justification.
ASCII 밖의 콘텐츠(중국어, 일본어, 한국어, Arabic, 키릴 문자 등)는 AnsiString overload로는 UTF-8로, WideString으로는 그대로 전달합니다. 그런 annotation은 페이지의 현재 폰트로 12pt 크기 텍스트를 그리는 자체 appearance를 받으므로, annotation을 추가하기 전에 SetFont로 해당 문자를 포함하는 폰트를 선택하십시오. 폰트는 페이지 텍스트와 함께 임베드되고, 줄은 사각형에 맞춰 줄바꿈되며 Quadding을 따릅니다. ASCII만 있는 콘텐츠는 기존의 plain annotation을 유지하며 뷰어가 Helvetica로 그립니다. 임베드되지 않은 Helvetica를 허용하지 않는 PDF/A와 PDF/X에서는 이런 콘텐츠 역시 임베드된 페이지 폰트로 그려집니다
|