{"id":24964536,"url":"https://github.com/fasatrix/pdf-to-text","last_synced_at":"2025-04-10T23:42:19.926Z","repository":{"id":44144150,"uuid":"437372029","full_name":"fasatrix/pdf-to-text","owner":"fasatrix","description":"A PDF to Text Extractor","archived":false,"fork":false,"pushed_at":"2024-06-17T15:38:22.000Z","size":1239,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T23:42:12.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/fasatrix.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-11T19:34:45.000Z","updated_at":"2024-05-03T17:43:26.000Z","dependencies_parsed_at":"2024-05-06T14:05:31.234Z","dependency_job_id":null,"html_url":"https://github.com/fasatrix/pdf-to-text","commit_stats":{"total_commits":58,"total_committers":2,"mean_commits":29.0,"dds":0.4655172413793104,"last_synced_commit":"321b2110b540e835131175f8521fdb89685a8676"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasatrix%2Fpdf-to-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasatrix%2Fpdf-to-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasatrix%2Fpdf-to-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasatrix%2Fpdf-to-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fasatrix","download_url":"https://codeload.github.com/fasatrix/pdf-to-text/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317726,"owners_count":21083527,"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":[],"created_at":"2025-02-03T10:16:33.010Z","updated_at":"2025-04-10T23:42:19.892Z","avatar_url":"https://github.com/fasatrix.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF-TO-TEXT\nA pdf to text wrapper to extract text from a pdf. It works with searchable and non-searchable(images) PDFs\n\n![PDF CI](https://github.com/fasatrix/pdf-to-text/actions/workflows/pdfToText.yaml/badge.svg)\n\n### Installation\n`npm install text-from-pdf`\n\n### Mac Users\n`brew install poppler`\n\n### Linux Users\n`sudo apt-get update \u0026\u0026 sudo apt-get install poppler-utils`\n\n### Windows Users\n`No installation required`\n\n### Usage\n1) Standard Input PDF with horizontally aligned text:      \n      ```js\n       const text = await pdfToText('\u003cPATH_TO_PDF_FILE/fileName.pdf\u003e');\n       console.log(text)\n     ```\n2)  Input PDF's with vertically aligned text:\n       ```js\n        const options = {\n          rotationDegree: -90,\n        };\n        $ const text = await pdfToText('\u003cPATH_TO_PDF_FILE/fileName.pdf\u003e', options);\n        $ console.log(text)\n       ```\n3)  Text from first and second page:\n       ```js  \n        const options = {\n           firstPageToConvert: 1,\n           lastPageToConvert: 2,\n        };\n        $ const text = await pdfToText('\u003cPATH_TO_PDF_FILE/fileName.pdf\u003e', options);\n        $ console.log(text)\n       ```\n4)  Text from third to fifth page:\n       ```js  \n        const options = {\n           firstPageToConvert: 3,\n           lastPageToConvert: 5,\n        };\n        $ const text = await pdfToText('\u003cPATH_TO_PDF_FILE/fileName.pdf\u003e', options);\n        $ console.log(text)\n       ```\n4)  Enable Progressbar logging:\n       ```js  \n        const options = {\n           firstPageToConvert: 1,\n           lastPageToConvert: 1,\n           enableProgressBarLogging: true\n        };\n        $ const text = await pdfToText('\u003cPATH_TO_PDF_FILE/fileName.pdf\u003e', options);\n        $ console.log(text)\n       ```    \n\n## Features request\nFork, add your changes and create a pull request \n\n       \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasatrix%2Fpdf-to-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffasatrix%2Fpdf-to-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasatrix%2Fpdf-to-text/lists"}