Hi LF comunity,
I'm using SDK to import a PDF document from a local path to Laserfiche and it seems that
DI.ExtractTextFromEdoc = true;
doesn't work to extract the text from my PDF, I tried this command :
C:\Program Files\Common Files\Laserfiche\Text Provider\TextProvider64.exe" -cmd -ExtractTextFromFile c:\your-pdf-file.pdf c:\your-text-file-output-64.txt
and it works fine for me, the text is extracted from the PDF,
The classical method of drag and drop the PDF into Laserfiche and select the generate searchable text works fine also,
So I don't know what's wrong with my code ,
I will appreciate any kind of help !!
RepositoryRegistration myRepoReg = new RepositoryRegistration("192.168.0.40/laserfiche", "Test"); Session mySess = new Session(); mySess.LogIn("admin", "admin", myRepoReg); DocumentInfo document = new DocumentInfo(mySess); document.Create("\\Import\\COM", "DEFAULT", EntryNameOption.AutoRename); DocumentImporter DI = new DocumentImporter(); DI.Document = document; DI.ExtractTextFromEdoc = true; //DI.OverwritePages = true; DI.ImportEdoc("application/pdf", "C:\\ImortTest\\com.pdf"); document.Unlock();
Thank you,