Hello,
This is because the online conversion form on our web site prints to Landscape whereas the API prints to Portrait. You can use the following code to print to Landscape from the API:
$client->setPageWidth("298mm");
$client->setPageHeight("210mm");
(This is a PHP code. If you use another programming language, just change the call syntax accordingly).