Name
  doc:GetEncoder -- get encoder object from name
Synopsis

      enc = doc:GetEncoder(encodingname)

Function
  `doc:GetEncoder()` gets the handle of an encoder object by specified encoding name.

  See Encodings for a list of valid encoding names.

  When `doc:GetEncoder()` succeeds, it returns the handle of an encoder object. Otherwise, it returns `Nil` and the error handler is called.

Inputs
  encodingname
    a valid encoding name (see above)
Results
  enc
    handle to an encoder
Errors
  `#HPDF_INVALID_DOCUMENT` - An invalid document handle was set.

  `#HPDF_FAILED_TO_ALLOC_MEM` - Memory allocation failed.

  `#HPDF_INVALID_ENCODING_NAME` - An invalid encoding name was set.

Show TOC