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

Method setName

src/annotations/base.ts:163–166  ·  view source on GitHub ↗

* Set the annotation name.

(name: string)

Source from the content-addressed store, hash-verified

161 * Set the annotation name.
162 */
163 setName(name: string): void {
164 this.dict.set("NM", PdfString.fromString(name));
165 this.markModified();
166 }
167
168 /**
169 * Modification date.

Callers

nothing calls this directly

Calls 3

markModifiedMethod · 0.95
setMethod · 0.45
fromStringMethod · 0.45

Tested by

no test coverage detected