0.3.3 • Published 5 months ago

@hckrnews/pdf2png v0.3.3

Weekly downloads
13
License
MIT
Repository
github
Last release
5 months ago

@hckrnews/ppt2pdf

Convert pdf to png or jpg.

If you want convert powerpoint files to png or jpg images, you can do it with this script.

Requirements

The package requires the following software to be installed:

  • imagemagick
  • ghostscript

Installation

npm install @hckrnews/pdf2png

Debian/Ubuntu:

sudo apt install imagemagick ghostscript

Example usage

import Converter from '@hckrnews/pdf2png';

const converter = Converter.create({
    file:   'test/OPW 733 Tienduizend redenen.pdf',
    output: 'output/'
});

const result = converter.convert();

Props

files: Array with the files.

output: Output folder.

customConverter: set a custom converter

Test the package.

npm test

This will run all the tests in the test folder with mocha.

If you only want to check the eslint rules, just run.

npm run lint
0.3.2

5 months ago

0.3.1

5 months ago

0.3.3

5 months ago

0.3.0

2 years ago

0.2.3

3 years ago

0.2.4

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago