Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I currently working on program that prints reads from text file and print the content into pdf.

What is done:
1. Reading and printing the single text doxument.
2. Reading multiple text documents

where I stuck :
1. Reading and printing the Multiple documents
2. creating output pdf for each input text file in bulk.

I use 'for loop' to read multiple text documents and itextsharp to convert. It print the single text document nicely but when it come to print the bulk doxument, Everything goes messed up. It just prints the content of all next files into pdf of first text document, and output pdf remains blank.

for e.g. if input : 4 text documents
then output must be 4 pdf documents.

but it creates only 1 pdf document containg all overlapped contents from all and keep other 3 pdf document as blank.
Posted
Comments
Sinisa Hajnal 28-May-15 2:47am    
Show the code, we cannot resolve anything if we don't know how you implemented it. No one can point the error in theory. Show what you've done. Use Improve question link. Thank you.
MayurDighe 28-May-15 10:30am    
the Error is ....it just overlapping the printed text lines on newly created pdf file.
Sinisa Hajnal 29-May-15 2:33am    
Yes, but you said you end up with only 1 PDF document. Ergo, the error is in your code that doesn't send your read text into correct documents. Post the code.
MayurDighe 29-May-15 2:36am    
ok..I'll post the code soon.

Thank you for valueable time..:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900