1

I am trying to convert a comma separated string(CSV) file to pdf file in C# using the iTextSharp library. I would like to know if there is any other free or more efficient tool/way for this type of conversion.

Ryan Lutz
  • 355
  • 2
  • 8
nandu
  • 259
  • 3
  • 7
  • Asked before, question is rather subjective. http://stackoverflow.com/questions/2937797/best-c-sharp-api-to-create-pdf – crownedzero Oct 31 '13 at 21:11

1 Answers1

0

You can use iTextSharp

Here's an example:

Document pdfDoc = new Document();
string path = @"c:\file.pdf";
PdfWriter writer = PdfWriter.GetInstance( pdfDoc, new FileStream(path, FileMode.OpenOrCreate));
pdfDoc.Open();
pdfDoc.Add(new Paragraph("your data"));
pdfDoc.Close();
Jerry
  • 4,258
  • 3
  • 31
  • 58