Debenu Quick PDF logo

AddFreeTextAnnotationEx

Text, Annotations and hotspot links

Version history

This function was introduced in Quick PDF Library version 11.14.

Description

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. Use the Transparency parameter to adjust the transparency settings for free text annotations. The SetTransparency function does not work with annotations.

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 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

Syntax

Delphi

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

ActiveX

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

DLL

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

Parameters

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
Transparency The amount of transparency to apply
0 = No transparency
50 = 50% transparency
100 = Invisible

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport