Name
  page:CreateLineAnnot -- create line annotation object
Synopsis

      ant = page:CreateLineAnnot(text, encoder)

Function
  `page:CreateLineAnnot()` creates a new line annotation object for the page.

Inputs
  text
    the text to be displayed
  encoder
    an encoder handle which is used to encode the text; if it is `Nil`, the default encoding is used
Results
  ant
    handle to an annotation
Errors
  `#HPDF_INVALID_PAGE` - An invalid page handle was set.

  `#HPDF_FAILED_TO_ALLOC_MEM` - Memory allocation failed.

  `#HPDF_INVALID_ENCODER` - An invalid encoder handle is specified.

Show TOC