API Documentation for Encoding

NoPoDoFo Encoding

The document or page contents encoding, must be one of NPDFFontEncoding. This class does not expose a constructor. The creation of an instance of Encoding is handled by the Font class.

class Encoding {
  addToDictionary(target: Object): void
  convertToUnicode(content: string, font: Font): string
  convertToEncoding(content: string, font: Font): Buffer
}

Properties


Methods


addToDictionary

addToDictionary(target: Object): void

Add the encoding instance to the Object provided. Object must be a Dictionary type.

convertToUnicode

convertToUnicode(content: string, font: Font): string

Converts the contents to unicode using in the provided Font.

convertToEncoding

convertToEncoding(content: string, font: Font): Buffer

Converts the contents with the Encoding using in the provided Font.

results matching ""

    No results matching ""