Is there a way set the paper size to ‘legal’?
Hello,
By default, the paper size of a PDF document is A4. If you set the autowidth property to true, the columns will be able to have any possible width that will define the width of a PDF page.
webix.toPDF($$("myDataTable"), {
autowidth:true
});
setting the orientation parameter which defines the PDF page orientation: portrait (default) or landscape
webix.toPDF($$("myDataTable"), {
orientation:"landscape"
});
Also, there are many other possible properties of the config object. You can look all them up in the corresponding documentation
Please, check the example: https://snippet.webix.com/sveotfvu
Thanks Nastja,
The documentation is what I was looking for.
Best Regards,
Johnny Harris