byte[] buffer = (byte[])data.Name; () // where data.name contains bytes from database
PdfLoadedDocument document = new PdfLoadedDocument(ms);
string d = "";
PdfDocument c = new PdfDocument();
foreach (PdfLoadedPage page in document.Pages)
{
// document.Save(
// d += page.ExtractText(); // this is for extracting only the text from the pdf document but i am not using this. I want to load the full pdf document
}
MemoryStream m = new MemoryStream();
document.Save(m);
m.Seek(0, SeekOrigin.Begin);
StreamReader sr = new StreamReader(m, System.Text.Encoding.UTF8);
var s = sr.ReadToEnd();
pr.text = s;
sr.Close();
I am inserting the content in to the textarea or editor. Actually if we have only content in the pdf document it is coming clearly. But, if we have tables or other content other than text it is displaying in some other format like unreadable. Is there any other method to display the content form the database such that tables, images and text will display. Or is there any methods to convert pdf to word.
Hope you understand my question.
Regards,
Srinivas