UNPKG

react-pdf-ner-annotator

Version:

A React component to annotate named entities directly onto a PDF.

8 lines (7 loc) 445 B
import { TextLayerItem, TextLayerType } from '../interfaces/textLayer'; export declare const buildTextMapFromTextLayer: (pdfTextLayer: Array<TextLayerItem>, type: TextLayerType, tokenizer?: RegExp) => Array<TextLayerItem>; export declare const getTextMetrics: (text: string) => { width: number; height: number; }; export declare const tokenizeText: (input: string, tokenizer: RegExp, needsTokenization: boolean) => Array<string>;