images-pdf
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Images to PDF

Convert images in folder to one PDF file.

Install

npm i images-pdf

or install to global

npm i g images-pdf

Usage

CLI

Usage: images-pdf [options]

Options:
  -V, --version        output the version number
  -f, --folder <path>  the folder that contains the images.
  -o, --output <path>  the PDF file to generate.
  -h, --help           output usage information

ex: images-pdf -f ./image/folder -o ./output/file.pdf

RequireJS

const ImagesToPDF = require('images-pdf');
new ImagesToPDF.ImagesToPDF().convertFolderToPDF('image/folder', 'output/file.pdf');

TypeScript

There are inbuilt type definition file. So you don't have to install any other package.

import { ImagesToPDF } from 'images-pdf';
new ImagesToPDF().convertFolderToPDF('image/folder', 'output/file.pdf');

Readme

Keywords

Package Sidebar

Install

npm i images-pdf

Weekly Downloads

93

Version

1.0.3

License

MIT

Unpacked Size

40.8 kB

Total Files

12

Last publish

Collaborators

  • wellwind