images-pdf
v1.0.3
Published
The simple library to pack images of target folder into one PDF file
Downloads
99
Readme
Images to PDF
Convert images in folder to one PDF file.
Install
npm i images-pdfor install to global
npm i g images-pdfUsage
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 informationex: 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');