# pdf-img-exports

> exports images from a pdf file to disk via CLI

Latest version **1.0.0** (published 2023-07-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install pdf-img-exports
pnpm add pdf-img-exports
yarn add pdf-img-exports
bun add pdf-img-exports
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-07-18 |
| First published | 2023-07-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 (+7 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rizvi Ahmed |
| Maintainers | rizvi1316 |
| Keywords | pdf, image, extract, export, cli, png, fonts, text |

## Links

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

## Dependencies (4)

- [sharp](https://npm.io/package/sharp.md) ^0.29.3
- [fontforge](https://npm.io/package/fontforge.md) ^0.0.4
- [pdfjs-dist](https://npm.io/package/pdfjs-dist.md) ^2.12.313
- [font-converter](https://npm.io/package/font-converter.md) ^1.1.1

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

- 1.0.0 (latest) — 2023-07-18

## README

# PDF Export Images
Exports images in their native resolution from a PDF file to disk.

## Use via CLI
```
Usage: npx pdf-export-images <file> [dir]

Arguments:
  file        path to PDF file
  dir         image destination directory (default: ".")
```
You can also install the package globally via `npm i -g pdf-export-images` to run the command without `npx`

## Programatic use
install
```sh
npm i pdf-export-images
```

`script.js`
```js
import { exportImages } from 'pdf-export-images'
exportImages('file.pdf', 'output/dir')
  .then(images => console.log('Exported', images.length, 'images'))
  .catch(console.error)
```

See: [cli.js](https://github.com/mablay/pdf-export-images/blob/main/cli.js#L23) for progress details during export.

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