THPDFPage.AddTextAnnotation

THPDFPage

 

Góra  Poprzedni  Następny

Dodaje nową adnotację Text na bieżącej stronie.

 

type

     THPDFTextAnnotationType = ( taComment, taKey, taNote, taHelp, taNewParagraph, taParagraph, taInsert );

 

Delphi syntax:

procedure AddTextAnnotation ( Contents: AnsiString; Rectangle: TRect; Open: boolean; Name: THPDFTextAnnotationType; Color: TColor = clRed );

procedure AddTextAnnotation ( Contents: AnsiString; Rectangle: TRect; Open: boolean; Name: THPDFTextAnnotationType; Title: AnsiString; Color: TColor = clRed );

 

C++ syntax:

void __fastcall AddTextAnnotation ( AnsiString Contents, Windows::TRect &Rectangle, bool Open, THPDFTextAnnotationType Name, Graphics::TColor Color );

void __fastcall AddTextAnnotation ( AnsiString Contents, Windows::TRect &Rectangle, bool Open, THPDFTextAnnotationType Name, AnsiString Title, Graphics::TColor Color );

 

Description

Use AddTextAnnotation, by dodać nową adnotację Text z podanym komunikatem tekstowym ( Contents), obszarem prostokąta ( Rectangle ), widokiem ikony ( Name ) i kolorem na bieżącej stronie. Ustaw Open na true, by otworzyć adnotację, albo na false, by ją zamknąć. Overload z Title zapisuje tytuł albo autora adnotacji tekstowej PDF w wpisie /T

 

Wartość                            Znaczenie


taComment                Komentarz

taKey                         Klucz

taNote                        Notatka

taHelp                        Pomoc

taNewParagraph        Nowy akapit

taParagraph               Akapit

taInsert                      Wstawienie

 

 

Text annotation preview