Pdf-extractor is a wrapper around pdf.js to generate images, svgs, html files, text files and json files from a pdf on node.js. A DOM Canvas is used to render and export the graphical layer of the pdf. Canvas exports *.png as a default but can be extended to export to other file types like .jpg. Pdf objects are converted to svg using the SVGGraphics parser of pdf.js. Pdf text is converted to HTML. This can be used as a (transparent) layer over the image to enable text selection. Pdf text is extracted to a text file for different usages (e.g. indexing the text). This library is in it's most basic form a node.js wrapper for pdf.js. It has default renderers to generate a default output, but is easily extended to incorporate custom logic or to generate different output. It uses a node.js DOM and the node domstub from pdf.js do make pdf parsing available on node.js without a browser.

Features

  • Box View / Crocodoc
  • PDF.js on Node.js
  • Examples
  • Pdf text is extracted to a text file for different usages (e.g. indexing the text)
  • Pdf objects are converted to svg using the SVGGraphics parser of pdf.js.
  • This library is in it's most basic form a node.js wrapper for pdf.js

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow pdf-extractor

pdf-extractor Web Site

Other Useful Business Software
Auth0 for AI Agents now in GA Icon
Auth0 for AI Agents now in GA

Ready to implement AI with confidence (without sacrificing security)?

Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Start building today
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pdf-extractor!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript AI Image Generators, JavaScript Generative AI

Registered

2023-03-22