Landscape output not correct

  • In my app, I use StartPage with a paper size and landscape setting; each page might have a different orientation, ex.

    pdfControl.StartPage(pagesize, landscape);

    When I view the resulting PDF, indeed the page displays in Acrobat Reader as landscape... but all my output was rotated 90 degrees!! So I have in effect a portrait page that was rotated sideways (i.e. the text was drawn sideways from top to bottom). This is obviously not what one would intend... I wanted a landscape page with text left to right like any other page, i.e. just a wider area to draw on.

    Is this simply a bug in the DLL, or is there some other setting I should be using to get "normal" landscape, not just a rotated portrait?

    wPDFControl02.dll version 2.5.6.2

  • Here's what happened in the PDF:
    25 0 obj
    <<
    /Type/Page
    /Parent 9 0 R
    /Thumb 24 0 R
    /Rotate 90
    /Resources 10 0 R
    /MediaBox [0 0 612 792]
    /Contents 23 0 R
    >>
    endobj

    This is clearly incorrect behavior for a landscape page. Landscape doesn't mean "rotate the portraint page 90 degrees" it means "i need to write horizontally across a page canvas that is wider than it is longer".