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

Method setStateModel

src/annotations/text.ts:166–169  ·  view source on GitHub ↗

* Set the state model.

(model: TextAnnotationStateModel)

Source from the content-addressed store, hash-verified

164 * Set the state model.
165 */
166 setStateModel(model: TextAnnotationStateModel): void {
167 this.dict.set("StateModel", PdfName.of(model));
168 this.markModified();
169 }
170}

Callers

nothing calls this directly

Calls 3

markModifiedMethod · 0.80
setMethod · 0.45
ofMethod · 0.45

Tested by

no test coverage detected