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.
Unfortunately, activation email could not send to your email. Please try again.

Reading PDF

Thread ID:





95872 Aug 5,2010 06:40 PM Aug 9,2010 01:11 PM ASP.NET Web Forms (Classic) 1
Tags: PDF
Prema Varma
Asked On August 5, 2010 06:40 PM

Is there a way to read text from a PDF metafile?

PdfLoadedDocument d = new PdfLoadedDocument(path);
PdfLoadedPageCollection loadedPages = d.Pages;
string s = "";
foreach (PdfLoadedPage lpage in loadedPages)
s += lpage.ExtractText();

throws an {"Object reference not set to an instance of an object."}

Is there a work Around if the PDF is a metafile.

Angappan G [Syncfusion]
Replied On August 9, 2010 01:11 PM

Hi Prema,

Thank you for using Essential PDF.

We can’t extract text from the metafile but we can import the metafile into PDF and then we can extract text from the PDF. Please refer the sample for more details.

Sample Link:

Please try this and let us know if you have any queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.