Create a fixed width font:
 
Font courier = new Font(Font.COURIER, 10);
 
Read each text line to a String and do:
 
String text = ....;
document.add(new Paragraph(text, courier));
 
There are lots of examples to fill the missing bits.
 
Best Regards,
Paulo Soares


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of geeta
Sent: Tuesday, June 15, 2004 9:57 AM
To: [EMAIL PROTECTED]
Subject: [iText-questions] text to pdf

any idea how to convert text file to pdf file using iText......



No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com

Reply via email to