Siddhartha, Siddhartha Rathi wrote: > As for writing the code twice I found it using the net and that's why I > have wrote it twice.
Just to be sure we are talking about the same thing. You initially posted this as your code: > String path = "/local/notesdata/appln/Reports/" + strDate + > ".pdf"; > File PdfAtt = new File(path); > > Document pdfDoc = new Document(PageSize.A4.rotate()); > PdfWriter writer = PdfWriter.getInstance(pdfDoc, new > FileOutputStream(path)); > > Document pdfDoc = new Document(PageSize.A4.rotate()); > PdfWriter writer = PdfWriter.getInstance(pdfDoc, new > FileOutputStream(path)); > > pdfDoc.open(); > > //-- my other code to fill up the PDF > > pdfDoc.close(); Is this really the current version of your code? I ask because it will not compile properly as the local variables pdfDoc and writer are defined twice in the same scope. Depending on your setup you might, therefore, in the compiled classes still have a former version of that class in which you had not yet added the iText code. This would easily explain why you don't get any output there. Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/Saving-the-PDF-created-on-SUSE-Linux-Server-updated-tp4075377p4079324.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
