diff --git a/src/index.d.ts b/src/index.d.ts index f2cba0d..af1a600 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -27,6 +27,7 @@ declare namespace Tesseract { threshold(image: ImageLike, options?: Partial, jobId?: string): Promise detect(image: ImageLike, jobId?: string): Promise terminate(jobId?: string): Promise + getPDF(title?: string, textonly?: boolean, jobId?: string):Promise } interface WorkerOptions { @@ -69,6 +70,10 @@ declare namespace Tesseract { jobId: string data: Page } + interface GetPDFResult { + jobId: string + data: number[] + } interface DetectResult { jobId: string data: DetectData @@ -106,6 +111,7 @@ declare namespace Tesseract { SINGLE_CHAR = '10', SPARSE_TEXT = '11', SPARSE_TEXT_OSD = '12', + RAW_LINE = '13' } const enum imageType { ORIGINAL = 0,