{"id":30385314,"url":"https://github.com/funkatron/pdf_to_md","last_synced_at":"2025-08-21T02:13:50.260Z","repository":{"id":295254361,"uuid":"984226085","full_name":"funkatron/pdf_to_md","owner":"funkatron","description":"CLI tool to convert PDF files to Markdown with OCR capabilities","archived":false,"fork":false,"pushed_at":"2025-05-15T15:33:09.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T12:34:16.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/funkatron.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,"zenodo":null}},"created_at":"2025-05-15T15:32:53.000Z","updated_at":"2025-05-15T15:33:12.000Z","dependencies_parsed_at":"2025-05-24T14:18:57.653Z","dependency_job_id":"8b93efc1-be0b-4245-9b64-4b525791175b","html_url":"https://github.com/funkatron/pdf_to_md","commit_stats":null,"previous_names":["funkatron/pdf_to_md"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/funkatron/pdf_to_md","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkatron%2Fpdf_to_md","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkatron%2Fpdf_to_md/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkatron%2Fpdf_to_md/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkatron%2Fpdf_to_md/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funkatron","download_url":"https://codeload.github.com/funkatron/pdf_to_md/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkatron%2Fpdf_to_md/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271415496,"owners_count":24755639,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"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":"2025-08-21T02:13:48.308Z","updated_at":"2025-08-21T02:13:50.255Z","avatar_url":"https://github.com/funkatron.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF to Markdown\n\nA command-line tool to convert PDF files to Markdown, with OCR capabilities for image-based content.\n\n## Features\n\n- Converts searchable PDF text to Markdown\n- Uses OCR (Optical Character Recognition) for image-based PDF content\n- Simple page separation with Markdown headers\n- Configurable OCR resolution\n\n## Installation\n\n### Prerequisites\n\n- Python 3.6 or higher\n- Tesseract OCR (for OCR functionality)\n\n#### Installing Tesseract OCR\n\n**macOS (using Homebrew):**\n```bash\nbrew install tesseract\n```\n\n**Linux (Ubuntu/Debian):**\n```bash\nsudo apt-get install tesseract-ocr\n```\n\n**Windows:**\nDownload and install from [Tesseract GitHub page](https://github.com/UB-Mannheim/tesseract/wiki).\n\n### Installing pdf_to_md\n\n#### From PyPI (recommended)\n\n```bash\npip install pdf_to_md\n```\n\n#### From source\n\n```bash\ngit clone https://github.com/funkatron/pdf_to_md.git\ncd pdf_to_md\npip install -e .\n```\n\n## Usage\n\n```bash\npdf_to_md input.pdf [-o output.md] [--dpi 300]\n```\n\n### Options\n\n- `input.pdf`: Path to the PDF file to convert\n- `-o, --output`: Path to the output Markdown file (default: same name as input with .md extension)\n- `--dpi`: DPI for OCR rendering (default: 300)\n\n## Examples\n\nConvert a PDF file to Markdown:\n\n```bash\npdf_to_md document.pdf\n```\n\nSpecify an output file:\n\n```bash\npdf_to_md document.pdf -o output.md\n```\n\nUse higher resolution for OCR (may improve accuracy but slower):\n\n```bash\npdf_to_md document.pdf --dpi 600\n```\n\n### Programmatic Usage\n\nYou can also use pdf_to_md as a library in your Python code:\n\n```python\nfrom pathlib import Path\nfrom pdf_to_md.converter import convert\n\n# Convert a PDF file to Markdown\npdf_path = Path(\"document.pdf\")\nmd_path = Path(\"output.md\")\ndpi = 300\n\n# Perform the conversion\nconvert(pdf_path, md_path, dpi)\n```\n\nSee the [example script](https://github.com/funkatron/pdf_to_md/blob/main/examples/example.py) for a complete example.\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunkatron%2Fpdf_to_md","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunkatron%2Fpdf_to_md","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunkatron%2Fpdf_to_md/lists"}