0

I know in node we can do something set size: [width,height] like this. But while I replace this in python options = {'page-size':'A4'} with options = {'page-size':[width,height]} I get an error.

I want to set a width of 60mm for POS

  • Try this: options= { 'page-height': '297mm', 'page-width': '210mm' } instead of 'page-size' for A4 or 'page-width': '60mm' for your requirement. – Humbalan Feb 01 '21 at 18:49

1 Answers1

3

as said here and here, the correct syntax is:

options = {
    'page-height': 'yourHeight',
    'page-width': 'yourWidth',
}
delouisiano
  • 111
  • 2
  • 13