chore: update package.json to include pdf-to-img dependency and add TODO comment in MacSysOcrProvider for future optimization

This commit is contained in:
suyao
2025-06-13 20:48:01 +08:00
parent 07c8dfa996
commit 2378587684
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -43,6 +43,7 @@ export default class MacSysOcrProvider extends BaseOcrProvider {
writeStream: fs.WriteStream
): Promise<void> {
await this.initMacOCR()
// TODO: 下个版本后面使用批处理,以及p-queue来优化
for (let i = 0; i < totalPages; i++) {
// Convert pages to buffers
const pageNum = i + 1