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.
None
0 Points
9 Posts
How to read text file data to pdf?
Jul 28, 2010 03:28 AM|sunithag|LINK
Please suggest me how to read text file data to pd using itextsharp dynamically....
Member
62 Points
36 Posts
Re: How to read text file data to pdf?
Jul 28, 2010 06:16 AM|asurai|LINK
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
None
0 Points
9 Posts
Re: How to read text file data to pdf?
Jul 28, 2010 06:38 AM|sunithag|LINK
I want to convert text file to pdf..can you please suggest..
Member
62 Points
36 Posts
Re: How to read text file data to pdf?
Jul 28, 2010 06:50 AM|asurai|LINK
Try this.
PdfWriter.GetInstance(sourcefile, new FileStream("filename.pdf", FileMode.Create));
--
Avijit