{"id":18728755,"url":"https://github.com/rubyonworld/pdftotext","last_synced_at":"2025-11-12T05:30:18.921Z","repository":{"id":174008030,"uuid":"540253457","full_name":"RubyOnWorld/pdftotext","owner":"RubyOnWorld","description":"You must first install Poppler. On OS X this can be done with brew install poppler if you have Homebrew installed","archived":false,"fork":false,"pushed_at":"2022-09-23T02:45:59.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T14:26:18.934Z","etag":null,"topics":["convert","os","pdf","ruby","text"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/RubyOnWorld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-09-23T02:45:44.000Z","updated_at":"2022-09-27T21:00:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"b842ac1c-ca21-4e2b-add1-58d4be485453","html_url":"https://github.com/RubyOnWorld/pdftotext","commit_stats":null,"previous_names":["rubyonworld/pdftotext"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fpdftotext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fpdftotext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fpdftotext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fpdftotext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubyOnWorld","download_url":"https://codeload.github.com/RubyOnWorld/pdftotext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239599039,"owners_count":19665911,"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":["convert","os","pdf","ruby","text"],"created_at":"2024-11-07T14:24:15.677Z","updated_at":"2025-11-12T05:30:18.262Z","avatar_url":"https://github.com/RubyOnWorld.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pdftotext\n\n*A Ruby wrapper for the `pdftotext` command line library*\n\n[![Build Status](https://travis-ci.org/benbalter/pdftotext.svg)](https://travis-ci.org/benbalter/pdftotext)\n\n## Installation\n\n1. You must first install [Poppler](http://poppler.freedesktop.org/). On OS X this can be done with `brew install poppler` if you have Homebrew installed\n2. Add `gem \"pdftotext\"` to your project's Gemfile\n3. `bundle install`\n\n## Usage\n\n```ruby\ntext = Pdftotext.text('path-to.pdf')\n=\u003e \"The text of the PDF\"\n\npages = Pdftotext.pages('path-to.pdf')\npages.first.number\n=\u003e 1\npages.first.text\n=\u003e \"The text of the PDF\"\n```\n\nBoth methods take an optional hash of command line arguments to pass to `pdftotext`. The only one by default being `-layout`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fpdftotext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyonworld%2Fpdftotext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fpdftotext/lists"}