Guys,
I am trying to force a page to show in portrait instead of landscape however it doesn't appear to be working. Heres the code I am using:
$client = new Pdfcrowd('*USERNAME*', '*API_KEY*');
$client->setPageWidth('8.5in');
$client->setPageHeight('11in');
try {
header('Content-type: application/pdf');
//header('Content-Disposition: attachment; filename="test.pdf"');
echo $client->convertHtml($reportData);
}
catch(PdfcrowdException $e) {
echo $e->getMessage();
}
What am I doing wrong?