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??
As mentionned in pdfmake's documentation, all units are in pt.
You need to convert your page dimensions from millimeter to pt :
const pageDimensionsInPt = pageDimensionsInMm * 2,83465;