Landscape and webapp problem

View: New views
1 Messages — Rating Filter:   Alert me  

Landscape and webapp problem

by amarianoelaide :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I just created a PDF file using iText 2.1.3 in Java and the document is ok.  But there is a problem with orientation. I need a landscape layout but when I download the file with my webapp and I open it what I see is a pdf with the right content but not rotated. I have to manually rotate it into the reader. There is a way to force this rotation?

My line of code is simply:

Document doc = new Document(PageSize.A4.rotate());

Thanks

Antonio Mariano