otl = doc:CreateOutline(parent, title, encoder)
doc:CreateOutline()
creates a new outline object.
When doc:CreateOutline()
succeeds, it returns the handle of created outline object. Otherwise, it returns Nil
and the error handler is invoked.
Nil
, the outline is created as a root outlineNil
, the document's encoding is used#HPDF_INVALID_DOCUMENT
- An invalid document handle was set.
#HPDF_FAILED_TO_ALLOC_MEM
- Memory allocation failed.
#HPDF_INVALID_OUTLINE
- An invalid parent outline is specified.