1.0.3 • Published 5 years ago

images-pdf v1.0.3

Weekly downloads
151
License
MIT
Repository
github
Last release
5 years ago

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');