UNPKG

ppu-pdf

Version:

Easily extract text from digital PDF files with coordinate and font size included, and optionally group text by lines or render scanned pdf to canvas/png.

59 lines (58 loc) 1.65 kB
{ "name": "ppu-pdf", "version": "5.2.0", "description": "Easily extract text from digital PDF files with coordinate and font size included, and optionally group text by lines or render scanned pdf to canvas/png.", "keywords": [ "pdf-reader", "text-extraction", "pdf-rag", "bbox", "pdf", "pdf-typescript", "bun", "pdf-digital", "pdf-scan", "pdf-canvas", "pdfjs", "mupdf", "mupdfjs", "ocr" ], "author": "snowfluke", "license": "MIT", "type": "module", "main": "./index.js", "types": "./index.d.ts", "scripts": { "task": "bun scripts/task.ts", "build:test": "bun task build && bun test", "build:publish": "bun task build && bun task report-size && bun task publish", "lint": "eslint ./src", "lint:fix": "eslint ./src --fix", "compile:binary": "bun build --production ./src/index.ts --compile --outfile ./dist/ppu-pdf-bin", "compile:wasm": "cp ./node_modules/mupdf/dist/mupdf-wasm.wasm dist/", "compile": "bun compile:binary && bun compile:wasm", "run:binary": "./dist/ppu-pdf-bin" }, "devDependencies": { "@stylistic/eslint-plugin": "latest", "@types/bun": "latest", "@types/uglify-js": "latest", "eslint": "latest", "eslint-plugin-jsdoc": "latest", "mitata": "latest", "tsx": "latest", "typescript": "latest", "typescript-eslint": "latest", "uglify-js": ">=2.4.24" }, "repository": { "type": "git", "url": "https://github.com/PT-Perkasa-Pilar-Utama/ppu-pdf.git" }, "dependencies": { "@napi-rs/canvas": "^0.1.68", "mupdf": "^1.3.4", "pdfjs-dist": "4.9.155" } }