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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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