Name
  doc:UseUTFEncodings -- enable UTF-8 encodings
Synopsis

      status = doc:UseUTFEncodings()

Function
  `doc:UseUTFEncodings()` enables UTF-8 encodings. After `doc:UseUTFEncodings()` is invoked, an application can include UTF-8 encoded Unicode text (up to 3-byte UTF-8 sequences only). An application can use the following Unicode encodings (but only with TrueType fonts):

  When `doc:UseUTFEncodings()` succeeds, it returns `#HPDF_OK`. Otherwise, it returns an error code and the error handler is invoked.

Inputs
  none

Results
  status
    status code
Errors
  `#HPDF_INVALID_DOCUMENT` - An invalid document handle was set.

  `#HPDF_FAILED_TO_ALLOC_MEM` - Memory allocation failed.

  `#HPDF_DUPLICATE_REGISTRATION` - The encoding of the same name has already been registered.

Show TOC