AddTextMarkupAnnotation
Version history
This function was introduced in Quick PDF Library version 7.21.
Description
Adds a text markup annotation to the current page.
By default the annotation will consist of a single rectangular area matching the annotation's bounding box. This area can be edited and other areas can be added using the GetAnnotQuadCount, GetAnnotQuadPoints and SetAnnotQuadPoints functions.
Syntax
Delphi
function TQuickPDF0813.AddTextMarkupAnnotation(MarkupType: Integer; Left, Top,
Width, Height: Double): Integer;
ActiveX
Function QuickPDF0813.PDFLibrary::AddTextMarkupAnnotation(MarkupType As Long,
Left As Double, Top As Double, Width As Double, Height As Double) As Long
DLL
int QuickPDFAddTextMarkupAnnotation(int InstanceID, int MarkupType, double Left,
double Top, double Width, double Height)
Parameters
| MarkupType |
0 = Highlight 1 = Underline 2 = Squiggly 3 = Strike out |
| Left | The horizontal co-ordinate of the left edge of the annotation bounding box |
| Top | The vertical co-ordinate of the top edge of the annotation bounding box |
| Width | The width of the annotation bounding box |
| Height | The height of the annotation bounding box |
Return values
| 0 | The MarkupType parameter was not between 1 and 4. |
| 1 | The text markup annotation was added successfully. |