Paulo Soares, Yes i do have lines with spaces and long lines.
I am sorry for not being elaborate..i am attaching the source file and the PDF. -----Original Message----- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 6:15 PM To: 'bruno'; [EMAIL PROTECTED] Subject: RE: [iText-questions] Preformatting Text file--PDF You probably have tabs or the lines are too long. Of course, saying that the formatting in not the same as expected is not much help. Best Regards, Paulo Soares > -----Original Message----- > From: bruno [SMTP:[EMAIL PROTECTED] > Sent: Monday, June 09, 2003 10:42 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Preformatting Text file--PDF > > > Hi, > > I am facing difficulties in converting a preformatted text file into PDF > I am using a paragraph with fixed font size,inspite of this the formatting > is not as exepected(not the same as in text file). > > My code looks something like this. > > PdfWriter.getInstance(document, new FileOutputStream("test.pdf")); > document.open(); > InputStreamReader objInputStreamReader = new > InputStreamReader(fi); > BufferedReader objBufferedReader = new > BufferedReader(objInputStreamReader); > Font > times=FontFactory.getFont(FontFactory.TIMES_ROMAN, 7,Font.NORMAL, > new Color(0, 0, 255)); > while((data=objBufferedReader.readLine())!=null){ > document.add(new Paragraph(data, times)); > } > > i am trying to read a plain text file. > > I have even tried using the method of creating a font and making use of > that..still the > formatting is not proper.Kindly let me know if there is any other way that > i > can use to > format my PDF. > > Thanks & Regards > Bruno > Nucleus Software Solutions > Ph: +65 62606878 > Mail:[EMAIL PROTECTED] > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions
Itinerary Schedule Report
for the date 01/09/2003
SBRG1 - Southbend Management Services Inc. RG1
Trip Destination - Buyer
Area Code Buyer Code Buyer Name
Seller Code Seller Name Trip No Trip Type
Time Address Contact
Person Contact No Backup Contact Person
Backup Contact Number Fax Number Remarks
Type Number Date
Invoice Due Date Amount
# of Tries
NUEEGAPAN0 UNI216260 Alabang Ind. Clinic
GILTE02 GILLETTE (PHILIPPINES), INC. 53 Payment
Collection 12:00 Alabang Collection Address
Alabang Collect Contact Person 8947492 ma.torralba Col Backup
Person 871-4464 8947264 This is a special
instruction for TeleCo
Address
Address2
Address 3
INV S9INV00025 01/09/2003
10,000.25
0
OI S9INV00025 04/08/2003
29/08/2003 10,000.25
0
Sub-total
1
1
10,000.25
TAC0 005881A Anson Makati Center
NESIC02 NESTLE PHILIPPINES- ICE CREAM 54 Payment
Collection 12 -3 pm Anson Collection Address
AnsCollect-Contact Person 132-2968 Anson Col Bkup Person
132-2991 132-2999 Remarks for Anson - Col
Address 1
132-2990
Address 2
Address 3
INV S2INVA0005 26/08/2003
10,000.02
0
OI S2INVA0005 04/08/2003
29/08/2003 10,000.02
0
Sub-total
1
1
10,000.02
Grand Total
2
2
20,000.27
Trip Destination - Seller
Area Code Seller Code Seller Name
Buyer Code Buyer Name Trip No Trip Type
Time Address Contact
Person Contact No Backup Contact Person
Backup Contact Number Fax Number Remarks
Type Number Date
Invoice Due Date Amount
# of Tries
Grand Total
0
0
0.00
Footer: List of Trips to be made by SpeedCollectors on a particular day. It is grouped
by Service Provider by Area Code.
test.pdf
Description: Adobe PDF document
