printSizes

possible page sizes for printing

array printSizes;

Example

webix.env.printSizes = [
    { id:"A1", width: 23.4, height: 33.1 },
    { id:"A3", preset:"A3", width: 11.7, height: 16.5 },
    { id: "letter", preset:"letter", width: 8.5, height:11 }
];

Details

Default value:

[
    { id:"a3", preset:"A3", width: 11.7, height: 16.5 },
    { id:"a4", preset:"A4", width: 8.27, height: 11.7 },
    { id: "letter", preset:"letter", width: 8.5, height:11 }
]

Each object in the array has the following settings:

  • id - (string) size ID
  • width -  (number) sheet width in inches
  • height - (number) sheet height in inches
  • preset - (string) optional, paper size name. If you use one of the most frequently used dimensions for personal printing (f.e., A5, A4, or letter), you can specify it to avoid problems with rounding.

You can add your own custom size to the printSizes array and then print it out:

webix.env.printSizes.push({ id:"a5", preset:"A5", width: 5.8, height: 8.3 }) 
webix.print($$("datatable1"), {paper:"a5"});
Back to top