# pdfinfo

> simple api for reading pdf meta info via xpdf's pdfinfo(1)

Latest version **0.0.3** (published 2014-05-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install pdfinfo
pnpm add pdfinfo
yarn add pdfinfo
bun add pdfinfo
```

## 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.0.3 |
| Published | 2014-05-12 |
| First published | 2013-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Erin Carter |
| Maintainers | ecarter |
| Keywords | pdf, xpdf, pdfinfo, meta, postscript |

## Links

- npm: https://www.npmjs.com/package/pdfinfo
- Repository: https://github.com/ecarter/node-pdfinfo
- Issues: https://github.com/ecarter/node-pdfinfo/issues
- npm.io page: https://npm.io/package/pdfinfo

## 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.0.3 (latest) — 2014-05-12
- 0.0.2 — 2013-01-24

## README

# node-pdfinfo

A simple api for reading pdf meta info via [xpdf's](http://www.foolabs.com/xpdf) `pdfinfo(1)`.

## Requires

* [Node.js](http://nodejs.org)
* [npm](http://npmjs.org) _node package manager_
* [xpdf](http://www.foolabs.com/xpdf) / `pdfinfo(1)`

## Install

    $ git clone https://github.com/ecarter/node-pdfinfo.git
    $ cd node-pdfinfo
    $ npm install

## Example

    var PDF = require('pdfinfo');

    var pdf = PDF('test/pdf/basic.pdf');

    pdf.info(function(err, meta){
      if (err) throw err;
      console.log('pdf info', meta)
    })

You can also pass a readable stream into the first argument instead of a file.

## License

MIT

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