pdf-to-json-mgk
v1.0.1
Published
Extract both text and images from PDF files and return structured JSON in camelCase notation.
Maintainers
Readme
🧾 pdf-to-json-mgk
Convert any PDF into structured JSON — automatically extracts both text and images (like photo & signature) and returns a clean camelCase JSON output.
🚀 Features
✅ Extracts text and key-value pairs from PDFs
✅ Detects embedded images (like photo & signature)
✅ Outputs camelCase JSON keys
✅ Works in both Node.js and browser
✅ Supports multi-page PDFs
📦 Installation
npm install pdf-to-json-mgk
## USAGE
import { pdfToJson } from "pdf-to-json-mgk";
async function handleFileUpload(event) {
const file = event.target.files[0];
const json = await pdfToJson(file);
console.log(json);
}
<input type="file" accept="application/pdf" onChange={handleFileUpload} />