Options
All
  • Public
  • Public/Protected
  • All
Menu

Module print

Index

Variables

DefaultDPI

DefaultDPI: number

Constants

Functions

component

  • component(componentElement: HTMLElement, options: Options, callback: function): void

getHashIdFromRequest

  • getHashIdFromRequest(options: Options, printType: PrintType, xpathOrURL: string | string[]): string
  • Parameters

    Returns string

getOptionsOrDefaults

getViewportSizeFromPage

  • getViewportSizeFromPage(pageSize: PageSize, pageOrientation: PageOrientation, dpi?: number, pageMargin?: number): object
  • Parameters

    • pageSize: PageSize
    • pageOrientation: PageOrientation
    • Default value dpi: number = 96
    • Default value pageMargin: number = 0.5

    Returns object

    • height: number
    • width: number

html

  • html(html: string, options: Options, callback: function): void

page

  • page(options: Options, callback: function, excludedXPaths?: string[]): void

url

  • url(urls: string | string[], options: Options, callback: function): void

Object literals

PageSizeDimensions

PageSizeDimensions: object

A0

A0: object

height

height: number

width

width: number

A1

A1: object

height

height: number

width

width: number

A2

A2: object

height

height: number

width

width: number

A3

A3: object

height

height: number

width

width: number

A4

A4: object

height

height: number

width

width: number

A5

A5: object

height

height: number

width

width: number

B0

B0: object

height

height: number

width

width: number

B1

B1: object

height

height: number

width

width: number

B2

B2: object

height

height: number

width

width: number

B3

B3: object

height

height: number

width

width: number

B4

B4: object

height

height: number

width

width: number

B5

B5: object

height

height: number

width

width: number

Crown

Crown: object

height

height: number

width

width: number

Demy

Demy: object

height

height: number

width

width: number

DoubleDemy

DoubleDemy: object

height

height: number

width

width: number

Elephant

Elephant: object

height

height: number

width

width: number

Executive

Executive: object

height

height: number

width

width: number

Folio

Folio: object

height

height: number

width

width: number

Foolscap

Foolscap: object

height

height: number

width

width: number

GovernmentLetter

GovernmentLetter: object

height

height: number

width

width: number

LargePost

LargePost: object

height

height: number

width

width: number

Ledger

Ledger: object

height

height: number

width

width: number

Legal

Legal: object

height

height: number

width

width: number

Letter

Letter: object

height

height: number

width

width: number

Medium

Medium: object

height

height: number

width

width: number

Post

Post: object

height

height: number

width

width: number

QuadDemy

QuadDemy: object

height

height: number

width

width: number

Quarto

Quarto: object

height

height: number

width

width: number

RA0

RA0: object

height

height: number

width

width: number

RA1

RA1: object

height

height: number

width

width: number

RA2

RA2: object

height

height: number

width

width: number

RA3

RA3: object

height

height: number

width

width: number

RA4

RA4: object

height

height: number

width

width: number

RA5

RA5: object

height

height: number

width

width: number

Royal

Royal: object

height

height: number

width

width: number

STMT

STMT: object

height

height: number

width

width: number

Size10x14

Size10x14: object

height

height: number

width

width: number

Statement

Statement: object

height

height: number

width

width: number

Tabloid

Tabloid: object

height

height: number

width

width: number

Undefined

Undefined: object

height

height: number

width

width: number

Generated using TypeDoc