How to create a PDF file from FORMATTED text file
i need to write a service which has to perform the following task:
-read text file from specific folder automatically and generate pdf files for each customer data.(this text file generated by another system on daily basis with current date as its file name.
-this text file contain orders and orders detail of different customer. (and data is also FORMATTED)
e.g.
order-detail02062011.txt
<!--
Customer Number:001 Customer Name: Roland Peter
Address: Washington Date : 02-06-2011
Order Detail
Item No. Description Quantity Price
000988 XYZ 100 $90,0000
000888 ABC 500 $50,0000
Total 700 $140,000
-->
<!--
Customer Number:002 Customer Name: Jhon Bravo
Address: NewYork Date : 02-06-2011
Order Detail
Item No. Description Quantity Price
000988 XYZ 100 $70,0000
000888 ABC 500 $50,0000
Total 700 $120,000
-->
-this text file has specific starting and end delimeters which shows the start and end of orders for each customer.
-i need to loop through this file for every customer order and create a separte pdf file from this data.
-these pdf files will be saved by customer reference number.
Any body can give me some idea how I will start this task, as I have some grey area in my mind that how I can generate these pdf files from .txt file.