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

Method findTerminalField

src/document/forms/field-tree.ts:233–241  ·  view source on GitHub ↗

* Find a terminal field by name.

(name: string)

Source from the content-addressed store, hash-verified

231 * Find a terminal field by name.
232 */
233 findTerminalField(name: string): TerminalField | null {
234 const field = this.findField(name);
235
236 if (field && field instanceof TerminalField) {
237 return field;
238 }
239
240 return null;
241 }
242
243 /**
244 * Get the number of fields (including non-terminal).

Callers 2

field-tree.test.tsFile · 0.80

Calls 1

findFieldMethod · 0.95

Tested by

no test coverage detected