fix: 修復 pdfOcr.ts 未使用變數的 eslint 錯誤
This commit is contained in:
parent
a06df23b1d
commit
a1761b7da5
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import { execFile as execFileOriginal } from "node:child_process";
|
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 { join, dirname, basename } from "node:path";
|
||||||
import type { ExecFileFn } from "../converters/types";
|
import type { ExecFileFn } from "../converters/types";
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ function extractTextFromPdf(
|
||||||
pdfPath: string,
|
pdfPath: string,
|
||||||
execFile: ExecFileFn = execFileOriginal,
|
execFile: ExecFileFn = execFileOriginal,
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve) => {
|
||||||
// pdftotext -layout <input.pdf> -
|
// pdftotext -layout <input.pdf> -
|
||||||
// -layout: 保持排版
|
// -layout: 保持排版
|
||||||
// -: 輸出到 stdout
|
// -: 輸出到 stdout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue