Methods


let options = { 
    dpi: 300, // Dots Per Inch - by default 300
    type: 'mm', // type of measurement 'mm' | 'in' | 'pt' | 'px'
    width: 0, // custom width
    height: 0 // custom height
}

type isoCode = string | null // if you want to make the manual resolution this parameter will be pass null

let data = PaperSizes(isoCode, options)


// convert the width measurement to Millimeters, Inches, Points, Pixels
data.widthToMillimeters() 
data.widthToInches()
data.widthToPoints()
data.widthToPixels()


// convert the height measurement to Millimeters, Inches, Points, Pixels
data.heightToMillimeters()
data.heightToInches()
data.heightToPoints()
data.heightToPixels()