From a1761b7da58d19d5f7d917d217ac6a00cb5bc794 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 23 Jan 2026 16:31:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=BE=A9=20pdfOcr.ts=20?= =?UTF-8?q?=E6=9C=AA=E4=BD=BF=E7=94=A8=E8=AE=8A=E6=95=B8=E7=9A=84=20eslint?= =?UTF-8?q?=20=E9=8C=AF=E8=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/helpers/pdfOcr.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/pdfOcr.ts b/src/helpers/pdfOcr.ts index cc5eb03..f9e337c 100644 --- a/src/helpers/pdfOcr.ts +++ b/src/helpers/pdfOcr.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { existsSync, unlinkSync, readFileSync } from "node:fs"; +import { existsSync, unlinkSync } from "node:fs"; import { join, dirname, basename } from "node:path"; import type { ExecFileFn } from "../converters/types"; @@ -27,7 +27,7 @@ function extractTextFromPdf( pdfPath: string, execFile: ExecFileFn = execFileOriginal, ): Promise { - return new Promise((resolve, reject) => { + return new Promise((resolve) => { // pdftotext -layout - // -layout: 保持排版 // -: 輸出到 stdout