Skip to content

Tibex88/pdf-into-jpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published