'Using pdfMake library i want to give my pdf a size of 6 x 4 cm

Hi I'm using pdfMake library and I'm struggling to give my pdf a size of 6x4 cm For example I have pageSize: { width: 595.28, height: 'auto' } what should i write inside of width and height to give me 6x4cm? some help??



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source