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

Method createArray

src/api/pdf.ts:1997–2001  ·  view source on GitHub ↗

* Create and register a new array.

(items?: PdfObject[])

Source from the content-addressed store, hash-verified

1995 * Create and register a new array.
1996 */
1997 createArray(items?: PdfObject[]): PdfRef {
1998 const arr = items ? new PdfArray(items) : new PdfArray();
1999
2000 return this.register(arr);
2001 }
2002
2003 /**
2004 * Create and register a new stream.

Callers 1

pdf.test.tsFile · 0.80

Calls 1

registerMethod · 0.95

Tested by

no test coverage detected