hi
         i export the swing component into pdf using ITEXt.If the 
swing component contain large size output i caannt get the pdf.That 
means if the rectangle size is greater than 14000 i cannt get the pdf.
   FileOutputStream fout = new FileOutputStream(file+".pdf");
                        
                        com.lowagie.text.Rectangle pageSize = new 
com.lowagie.text.Rectangle(14000,14000);
                        document = new Document(pageSize);
                        
                        PdfWriter writer;
                        writer=  PdfWriter.getInstance(document,fout);
                        
                        document.open();
                        
                        PdfContentByte cb = writer.getDirectContent();
                        Graphics2D g2;
                        g2 = cb.createGraphicsShapes(14000,14000);
                        paint(g2);                        
                        g2.dispose();
                        document.close()

       
---------------------------------
Don't let your dream ride pass you by.    Make it a reality with Yahoo! Autos. 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to