Hello,
I want to extract text from an imported pdf file. There is an option in the SDK (DocumentImporter.ExtractTextFromEdoc) which specifies that you can do that . The document gets imported with no issues but it is without any searchable text. I have also attached a sample file that i am using for testing. The file definitely has searchable text.
What am i doing wrong ?
//Prevent memory leak with the using statement using (DocumentInfo doc = new DocumentInfo(mySess)) { //Check if the destination folder exists EntryInfo docentryinfo = Entry.TryGetEntryInfo(laserfichedestinationfolder, mySess); if (docentryinfo != null) { //Create a document in the destination folder doc.Create(laserfichedestinationfile, "DEFAULT", EntryNameOption.AutoRename); docentryinfo.Lock(LockType.Exclusive); DocumentImporter DI = new DocumentImporter(); DI.Document = doc; //Doesnt do anything DI.ExtractTextFromEdoc = true; //Import the local file into the laserfiche document DI.ImportEdoc(System.Web.MimeMapping.GetMimeMapping(Path.GetFileName(localfilepath)), localfilepath); docentryinfo.Unlock(); } }