My browser launches a desktop version of Adobe Reader (not a browser 
plugin) with the pdf loaded. When I go to File | Propoerties, the values for 
Title, Author and Application are empty. The page size is Letter. Any help? 



        response.setContentType("application/pdf"); 

        Document document; 

        try { 

            document = new Document(); 
            document.setPageSize(PageSize.LETTER); 
            document.addTitle("Request For Quota Allotment"); 
            document.addAuthor("FooBar"); 
            document.addCreator("App190PrintAction"); 

            PdfWriter.getInstance(document, response.getOutputStream()); 

            document.open(); 

            document.add(new Paragraph("Hello World")); 
            document.add(new Paragraph(new Date().toString())); 

        } 

        catch (IOException e) { 
            throw new App190Exception("IO Exception: " + 
e.getMessage());        } 

        catch (DocumentException e) { 
            throw new App190Exception("Document Exception: " + e.getMessage()); 
        } 

        document.close(); 
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to