# pdfmeta

> A simple library that interprets PDF info built entirely with Javascript

Latest version **0.1.1** (published 2016-01-12) · MIT license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2016-01-12 |
| First published | 2016-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steven Lu |
| Maintainers | sjlu |
| Keywords | pdf, meta, info |

## Links

- npm: https://www.npmjs.com/package/pdfmeta
- Repository: https://github.com/sjlu/pdfmeta
- Homepage: https://github.com/sjlu/pdfmeta#readme
- Issues: https://github.com/sjlu/pdfinfo/pdfmeta
- npm.io page: https://npm.io/package/pdfmeta

## Dependencies (3)

- [bluebird](https://npm.io/package/bluebird.md) ^3.1.1
- [pdfjs-dist](https://npm.io/package/pdfjs-dist.md) ^1.3.163
- [node-ensure](https://npm.io/package/node-ensure.md) 0.0.0

## 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.1.1 (latest) — 2016-01-12
- 0.1.0 — 2016-01-12

## README

# pdfmeta

[![Circle CI](https://circleci.com/gh/sjlu/pdfmeta.svg?style=svg)](https://circleci.com/gh/sjlu/pdfmeta)
[![npm version](https://badge.fury.io/js/pdfmeta.svg)](https://badge.fury.io/js/pdfmeta)

Just returns meta information about a PDF using [pdfjs](https://mozilla.github.io/pdf.js/).

## Install

```
npm install pdfmeta --save
```

## Usage

```
var pdfmeta = require('pdfmeta')
pdfmeta.getInfo(filePath).then(function(data) {
    console.log(data)
})
```

### getInfo(<path, buffer>)

* getInfo can accept either a file path or a buffer

## Development

If you're interested in extending this library, clone this repository and run the appropriate tests.

```
git clone git@github.com:sjlu/pdfmeta.git
cd pdfmeta
npm test
```

## License

MIT

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