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
}
Instantiate and returns a new instance of Data.
new(value: string | Buffer): Data
The actual data to be written to a Document. This value must be a string or Buffer.
write(output: string): void
Write the Data object to the output value, output must be a valid path on disk.