locked
How to read text file data to pdf? RRS feed

  • Question

  • User-1552501272 posted

    Please suggest me how to read text file data to pd using itextsharp dynamically....

    Wednesday, July 28, 2010 3:28 AM

All replies

  • User1534121983 posted

    You can't read text file data from PDF using iTextSharp.

    The pdf format is just like a canvas where text and graphics are placed without any structure info rmation. As such there aren't any 'iText-objects' in a PDF file. In each page there will probably be a number of 'Strings', but you can't reconstruct a phrase or a paragraph using these strings.

    Avijit

    Wednesday, July 28, 2010 6:16 AM
  • User-1552501272 posted

    I want to convert text file to pdf..can you please suggest..

    Wednesday, July 28, 2010 6:38 AM
  • User1534121983 posted

    Try this.



    PdfWriter.GetInstance(sourcefile, new FileStream("filename.pdf", FileMode.Create));



    --

    Avijit




    Wednesday, July 28, 2010 6:50 AM