MCPcopy Create free account
hub / github.com/LibPDF-js/core / setData

Method setData

src/objects/pdf-stream.ts:81–87  ·  view source on GitHub ↗

* Set new stream content (decoded/uncompressed). * * Clears any existing filters since the data is now uncompressed. * Compression will be applied at write time if `compressStreams` is enabled.

(value: Uint8Array)

Source from the content-addressed store, hash-verified

79 * Compression will be applied at write time if `compressStreams` is enabled.
80 */
81 setData(value: Uint8Array): void {
82 // Clear filters - the new data is uncompressed
83 this.delete("Filter");
84 this.delete("DecodeParms");
85 this._data = value;
86 this.dirty = true;
87 }
88
89 /**
90 * Create stream from dict entries and data.

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected