1.0.0 • Published 1 year ago

pdf-img-exports v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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.