{"id":19832062,"url":"https://github.com/ail-project/ail-feeder-pdf","last_synced_at":"2026-06-16T14:31:56.445Z","repository":{"id":55061527,"uuid":"516341015","full_name":"ail-project/ail-feeder-pdf","owner":"ail-project","description":"PDF feeder for AIL","archived":false,"fork":false,"pushed_at":"2023-11-09T14:32:39.000Z","size":25,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-28T21:29:02.211Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ail-project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-07-21T11:20:52.000Z","updated_at":"2023-10-22T17:19:26.000Z","dependencies_parsed_at":"2023-11-09T15:44:44.392Z","dependency_job_id":null,"html_url":"https://github.com/ail-project/ail-feeder-pdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ail-project/ail-feeder-pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ail-project%2Fail-feeder-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ail-project%2Fail-feeder-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ail-project%2Fail-feeder-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ail-project%2Fail-feeder-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ail-project","download_url":"https://codeload.github.com/ail-project/ail-feeder-pdf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ail-project%2Fail-feeder-pdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34410780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-12T11:36:18.790Z","updated_at":"2026-06-16T14:31:56.426Z","avatar_url":"https://github.com/ail-project.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ail-feeder-pdf\nThis AIL feeder is a generic software to extract informations from PDF and feed AIL via AIL ReST API.\n\n## Requirements\n- [PyMuPDF](https://github.com/pymupdf/PyMuPDF)\n- [PyExifTool==0.4.13](https://github.com/smarnach/pyexiftool)\n- [pyail](https://github.com/ail-project/PyAIL)\n- ```sudo apt install libimage-exiftool-perl```\n\n## Usage\n~~~bash\ndacru@dacru:~/git/ail-feeder-pdf/bin$ python3 feeder-pdf.py --help  \nusage: feeder-pdf.py [-h] [-p PDF [PDF ...]] [-fp FILE_PDF] [-d] [-v]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -p PDF [PDF ...], --pdf PDF [PDF ...]\n                        list of pdf to analyse\n  -fp FILE_PDF, --file_pdf FILE_PDF\n                        file containing list of pdf\n  -d, --debug           debug mode\n  -v, --verbose         display more info\n~~~\n\n## JSON output format to AIL\n- `source` is the name of the AIL feeder module\n- `source-uuid` is the UUID of the feeder (unique per feeder)\n- `data` is text found in pdf\n- `meta` is the generic field where feeder can add the metadata collected\n\nUsing the AIL API, `data` will be compress in gzip format and encode with base64 procedure. Then a new field will created, `data-sha256` who will be the result of sha256 on data after treatment.\n\n## Output\n~~~json\n{'data': \"\",\n 'meta': {'pdf_feeder:ExifTool:ExifToolVersion': 12.43,\n          'pdf_feeder:File:Directory': '.',\n          ..., // Exif metadata\n\n          'pdf_feeder:image-0_0': {'Composite:ImageSize': '2078 1559',\n                                   'Composite:Megapixels': 3.239602,\n                                   'ExifTool:ExifToolVersion': 12.43,\n                                   'File:BitsPerSample': 8,\n                                   'File:ColorComponents': 3,\n                                   ... // Exif metadata of image\n                                  }\n         }\n}\n~~~\n\n`pdf_feeder:image-x_y`: \n\n- x: page of the document where the image is found.\n- y: numbers of images found in a specific page. start at 0.\n\n## License\nThis software is licensed under [GNU Affero General Public License version 3](http://www.gnu.org/licenses/agpl-3.0.html)\nCopyright (C) 2022-2023 CIRCL - Computer Incident Response Center Luxembourg\nCopyright (C) 2022-2023 David Cruciani\nCopyright (C) 2023 Aurelien Thirion\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fail-project%2Fail-feeder-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fail-project%2Fail-feeder-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fail-project%2Fail-feeder-pdf/lists"}