{"id":37641021,"url":"https://github.com/anotherbyte-net/leaf-focus","last_synced_at":"2026-01-16T11:17:32.538Z","repository":{"id":61950308,"uuid":"529811557","full_name":"anotherbyte-net/leaf-focus","owner":"anotherbyte-net","description":"Extract structured text from pdf files.","archived":false,"fork":false,"pushed_at":"2025-01-20T00:46:12.000Z","size":2720,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-28T10:19:34.591Z","etag":null,"topics":["data-science","machine-learning","parser","pdf","utility"],"latest_commit_sha":null,"homepage":"https://anotherbyte-net.github.io/leaf-focus/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anotherbyte-net.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-28T09:03:20.000Z","updated_at":"2024-11-17T13:11:05.000Z","dependencies_parsed_at":"2024-11-17T13:18:03.655Z","dependency_job_id":"8a28a9d8-5fdf-493e-a469-f7e42dacd1e8","html_url":"https://github.com/anotherbyte-net/leaf-focus","commit_stats":{"total_commits":52,"total_committers":2,"mean_commits":26.0,"dds":"0.40384615384615385","last_synced_commit":"6ec5144cc08323d5e54e04f04c28cd061cf58a0b"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/anotherbyte-net/leaf-focus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anotherbyte-net%2Fleaf-focus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anotherbyte-net%2Fleaf-focus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anotherbyte-net%2Fleaf-focus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anotherbyte-net%2Fleaf-focus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anotherbyte-net","download_url":"https://codeload.github.com/anotherbyte-net/leaf-focus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anotherbyte-net%2Fleaf-focus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["data-science","machine-learning","parser","pdf","utility"],"created_at":"2026-01-16T11:17:32.484Z","updated_at":"2026-01-16T11:17:32.529Z","avatar_url":"https://github.com/anotherbyte-net.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# leaf-focus\n\nExtract structured text from pdf files.\n\n## Install\n\nInstall from PyPI using pip:\n\n```bash\npip install leaf-focus\n```\n\n[![PyPI](https://img.shields.io/pypi/v/leaf-focus)](https://pypi.org/project/leaf-focus/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/leaf-focus)\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/anotherbyte-net/leaf-focus/test-package.yml?branch=main)](https://github.com/anotherbyte-net/leaf-focus/actions)\n\nDownload the [Xpdf command line tools](https://www.xpdfreader.com/download.html) and extract the executable files.\n\nProvide the directory containing the executable files as `--exe-dir`.\n\n\n## Usage\n\n```text\nusage: leaf-focus [-h] [--version] --exe-dir EXE_DIR [--page-images] [--ocr]\n                  [--first FIRST] [--last LAST]\n                  [--log-level {debug,info,warning,error,critical}]\n                  input_pdf output_dir\n\nExtract structured text from a pdf file.\n\npositional arguments:\n  input_pdf             path to the pdf file to read\n  output_dir            path to the directory to save the extracted text files\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --version             show program's version number and exit\n  --exe-dir EXE_DIR     path to the directory containing xpdf executable files\n  --page-images         save each page of the pdf as a separate image\n  --ocr                 run optical character recognition on each page of the\n                        pdf\n  --first FIRST         the first pdf page to process\n  --last LAST           the last pdf page to process\n  --log-level {debug,info,warning,error,critical}\n                        the log level: debug, info, warning, error, critical\n```\n\n### Examples\n\n```bash\n# Extract the pdf information and embedded text.\nleaf-focus --exe-dir [path-to-xpdf-exe-dir] file.pdf file-pages\n\n# Extract the pdf information, embedded text, an image of each page, and Optical Character Recognition results of each page.\nleaf-focus --exe-dir [path-to-xpdf-exe-dir] file.pdf file-pages --ocr\n```\n\n## Dependencies\n\n- [xpdf](https://www.xpdfreader.com/download.html)\n- [keras-ocr](https://github.com/faustomorales/keras-ocr)\n- [Tensorflow](https://www.tensorflow.org) (can optionally be run more efficiently [using one or more GPUs](https://www.tensorflow.org/install/pip#hardware_requirements))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanotherbyte-net%2Fleaf-focus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanotherbyte-net%2Fleaf-focus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanotherbyte-net%2Fleaf-focus/lists"}