Gantt export to PDF: landscape

Hello,
I tried to export gantt into pdf by online service:

<input value="Export to PDF" type="button" onclick="gantt.exportToPDF({header:'Project: #{viewProject.name}'})" style='margin:20px;' />

But generated PDF file is in portrait orientation.

Is there any way to define landscape orientation, or output format (e.g. A3 or A2)?

Thank you
Jiri

It seems it’s impossible to perform it with current export api.

Hello,
The dev team added a way to specify the page orientation when you export the data. To use that feature, you need to add the additional_settings parameter. You can manually specify the sizes in the width and height parameters or use the format and landscape parameters:
https://docs.dhtmlx.com/gantt/api__gantt_exporttopdf.html
Here is an example:
http://snippet.dhtmlx.com/5/fb46146a0