refactor: remove mac ocr

This commit is contained in:
kangfenmao
2025-07-31 20:54:56 +08:00
parent c214a6e56e
commit 1efefad3ee
40 changed files with 145 additions and 1014 deletions
@@ -39,7 +39,7 @@ export default class Doc2xPreprocessProvider extends BasePreprocessProvider {
private async validateFile(filePath: string): Promise<void> {
const pdfBuffer = await fs.promises.readFile(filePath)
const doc = await this.readPdf(new Uint8Array(pdfBuffer))
const doc = await this.readPdf(pdfBuffer)
// 文件页数小于1000页
if (doc.numPages >= 1000) {