fix: 修復 pdfOcr.ts 未使用變數的 eslint 錯誤

This commit is contained in:
Your Name 2026-01-23 16:31:57 +08:00
parent a06df23b1d
commit a1761b7da5

View file

@ -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<string> {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
// pdftotext -layout <input.pdf> -
// -layout: 保持排版
// -: 輸出到 stdout