UNPKG

pdf-data-parser

Version:

Parse, search and stream PDF tabular data using Node.js with Mozilla's PDF.js library.

51 lines 1.15 kB
/** * Cell contains the data value (text) and bounding box coordinates. */ export default class Cell { /** * * @param {*} options parser options */ constructor(options?: any); text: string; x1: number; y1: number; x2: number; y2: number; fontHeight: number; fontWidth: number; lineHeightRatio: any; count: number; prevX: number; prevY: number; prevX2: number; prevY2: number; newlines: any; hasSpan: boolean; inserted: boolean; get lineHeight(): number; addItem(item: any): void; /** * check if the Y boundaries overlap. * * @param {*} cell * @returns 0 if same line, 1 if cell is above this, -1 if cell is below this */ isSameLine(cell: any): number; /** * check if the Y boundaries overlap. * * @param {*} cell * @returns */ isOutputLine(cell: any): boolean; isAdjacent(item: any): boolean; alignment(item: any): { top: boolean; bottom: boolean; left: boolean; right: boolean; adjacent: boolean; }; } //# sourceMappingURL=cell.d.ts.map