node package manager


Very simple cli tool to convert multiple images to a pdf


Helps make the generation of a PDF of multiple images easier

$ npm install [-g] image2pdf

If installed locally:

var imager = require('image2pdf')

If installed globally:

    -h, --help               output usage information
    -V, --version            output the version number
    -v, --verbose            Increase verbosity
    -s, --silly              Increase verbosity even more (takes precedence over verbose)
    -d, --dir <dir>          The directory from which to read the images
    -o, --output <file>      The output pdf
    -q, --quiet              Only log errors (takes precendence over silly and verbose)
    -t, --use-title <title>  Specify the document title
    -d, --no-date            Do not print date created (takes precedence over -D, --date)
    -n, --name <name>        Specify created by

node.js >= v0.11.3 phantomjs --harmony-generators flag

Builds the title HTML

Reads the given opts.dir

Generates the HTML head

Generates the actual HTML document

Takes the given input and generates a PDF to output

Takes the given html string and writes it as a PDF to fp