API Documentation for Data

NoPoDoFo Data

The Data class is for writing arbitrary data to the Document. It is the user's responsibility to ensure the data written to the Document is valid data for a PDF.

class Data {
  new(value: string | Buffer): Data
  readonly value: string
  write(output: string): void
}

Constructors


Instantiate and returns a new instance of Data.

new(value: string | Buffer): Data

Properties


value

The actual data to be written to a Document. This value must be a string or Buffer.

Methods


write

write(output: string): void

Write the Data object to the output value, output must be a valid path on disk.

results matching ""

    No results matching ""