Pdftotext
A Ruby wrapper for the `pdftotext` command line library
Install / Use
/learn @benbalter/PdftotextREADME
Pdftotext
A Ruby wrapper for the pdftotext command line library
Installation
- You must first install Poppler. On OS X this can be done with
brew install popplerif you have Homebrew installed - Add
gem "pdftotext"to your project's Gemfile bundle install
Usage
text = Pdftotext.text('path-to.pdf')
=> "The text of the PDF"
pages = Pdftotext.pages('path-to.pdf')
pages.first.number
=> 1
pages.first.text
=> "The text of the PDF"
Both methods take an optional hash of command line arguments to pass to pdftotext. The only one by default being -layout.
Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.2kCommit, push, and open a PR
