{"id":23067519,"url":"https://github.com/sanafagal/pdf-processor-for-eps-files","last_synced_at":"2025-04-03T09:15:03.376Z","repository":{"id":266739640,"uuid":"898726130","full_name":"SanAfaGal/pdf-processor-for-eps-files","owner":"SanAfaGal","description":"A tool designed to process and rename PDF files based on specific EPS configurations, utilizing exact and fuzzy matching techniques to identify file types efficiently.","archived":false,"fork":false,"pushed_at":"2025-01-03T19:42:59.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T09:15:00.102Z","etag":null,"topics":["eps","file-rename","fuzzy-matching","ocrmypdf","pdf-processing","pypdf2","text-extraction"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SanAfaGal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-04T23:15:46.000Z","updated_at":"2025-01-03T19:43:02.000Z","dependencies_parsed_at":"2024-12-16T05:17:24.085Z","dependency_job_id":"8a702f1f-cc44-4585-b6da-c1fae1c171d3","html_url":"https://github.com/SanAfaGal/pdf-processor-for-eps-files","commit_stats":null,"previous_names":["sanafagal/pdf_insight","sanafagal/pdf-processor-for-eps-files"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanAfaGal%2Fpdf-processor-for-eps-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanAfaGal%2Fpdf-processor-for-eps-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanAfaGal%2Fpdf-processor-for-eps-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanAfaGal%2Fpdf-processor-for-eps-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SanAfaGal","download_url":"https://codeload.github.com/SanAfaGal/pdf-processor-for-eps-files/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246970322,"owners_count":20862509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eps","file-rename","fuzzy-matching","ocrmypdf","pdf-processing","pypdf2","text-extraction"],"created_at":"2024-12-16T05:17:15.127Z","updated_at":"2025-04-03T09:15:03.354Z","avatar_url":"https://github.com/SanAfaGal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF Processor for EPS Files\n\nA Python-based application designed to process and rename PDF files based on EPS-specific configurations. The tool leverages exact and fuzzy matching techniques to identify file types, apply OCR for text extraction, and supports splitting and combining PDFs.\n\n## Features 🚀\n- **Automatic PDF Renaming**: Renames files using EPS-specific naming conventions.\n- **Text Extraction**: Extracts text from PDFs using PyPDF2 and OCR.\n- **File Type Identification**: Uses exact and fuzzy matching for robust keyword detection.\n- **PDF Splitting and Combining**: Handles multi-page PDFs by splitting and recombining files as needed.\n\n## Technologies 🛠️\n- **Python 3.x**\n- **PyPDF2**: For PDF text extraction and manipulation.\n- **ocrmypdf**: Adds OCR to non-searchable PDFs.\n- **rapidfuzz**: Implements fuzzy matching for text processing.\n- **logging**: For structured application logging.\n\n## Prerequisites 🔧\n\n### 1. Install Tesseract\nDownload and install Tesseract OCR from [UB-Mannheim's Tesseract repository](https://github.com/UB-Mannheim/tesseract/wiki).  \nAfter installation, add the following to your system's **Environment Variables** (PATH):\n```\nC:\\Program Files\\Tesseract-OCR\n```\n\n### 2. Install Ghostscript\nDownload and install Ghostscript from the [official Ghostscript website](https://ghostscript.com/releases/gsdnld.html).  \nAfter installation, add the `bin` directory to your system's **Environment Variables** (PATH):\n```\nC:\\Program Files\\gs\\gs10.04.0\\bin\n```\n\n### 3. Verify Installations\nRun the following commands in a terminal to verify installations:\n```bash\ntesseract --version\ngswin64c --version\n```\n\n## Installation 📦\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/your-username/your-repo.git\n   cd your-repo\n   ```\n\n2. **Set up a virtual environment** (optional but recommended):\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   ```\n\n3. **Install dependencies**:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Usage 📋\n\n### CLI Arguments\n- `eps_name`: The EPS name to process the files for (e.g., \"NUEVA EPS\").\n- `input_path`: Path to the folder or file to process.\n\n### Example Command\n```bash\npython main.py \"NUEVA EPS\" \"/path/to/input/folder\"\n```\n\n## EPS Configuration 🏥\nThe application supports multiple EPS configurations, such as:\n- **NUEVA EPS**\n- **SALUD TOTAL**\n\nEach configuration includes:\n- Keywords for file type identification.\n- Customizable naming conventions.\n\n## Logging 📄\nLogs are generated in the following files:\n- `info.log`: General process information.\n- `error.log`: Errors encountered during processing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanafagal%2Fpdf-processor-for-eps-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanafagal%2Fpdf-processor-for-eps-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanafagal%2Fpdf-processor-for-eps-files/lists"}