pdf-into-jpg

1.0.3 • Public • Published

PDF Into JPG

Exports images inTO JPG from a PDF file to disk.

Use via CLI

Usage: npx pdf-into-jpg <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-into-jpg to run the command without npx

Programatic use

install

npm i pdf-into-jpg

script.js

import { exportImages } from 'pdf-into-jpg'
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-into-jpg

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

4.42 kB

Total Files

5

Last publish

Collaborators

  • tibex