{"id":19439480,"url":"https://github.com/zavierferodova/py-cspdf","last_synced_at":"2025-06-19T05:06:48.118Z","repository":{"id":215933447,"uuid":"740072235","full_name":"zavierferodova/py-cspdf","owner":"zavierferodova","description":"Python Check Similarity PDF","archived":false,"fork":false,"pushed_at":"2024-09-23T11:16:22.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T05:06:39.057Z","etag":null,"topics":["pdf","pdf-diff","pdf-difference","pdf-similarity"],"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/zavierferodova.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-01-07T12:52:44.000Z","updated_at":"2024-09-23T10:55:37.000Z","dependencies_parsed_at":"2024-01-07T14:25:40.390Z","dependency_job_id":"5c5874f6-fbf5-487d-9e75-fcfab35cb8af","html_url":"https://github.com/zavierferodova/py-cspdf","commit_stats":null,"previous_names":["zavierferodova/cspdf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zavierferodova/py-cspdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavierferodova%2Fpy-cspdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavierferodova%2Fpy-cspdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavierferodova%2Fpy-cspdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavierferodova%2Fpy-cspdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zavierferodova","download_url":"https://codeload.github.com/zavierferodova/py-cspdf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavierferodova%2Fpy-cspdf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260690833,"owners_count":23047099,"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":["pdf","pdf-diff","pdf-difference","pdf-similarity"],"created_at":"2024-11-10T15:23:10.117Z","updated_at":"2025-06-19T05:06:43.090Z","avatar_url":"https://github.com/zavierferodova.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python-CSPDF\nPython Check Similarity PDF from active directory and store it to csv file. Project inspired by [diff-pdf](https://github.com/luke-cha/diff-pdf)\n\n### Installation\n```sh\npip install -r requirements.py\n```\n\n### Before Use !!\n1. Install all required depedencies.\n2. Copy `cspdf.py` into directory that contains pdf file to be compared.\n3. Run `cspdf.py` script.\n4. Note: This script just work on pdf files only, if you have word document please convert it into pdf first.\n\n### Usage\n1. Check similarity all pdf files on current active directory\n   ```sh\n   python cspdf.py -a -o comparison.csv\n   ```\n2. Check similarity one pdf file then compare with all pdf files on current active directory\n   ```sh\n   python cspdf.py -t a.pdf -o comparison.csv\n   ```\n3. Check similarity including image comparison (slow processing)\n   ```sh\n   # Just add -i or --image argument\n   python cspdf.py -i -t a.pdf -o comparison.csv\n   ```\n5. Get help\n   ```sh\n   python cspdf.py -h\n   ```\n\n### Similarity Check Methods \n1. Text similarity with Sequence Matcher\n2. Image similarity with Structural Similarity Index (SSIM)\n\n### Libraries\n1. [PDFMiner](https://pypi.org/project/pdfminer/)\n2. [PyMuPDF](https://pymupdf.readthedocs.io/)\n3. [OpenCV Python](https://opencv.org/get-started/)\n4. [Scikit Image](https://scikit-image.org)\n5. [TQDM Progress Bar](https://tqdm.github.io)\n\n### Credits\nMade by Zavier, enjoyy ✨\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzavierferodova%2Fpy-cspdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzavierferodova%2Fpy-cspdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzavierferodova%2Fpy-cspdf/lists"}