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

Method register

src/api/pdf.ts:1973–1975  ·  view source on GitHub ↗

* Register a new object, assigning it a reference. * * The object will be written on the next save.

(obj: PdfObject)

Source from the content-addressed store, hash-verified

1971 * The object will be written on the next save.
1972 */
1973 register(obj: PdfObject): PdfRef {
1974 return this.ctx.registry.register(obj);
1975 }
1976
1977 /**
1978 * Create and register a new dictionary.

Callers 15

addPageMethod · 0.95
insertPageMethod · 0.95
embedPageMethod · 0.95
createDictMethod · 0.95
createArrayMethod · 0.95
createStreamMethod · 0.95
embedJpegMethod · 0.95
embedPngMethod · 0.95
createAxialShadingMethod · 0.95
createRadialShadingMethod · 0.95
createLinearGradientMethod · 0.95
createTilingPatternMethod · 0.95

Calls

no outgoing calls

Tested by 1

makeIndirectFunction · 0.36