How pylajaganmohan/document-comparator works
Document Comparator is a Streamlit application for comparing uploaded spreadsheets and PDFs. Users configure matching and normalization rules, run a comparison, review categorized results, and download a QA workbook. The README documents both comparison modes and optional OCR; sampled code confirms comparison helpers, saved-setup JSON I/O, report generation, and Streamlit UI logic, but excerpts omit much of the dispatch and file-reading code, so uncertain internal links are not shown.
Main entry points: app.py Streamlit Interface
Components 16
Application UI
- Streamlit Interface
app.py - File Uploads
app.py - Comparison Settings
app.py
Spreadsheet Comparison
- Record Matching
app.py - Match Key Groups
app.py - Value Comparison
app.py - Comparison Results
app.py - Excel And CSV Reading
app.py
PDF Comparison
- PDF Comparison
app.py - PDF Text And Metadata
app.py - Optional OCR
app.py
Setup And Reports
- Saved Setups
app.py - Setup JSON Files
app.py - QA Excel Report
app.py
Other components
- User
- Tesseract OCR
Connections 18
- User → Streamlit Interface: uses
- User → File Uploads: uploads files
- Streamlit Interface → Comparison Settings: configures
- Streamlit Interface → Saved Setups: manages setups
- Saved Setups → Setup JSON Files: reads / writes
- Streamlit Interface → Excel And CSV Reading: loads tabular files
- Excel And CSV Reading → Record Matching: provides data
- Streamlit Interface → Record Matching: runs comparison
- Record Matching → Match Key Groups: groups records
- Record Matching → Value Comparison: compares values
- Record Matching → Comparison Results: produces sections
- Streamlit Interface → PDF Comparison: runs comparison
- PDF Comparison → PDF Text And Metadata: compares content
- PDF Comparison → Optional OCR: may invoke
- Optional OCR → Tesseract OCR: uses
- Streamlit Interface → QA Excel Report: generates download
- Comparison Results → QA Excel Report: supplies results
- User → QA Excel Report: downloads