status = annot:SetLineAnnotPosition(startpoint, startstyle, endpoint,
endstyle)
The startstyle and endstyle parameters must be one of the following constants:
#HPDF_LINE_ANNOT_NONE #HPDF_LINE_ANNOT_SQUARE #HPDF_LINE_ANNOT_CIRCLE #HPDF_LINE_ANNOT_DIAMOND #HPDF_LINE_ANNOT_OPENARROW #HPDF_LINE_ANNOT_CLOSEDARROW #HPDF_LINE_ANNOT_BUTT #HPDF_LINE_ANNOT_ROPENARROW #HPDF_LINE_ANNOT_RCLOSEDARROW #HPDF_LINE_ANNOT_SLASH |
The parameters startpoint and endpoint must be tables that describe a point each.
Thus, each of those tables must contain the fields x and y.
Returns #HPDF_OK on success. Otherwise, returns an error code and the error handler is invoked.