UNPKG

pdfjs-dist

Version:

Generic build of Mozilla's PDF.js library.

19 lines (18 loc) • 726 B
export type TextContent = import("./api").TextContent; /** @typedef {import("./api").TextContent} TextContent */ export class XfaText { /** * Walk an XFA tree and create an array of text nodes that is compatible * with a regular PDFs TextContent. Currently, only TextItem.str is supported, * all other fields and styles haven't been implemented. * @param {object} xfa - An XFA fake DOM object. * @returns {TextContent} */ static textContent(xfa: object): TextContent; /** * @param {string} name - DOM node name. (lower case) * @returns {boolean} true if the DOM node should have a corresponding text * node. */ static shouldBuildText(name: string): boolean; }