API Docs for: 1.0.0
Show:

PaperSize Class

Represents the size of a piece of paper.

Constructor

PaperSize

(
  • width
  • height
)

Parameters:

  • width Number

    The width of the paper, in hundredths of an inch.

  • height Number

    The height of the paper, in hundredths of an inch.

Item Index

Methods

Properties

Methods

createA4

() PaperSize static

Creates the size corresponding to A4 paper.

Returns:

PaperSize:

A4 paper size.

createReceipt

() PaperSize static

Creates the size corresponding to receipt paper.

Returns:

PaperSize:

Receipt paper size.

Properties

height

Number

Gets Height in hundredths of an inch.

width

Number

Gets Width in hundredths of an inch.