pdf

Members

(inner, constant) DEFAULTS

Source:
Default Value:
  • {
      "FORMAT": "A4",
      "MARGIN": "0.5in",
      "LANDSCAPE": false,
      "SCALE": 1
    }

default values for PdfGetOptions

Methods

(async, static) get(url, optionsopt) → {Promise}

Source:

Asynchronously gets pdf from url using Puppeteer.

Parameters:
Name Type Attributes Description
url string

URL to load

options PdfGetOptions <optional>

PDF options

Returns:

a promise that returns the PDF

Type
Promise

Type Definitions

PdfGetOptions

Source:
Properties:
Name Type Attributes Description
format string <optional>
margin string <optional>
landscape string <optional>
scale string <optional>