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

Forcing Portrait

spyke01 wrote on 2010-10-18:
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*');
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?
support wrote on 2010-10-18:
Your code should produce portrait -- we run your code and it works as expected.

Are you sure you are not getting a cached pdf?
spyke01 wrote on 2010-10-18:
I apologize, it looks like that was the case, thank you for your help.