JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1076124
  • Score
    100M100P100Q175884F
  • License MIT

Pure javascript PDF parser.

Package Exports

  • pdf-parse

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pdf-parse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pdf-parse

Pure javascript module to extract text from PDF

logo

version downloads node status

Installation

npm install pdf-parse

Usage

Crawl

const PDF = require('pdf-parse');

PDF(buffer).then(function(textContent){
    //console.log(result.IsPassProtected);
    //console.log(result.IsSearchable);
    //console.log(result.NumberofPages);
    //console.log(result.PDFFormatVersion);
    //console.log(result.IsAcroFormPresent);
    //console.log(result.IsXFAPresent);
    //console.log(result.Creator);
    //console.log(result.Producer);
    //console.log(result.CreationDate);
    //console.log(result.TextContent);
});

## Test
`mocha` or `npm test`

> check test folder and QUICKSTART.js for extra usage.

## Contact me on WhatsApp
> For discussing about the package.

[![WhatsApp](https://img.shields.io/badge/style-WhatsApp-green.svg?style=flat&label=0%20506%20304%2024%2080)](https://api.whatsapp.com/send?phone=905063042480&text=Hi%2C%0ALet%27s%20talk%20about%20pdf-parse)