We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to get the pdf doucment content

Hi,

In the below code i am able to retrieve the word document content. How i can get it for pdf document

      WordDocument dc = new WordDocument(r, Syncfusion.DocIO.FormatType.Doc);               //word dcoument loading and conversion into pdf file
                
 MemoryStream ms2 = new MemoryStream();
                        doc2.Save(ms2, Syncfusion.DocIO.FormatType.Doc);
                        ms2.Seek(0, SeekOrigin.Begin);
                        StreamReader sr2 = new StreamReader(ms2);
                        string s2 = sr2.ReadToEnd();
                  

1 Reply

SM Suresh M Syncfusion Team December 12, 2012 11:58 AM UTC

Hi Srinivas,

 

Thank you for your interest in Syncfusion products.

 

Please find the sample available in the link below to extract the text content from the PDF document.

 

Sample link: http://www.syncfusion.com/downloads/Support/DirectTrac/101925/TextExtraction-2008238087.zip

 

Please let us know if you have any concerns.

 

Thanks,

Suresh


Loader.
Live Chat Icon For mobile
Up arrow icon