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

Method fromDict

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

* Create stream from dict entries and data.

(
    entries: Record<string, PdfObject>,
    data: Uint8Array = new Uint8Array(0),
  )

Source from the content-addressed store, hash-verified

90 * Create stream from dict entries and data.
91 */
92 static fromDict(
93 entries: Record<string, PdfObject>,
94 data: Uint8Array = new Uint8Array(0),
95 ): PdfStream {
96 return new PdfStream(Object.entries(entries), data);
97 }
98
99 /**
100 * Get the decoded (decompressed) stream data.

Callers 7

pdf-stream.test.tsFile · 0.80
serializer.test.tsFile · 0.80
embedPageMethod · 0.80
createStreamMethod · 0.80
embedJpegMethod · 0.80
embedPngMethod · 0.80

Calls 1

entriesMethod · 0.45

Tested by

no test coverage detected