pdf-img-exports

1.0.0 • Public • Published

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

npm i pdf-export-images

script.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 for progress details during export.

Package Sidebar

Install

npm i pdf-img-exports

Weekly Downloads

3

Version

1.0.0

License

ISC

Unpacked Size

12 kB

Total Files

10

Last publish

Collaborators

  • rizvi1316