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
close icon

Reading PDF

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.

1 Reply

AG Angappan G Syncfusion Team 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:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=708711377643484.zip

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

Regards,
Angappan.


Loader.
Live Chat Icon For mobile
Up arrow icon