# pdf-text2

> Extract an array of text chunks from a pdf and include additional metadata.

Latest version **2.0.4** (published 2020-05-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install pdf-text2
pnpm add pdf-text2
yarn add pdf-text2
bun add pdf-text2
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2020-05-25 |
| First published | 2020-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12 |
| Dependencies | 3 |
| Unpacked size | 17.2 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brian M. Carlson |
| Maintainers | dsandor |
| Keywords | pdf, text |

## Links

- npm: https://www.npmjs.com/package/pdf-text2
- Repository: https://github.com/dsandor/node-pdf-text
- Issues: https://github.com/dsandor/node-pdf-text/issues
- npm.io page: https://npm.io/package/pdf-text2

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ~2.3.0
- [pdf3json](https://npm.io/package/pdf3json.md) 0.2.0
- [@types/lodash](https://npm.io/package/@types/lodash.md) ^4.14.152

## 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

- 2.0.4 (latest) — 2020-05-25
- 2.0.3 — 2020-05-25
- 2.0.2 — 2020-05-25
- 2.0.1 — 2020-05-25
- 2.0.0 — 2020-05-24

## README

# pdf-text2

Refactor of [pdf-text](https://github.com/modesty/pdf2json).


Extracts text from a PDF and returns an array of pages that each contains an array of text lines extracted from that page.

## install

```sh
$ yarn add pdf-text2
```

## use

```js
const PDFText = require('pdf-text2');

var pathToPdf = __dirname + "/info.pdf"

const pdfText = new PDFText(pathToPdf);

const pages = pdfText.parse();

```

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