I am using spring's AbstractPdfView for my pdf views. I want a document in
landscape A4. here is the code is used. No matter whatever size i give it
only outputs one size. Please help me.



protected void buildPdfDocument(Map model, Document document, PdfWriter
pdfWriter,
                        HttpServletRequest request, HttpServletResponse 
response) throws
Exception {
        
                response.addHeader("Content-Disposition", "attachment;
filename=report0011.pdf");
                
                document.setPageSize(PageSize.A4.rotate());
                document.add(new Paragraph("Hello",new Font(Font.BOLD)));
                document.close();
                
        }
-- 
View this message in context: 
http://www.nabble.com/Not-able-to-get-the-correct-page-size-tp23089661p23089661.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to