Name
page:CreateStampAnnot -- create stamp annotation object
Synopsis
ant = page:CreateStampAnnot(rect, stamp, text, encoder)
Function
page:CreateStampAnnot() creates a new stamp annotation object for the page.

The stamp parameter must be one of the following constants:

 
#HPDF_STAMP_ANNOT_APPROVED
#HPDF_STAMP_ANNOT_EXPERIMENTAL
#HPDF_STAMP_ANNOT_NOTAPPROVED
#HPDF_STAMP_ANNOT_ASIS
#HPDF_STAMP_ANNOT_EXPIRED
#HPDF_STAMP_ANNOT_NOTFORPUBLICRELEASE
#HPDF_STAMP_ANNOT_CONFIDENTIAL
#HPDF_STAMP_ANNOT_FINAL
#HPDF_STAMP_ANNOT_SOLD
#HPDF_STAMP_ANNOT_DEPARTMENTAL
#HPDF_STAMP_ANNOT_FORCOMMENT
#HPDF_STAMP_ANNOT_TOPSECRET
#HPDF_STAMP_ANNOT_DRAFT
#HPDF_STAMP_ANNOT_FORPUBLICRELEASE

The rect parameter must be a table which contains left, top, right, and bottom fields that describe a rectangle.

Inputs
rect
a rectangle of the clickable area
stamp
stamp annotation type (see above for possible values)
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