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

Method hasField

src/api/pdf-form.ts:396–398  ·  view source on GitHub ↗

* Check if a field exists.

(name: string)

Source from the content-addressed store, hash-verified

394 * Check if a field exists.
395 */
396 hasField(name: string): boolean {
397 return this.fieldsByName.has(name);
398 }
399
400 /**
401 * Get all text fields.

Callers 1

pdf-form.test.tsFile · 0.80

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected