Skip to content

修 PDF API,加 doctor,CPU baseline · N3 followup with doctor and CPU baseline - #45

Merged
eric8810 merged 2 commits into
mainfrom
feat/n3-followup
Jul 26, 2026
Merged

修 PDF API,加 doctor,CPU baseline · N3 followup with doctor and CPU baseline#45
eric8810 merged 2 commits into
mainfrom
feat/n3-followup

Conversation

@eric8810

Copy link
Copy Markdown
Contributor

变更内容

基于 PR #43 合并后的 main 分支,补充以下内容:

  1. PDF API 修复 - pdfium-native API 已在 main 中修复,此 PR 补充后续改动
  2. light-ocr doctor --json 命令 - 收集系统信息(隐私安全,hostname SHA-256 哈希)
  3. CPU 性能 baseline - 基准测试脚本( ools/cpu-benchmark.mjs)
  4. 版本更新 - 0.4.0 → 0.5.0(N3 文档入口)
  5. 测试补充 - 7 个 document CLI 测试 + 6 个 document 集成测试

测试结果

测试套件 测试数 通过
CLI tests (含 document + doctor) 67 67
Document integration 6 6
Facade tests 5 5
Runtime tests 2 2
总计 80 80

验证结果

场景 状态
PDF 基本渲染
PDF → OCR 端到端
多页 PDF
页码范围
maxPages 限制
maxFileBytes 限制
损坏 PDF 错误处理
CLI document 命令

关联

  • D108: PDF renderer selection
  • N3: 图片与 PDF 文档入口
  • Perf-0: 硬件覆盖审计
  • Perf-1: CPU 性能 baseline

@eric8810
eric8810 merged commit fb1d71b into main Jul 26, 2026
2 checks passed
birhantprkc pushed a commit to birhantprkc/light-ocr that referenced this pull request Jul 29, 2026
修 PDF API,加 doctor,CPU baseline · N3 followup with doctor and CPU baseline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant