Extract clean readable text from PDF files into agent-ready markdown. Multi-page, tables, headers. No external services.
Every agent needs to read PDFs. This does it cleanly.
const { PDFExtract } = require('./src/pdf-extract');
const pdf = new PDFExtract();
const text = await pdf.extract('document.pdf');
console.log(text);
const structured = await pdf.extractStructured('document.pdf');
console.log(structured.pages); // Array of page texts
console.log(structured.metadata); // Title, author, page count
console.log(structured.headings); // Detected headings
| Type | Support |
|---|---|
| ------ | --------- |
| Text PDFs | Full support |
| Scanned/Image PDFs | Basic (needs OCR) |
| Forms | Text fields extracted |
| Password-protected | Supported (provide password) |
This software is provided "AS IS", without warranty of any kind, express or implied.
USE AT YOUR OWN RISK.
the use or misuse of this software — including but not limited to financial loss,
data loss, security breaches, business interruption, or any indirect/consequential damages.
their use case, environment, and risk tolerance.
for any particular purpose.
this software after purchase.
By downloading, installing, or using this software, you acknowledge that you have read
this disclaimer and agree to use the software entirely at your own risk.
DATA DISCLAIMER: This software processes and stores data locally on your system.
The author(s) are not responsible for data loss, corruption, or unauthorized access
resulting from software bugs, system failures, or user error. Always maintain
independent backups of important data. This software does not transmit data externally
unless explicitly configured by the user.
| --- | --- |
| 🐛 Bug Reports | TheShadowyRose@proton.me |
| ☕ Ko-fi | ko-fi.com/theshadowrose |
| 🛒 Gumroad | shadowyrose.gumroad.com |
| @TheShadowyRose | |
| 🐙 GitHub | github.com/TheShadowRose |
| 🧠 PromptBase | promptbase.com/profile/shadowrose |
Built with OpenClaw — thank you for making this possible.
🛠️ Need something custom? Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. → Hire me on Fiverr
共 1 个版本