I'm using PdfExtractor to pull out the text of some pdf documents we have. For a 57kb pdf document its taking over 50 seconds to extract the text. Why is it so slow:
Here's the code I'm using
string result = null;
if (File.Exists(filename))
{
License license = new License();
license.SetLicense("Aspose.Custom.lic");
PdfExtractor extractor = new PdfExtractor();
extractor.BindPdf(filename);
extractor.ExtractText();
using (FileStream stream = new FileStream("c:\\" + Path.GetFileName(filename),FileMode.CreateNew, FileAccess.Write))
{
extractor.GetText(stream);
}
}
return result;