Gantt export to PDF: landscape


I tried to export gantt into pdf by online service:

<input value="Export to PDF" type="button" onclick="gantt.exportToPDF({header:'Project: #{}'})" 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


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


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:
Here is an example: