Options
All
  • Public
  • Public/Protected
  • All
Menu

AWS wkhtmltopdf

ITER IDEA (2017)

A wkhtmltopdf wrapper for AWS Lambda: to convert a html to PDF in the AWS environment.

Installation

npm i aws-wkhtmltopdf

Usage

import { html2PDF } = from 'aws-wkhtmltopdf';
// ...
html2PDF(html, options);

Options are available in wkhtmltopdf's website.

Documentation

Documentation generated with TypeDoc: link.

Index

Functions

Functions

html2PDF

  • html2PDF(html: string, options: any, rootDir?: string): Promise<any>
  • A wkhtmltopdf wrapper for AWS Lambda.

    Parameters

    • html: string

      the html content

    • options: any

      available at wkhtmltopdf's website

    • Optional rootDir: string

      rootDir to use instead of the default one to locate wkhtmltopdf

    Returns Promise<any>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc