eDocEngine VCL Professional Help » Symbol Reference » Namespaces of Helper Classes » gtExPDFEng Namespace » TgtPDFSquareAnnot Class

Gnostice eDocEngine VCL Developer Guide
TgtPDFSquareAnnot Class

This class represents a square annotation.

Pascal
public TgtPDFSquareAnnot = class(TgtPDFAnnot);
C++
public: class TgtPDFSquareAnnot : public TgtPDFAnnot;

gtExPDFEng

procedure TForm1.Demo_TgtPDFSquareAnnot;
var
  gtPDFSquareAnnot1: TgtPDFSquareAnnot;
  gtPDFEngine1: TgtPDFEngine;
begin
  gtPDFEngine1 := TgtPDFEngine.Create(Nil);

  // Create a square annotation
  gtPDFSquareAnnot1 := TgtPDFSquareAnnot.Create;
  gtPDFSquareAnnot1.Rect := gtRect(1, 1, 2, 2);
  gtPDFSquareAnnot1.DifferRect := gtRect(0.3, 0.3, 0.1, 0.1);
  gtPDFSquareAnnot1.InteriorColor := clYellow;
  gtPDFSquareAnnot1.BorderStyle := brInset;
  gtPDFSquareAnnot1.BorderWidth := 3;
  gtPDFSquareAnnot1.BorderColor := clRed;
  gtPDFSquareAnnot1.Cloudy := True;
  gtPDFSquareAnnot1.CloudIntensity := 2;
  gtPDFSquareAnnot1.Contents := 'This is a square annotation';
  gtPDFSquareAnnot1.Title := 'eDocEngine Demos';
  gtPDFSquareAnnot1.Subject := 'Square Annotation Demo';

  with gtPDFEngine1 do
  begin
    Preferences.ShowSetupDialog := False;
    Preferences.OpenAfterCreate := True;
    FileName := 'square_annotation.pdf';

    BeginDoc; // Create a PDF document
    // Add the annotation to the current page
    AddAnnotItem(gtPDFSquareAnnot1);
    EndDoc; // Save the PDF document
  end;
end;

 

Properties
TgtPDFSquareAnnot Class
 
Name 
Description 
 
Specifies border color of the annotation. 
 
Specifies dash pattern of the annotation border. 
 
Specifies style of the annotation border. 
 
Specifies width of the annotation border. 
 
Specifies the intensity of the "cloudy" effect on the annotation border. 
 
Specifies whether the border of the annotation should have a cloudy effect
 
Specifies text that needs to be used as the contents of the annotation's popup window. 
 
 
 
Specifies color used to fill the interior of the line endings. 
 
Rect 
Specifies the location of the annotation on its page. 
 
Specifies text that needs to be used as the subject in the annotation's popup window. 
 
Specifies text that needs to be used as the title in the annotation's popup window. 
Methods
TgtPDFSquareAnnot Class
 
Name 
Description 
 
Creates a new instance of this class. 
 
Destroys this instance.