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.
            Asked
            
        
        
            Active
            
        
            Viewed 7,397 times
        
    1 Answers
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
 
    