[PR #3204] [MERGED] OCR PDFs as fallback during upload #4231

Closed
opened 2026-02-22 18:35:24 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3204
Author: @timothycarambat
Created: 2/13/2025
Status: Merged
Merged: 2/14/2025
Merged by: @timothycarambat

Base: masterHead: ocr-parse-pdfs


📝 Commits (6)

📊 Changes

7 files changed (+350 additions, -7 deletions)

View changed files

📝 .github/workflows/dev-build.yaml (+1 -1)
📝 collector/package.json (+3 -1)
📝 collector/processSingleFile/convert/asPDF/index.js (+10 -2)
collector/utils/OCRLoader/CanvasFactory.js (+52 -0)
collector/utils/OCRLoader/index.js (+190 -0)
📝 collector/yarn.lock (+92 -2)
📝 server/storage/models/.gitignore (+2 -1)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #510
resolves #2626
resolves #2102
resolves #1629

What is in this change?

Note

This will only parse text content. It is not image understanding

  • Adds built-in OCR as fallback to PDFs that are scanned images and not digitized text files.

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/3204 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 2/13/2025 **Status:** ✅ Merged **Merged:** 2/14/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `ocr-parse-pdfs` --- ### 📝 Commits (6) - [`2f89bba`](https://github.com/Mintplex-Labs/anything-llm/commit/2f89bbae744c4986d226256cd4e7aaf6e2977d7d) OCR PDFs as fallback in spawn thread - [`c463710`](https://github.com/Mintplex-Labs/anything-llm/commit/c463710b0f2f7a55a715d37450662b794e325174) wip - [`64b3210`](https://github.com/Mintplex-Labs/anything-llm/commit/64b3210db235bb81d54159b096b119c757ed1fe4) build our own worker fanout and wrapper - [`3e616fe`](https://github.com/Mintplex-Labs/anything-llm/commit/3e616fe53f742a7365873a01f83ce3bba7e999d3) norm pkgs - [`db4208b`](https://github.com/Mintplex-Labs/anything-llm/commit/db4208ba0074d9c9bbdf9f7f7481afa9c690186b) bump dev - [`f64f294`](https://github.com/Mintplex-Labs/anything-llm/commit/f64f2944d5cccaaf572136a268b80834d6e71cd3) Merge branch 'master' into ocr-parse-pdfs ### 📊 Changes **7 files changed** (+350 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/dev-build.yaml` (+1 -1) 📝 `collector/package.json` (+3 -1) 📝 `collector/processSingleFile/convert/asPDF/index.js` (+10 -2) ➕ `collector/utils/OCRLoader/CanvasFactory.js` (+52 -0) ➕ `collector/utils/OCRLoader/index.js` (+190 -0) 📝 `collector/yarn.lock` (+92 -2) 📝 `server/storage/models/.gitignore` (+2 -1) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #510 resolves #2626 resolves #2102 resolves #1629 ### What is in this change? >[!NOTE] > This **will only parse text content**. It is **not image understanding** - Adds built-in OCR as fallback to PDFs that are scanned images and not digitized text files. <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:24 -05:00
yindo closed this issue 2026-02-22 18:35:24 -05:00
yindo changed title from [PR #3204] OCR PDFs as fallback during upload to [PR #3204] [MERGED] OCR PDFs as fallback during upload 2026-06-05 15:17:30 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4231