%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/workflow/node_modules/html-pdf/lib/
Upload File :
Create Path :
Current File : /home/opti/workflow/node_modules/html-pdf/lib/index.js

var PDF = require('./pdf')

module.exports = {
  create: function createPdf (html, options, callback) {
    if (arguments.length === 1) {
      return new PDF(html)
    }

    if (arguments.length === 2 && typeof options !== 'function') {
      return new PDF(html, options)
    }

    if (arguments.length === 2) {
      callback = options
      options = {}
    }

    try {
      var pdf = new PDF(html, options)
    } catch (err) {
      return callback(err)
    }

    pdf.exec(callback)
  }
}

Zerion Mini Shell 1.0