Debenu Quick PDF logo


Text, Annotations and hotspot links

Version history

This function was introduced in Quick PDF Library version 10.11.


Adds a free text annotation to the selected page. If a border and/or fill is specified using the Options parameter then the settings are retrieved from the current line color, fill color, line width, pen dash settings.

SetLineColor does not affect border color. Border color is currently set to the same color as the text color due to the way Acrobat works. SelectFont does not affect font style. Currently the font is hardcoded to the standard Helvetica font due to the way Acrobat works.

SetTextSize will affect text size correctly

SetTextColor will affect text color correctly

SetLineWidth will adjust border width correctly

SetTextAlign will adjust text alignment correctly

The SetTransparency function will *not* change the transparency of annotations. Use the new AddFreeTextAnnotationEx function if you want to adjust transparency settings.



function TDebenuPDFLibrary1511.AddFreeTextAnnotation(Left, Top, Width, 
  Height: Double; Text: WideString; Angle, Options: Integer): Integer;


Function DebenuPDFLibrary1511.PDFLibrary::AddFreeTextAnnotation(Left As Double,
  Top As Double, Width As Double, Height As Double, Text As String,
  Angle As Long, Options As Long) As Long


int DPLAddFreeTextAnnotation(int InstanceID, double Left, double Top, double Width,
  double Height, wchar_t * Text, int Angle, int Options)


Left The horizontal coordinate of the left edge of the annotation rectangle
Top The vertical coordinate of the left edge of the annotation rectangle
Width The width of the annotation rectangle
Height The height of the annotation rectangle
Text The text content of the annotation
Angle The angle of the drawn text. Can be 0, 90, 180 or 270.
Options 0 = Outline
1 = Fill
2 = Fill and Outline

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport