# oadf-pdf-converter

> A small utility tool to convert PDF files into a data structure which is used by OADF parsers

Latest version **0.1.0** (published 2017-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install oadf-pdf-converter
pnpm add oadf-pdf-converter
yarn add oadf-pdf-converter
bun add oadf-pdf-converter
```

## 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.0 |
| Published | 2017-02-17 |
| First published | 2017-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Christoph Kraemer |
| Maintainers | cevou |
| Keywords | oadf |

## Links

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

## Dependencies (1)

- [pdfjs-dist](https://npm.io/package/pdfjs-dist.md) ^1.7.297

## Recent versions

- 0.1.0 (latest) — 2017-02-17

## README

# OADF PDF Converter

A utility tools that converts PDF files into a format which is consumed 
by different OADF importers.

## Usage

```javascript
import converter from 'oadf-pdf-converter';
import fs from 'fs';

const filePath = '...';
const data = new Uint8Array(fs.readFileSync(filePath));
const pages = converter(data);
```

### Output format

The converter returns an array of pages which each contain an array of rows with
each text fragment wrapped in a element object. All elements are ordered from 
top left to bottom right.

```
[
 [ 
   [ Element, Element, ... ],
   [ ...another row ... ]
 ],
 [ ... another page ... ],
 [ ... another page ... ]
]
```

## License

MIT

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