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

Method getTextField

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

* Get a text field by name. * * @returns The text field, or undefined if not found or wrong type

(name: string)

Source from the content-addressed store, hash-verified

319 * @returns The text field, or undefined if not found or wrong type
320 */
321 getTextField(name: string): TextField | undefined {
322 const field = this.fieldsByName.get(name);
323
324 return field instanceof TextField ? field : undefined;
325 }
326
327 /**
328 * Get a checkbox field by name.

Callers 8

pdf-form.test.tsFile · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
forms.bench.tsFile · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected