Result

Returns annotation handle or error.

Description

Creates a Highlight annotation.
Highlight annotations are used to mark text on a PDF page.
If the coordinate system is bottom-up the point PosX, PosY defines the lower left corner of the bounding rectangle. If the coordinate system is top-down it defines the upper left corner.
The parameter Color specifies the highlight color; it must be defined in RGB color space. The line width of a Strikout or Underline annotation is not adjustable. The line width depends on the size of the annotation and is automatically calculated.
The active color space must be set to DeviceRGB before creating the annotation. See DynaPDF.SetColorSpace for further information.