feat: add OCR-based searchable PDF converter#368
Open
upasana-2006 wants to merge 1 commit into
Open
Conversation
|
@upasana-2006 is attempting to deploy a commit to the Durgeshwar's projects Team on Vercel. A member of the Team first needs to authorize it. |
Owner
|
@upasana-2006 update the requirements.txt else it is not working. |
Author
|
Updated
The latest commit on this PR branch includes these changes. Please re-check once the workflow/deployment is approved. |
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🔀 Pull Request
📌 Issue Reference
Closes #366
📝 Summary
This PR introduces a new OCR-Based Searchable PDF Converter feature that enables users to convert scanned or image-based PDF documents into searchable PDFs.
Many scanned PDFs contain only images and do not allow users to search, copy, highlight, or extract text. This feature leverages OCR (Optical Character Recognition) to recognize text from scanned PDF pages and generate a new searchable PDF while preserving the original document appearance.
Problem Solved
Changes Made
Backend
Added a new Flask blueprint:
backend/blueprints/searchable_pdf_ocr.pyImplemented OCR-based PDF processing pipeline.
Added image preprocessing support using OpenCV:
Added support for configurable OCR languages.
Added validation for uploaded PDF files.
Added generation of downloadable searchable PDF outputs.
Registered the new blueprint in the Flask application.
Dependencies
Added:
pytesseractopencv-python-headlessFrontend
Added a dedicated page:
frontend/src/pages/PdfSearchableOCR.jsxAdded OCR settings interface:
Added route registration in
App.jsx.Added tool listing entry in
toolsData.jsx.Benefits
📸 Screenshots (if applicable)
New Tool Interface
(Screenshots will be added after review/testing.)
✅ Checklist
🔗 Related Issues / PRs
🏅 Open Source Program Participation
Program Name: GSSoC 2026
💬 Additional Notes