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

Method setState

src/annotations/text.ts:149–152  ·  view source on GitHub ↗

* Set the annotation state.

(state: TextAnnotationState)

Source from the content-addressed store, hash-verified

147 * Set the annotation state.
148 */
149 setState(state: TextAnnotationState): void {
150 this.dict.set("State", PdfName.of(state));
151 this.markModified();
152 }
153
154 /**
155 * State model for the annotation.

Callers

nothing calls this directly

Calls 3

markModifiedMethod · 0.80
setMethod · 0.45
ofMethod · 0.45

Tested by

no test coverage detected