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

Method setIcon

src/annotations/text.ts:132–135  ·  view source on GitHub ↗

* Set the icon to display.

(icon: TextAnnotationIcon)

Source from the content-addressed store, hash-verified

130 * Set the icon to display.
131 */
132 setIcon(icon: TextAnnotationIcon): void {
133 this.dict.set("Name", PdfName.of(icon));
134 this.markModified();
135 }
136
137 /**
138 * State of the annotation (for review workflows).

Callers

nothing calls this directly

Calls 3

markModifiedMethod · 0.80
setMethod · 0.45
ofMethod · 0.45

Tested by

no test coverage detected