# pdf-text-parser

> Parses PDF's text in a nice and simple format

Latest version **0.2.1** (published 2018-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install pdf-text-parser
pnpm add pdf-text-parser
yarn add pdf-text-parser
bun add pdf-text-parser
```

Provides the command `pdf-text-parser`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2018-09-20 |
| First published | 2018-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 42.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Gonzalo Rizzo |
| Maintainers | grizzo |
| Keywords | pdf, pdfjs, parse, text extract, pdftotext |

## Links

- npm: https://www.npmjs.com/package/pdf-text-parser
- Repository: https://github.com/GonzaloRizzo/pdf-text-parser
- Homepage: https://github.com/GonzaloRizzo/pdf-text-parser#readme
- Issues: https://github.com/GonzaloRizzo/pdf-text-parser/issues
- npm.io page: https://npm.io/package/pdf-text-parser

## Dependencies (2)

- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.0
- [pdfjs-dist](https://npm.io/package/pdfjs-dist.md) ^2.0.489

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2018-09-20
- 0.2.0 — 2018-09-20
- 0.1.0 — 2018-09-14

## README

PDF Text Parser
===============

[![Version](https://img.shields.io/npm/v/pdf-text-parser.svg)](https://npmjs.org/package/pdf-text-parser)
[![Downloads](https://img.shields.io/npm/dt/pdf-text-parser.svg)](https://npmjs.org/package/pdf-text-parser)
[![Downloads/week](https://img.shields.io/npm/dw/pdf-text-parser.svg)](https://npmjs.org/package/pdf-text-parser)
[![License](https://img.shields.io/npm/l/pdf-text-parser.svg)](https://github.com/GonzaloRizzo/pdf-text-parser/blob/master/package.json)


Parses PDF's text in a nice and simple format

## Usage

```javascript
const fs = require('fs')
const pdfParser = require('pdf-text-parser');

const pdfData = fs.readFileSync('file.pdf');
pdfParser(pdfData)
  .then(parsedText => console.log(parsedText));
```

## CLI Usage
```sh-session
$ pdf-text-parser file.pdf
```

## Output Format
```json
{
   "metadata":{
      "Title":"Example Output"
   },
   "pages":[
      [
         "Fist Page"
      ],
      [
         "Second Page"
      ]
   ]
}
```

---
_Source: https://npm.io/package/pdf-text-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
