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

Method setContents

src/annotations/base.ts:146–149  ·  view source on GitHub ↗

* Set the annotation contents.

(contents: string)

Source from the content-addressed store, hash-verified

144 * Set the annotation contents.
145 */
146 setContents(contents: string): void {
147 this.dict.set("Contents", PdfString.fromString(contents));
148 this.markModified();
149 }
150
151 /**
152 * Annotation name (unique identifier within page).

Callers 1

Calls 3

markModifiedMethod · 0.95
setMethod · 0.45
fromStringMethod · 0.45

Tested by

no test coverage detected