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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Reading PDF

Thread ID:





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

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 05:11 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon