This is an archived forum post. The information may be outdated. Contact us if you have any questions.

landscape format

ccoolacaixa wrote on 2017-05-07:
How can I generate a pdf file in landscape format?
support wrote on 2017-05-12:
Hello,

You can change the PDF page orientation with the setPageWidth and setPageHeight API functions. A PHP example:
// A4 landscape
$client->setPageWidth("298mm");
$client->setPageHeight("210mm");

// A4 portrait
$client->setPageWidth("210mm");
$client->setPageHeight("298mm");
demo1webfirm wrote on 2017-06-14:
Thank you its really helpfull for me
deanna0288 wrote on 2017-08-16:
great