Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PDF object to run OCR
Message
 
 
À
24/07/2020 16:12:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01675342
Message ID:
01675384
Vues:
57
>>>I'm looking for a way to OCR existing documents in a VFP system before exporting to a document manager. The files are stored in a windows folder, so could be handled in a variety of ways. I already use iTextSharp to fill pdf forms and have Debenu Quick PDF, but neither of those tools seem to do OCR. The Document Management company wants to charge $2500 up front and $500 annually for a watch folder setup. I'm looking for a program with no continuing fee that could be fired programmatically.
>>>
>>>As always, thanks in advance!
>>
Local miDoc,miLayout,lcStr
>>lcStr=''
>>CREATE CURSOR mondocument (mondococr m)
>>miDoc = Createobject('MODI.Document')
>>miDoc.Create( "C:\untitled.tif")
>>miDoc.Images(0).OCR
>>miLayout = miDoc.Images(0).Layout
>>strLayoutInfo ="Language: " + Transform(miLayout.Language )+Chr(13)+Chr(10)
>>strLayoutInfo=strLayoutInfo+"Number of characters: " + Transform(miLayout.NumChars)+Chr(13)+Chr(10)
>>strLayoutInfo=strLayoutInfo+"Number of fonts: "+ Transform(miLayout.NumFonts )+Chr(13)+Chr(10)
>>strLayoutInfo=strLayoutInfo+"Number of words: " + Transform(miLayout.NumWords)+Chr(13)+Chr(10)+Chr(13)+Chr(10)
>>strLayoutinfo = strLayoutinfo+miLayout.text
>>INSERT INTO mondocument (mondococr) VALUES (strLayoutinfo)
>>MODIFY MEMO mondocument.mondococr
>
>I'm far away from my computer, so I can't check, but I'm quite sure that modi isn't available anymore.

That appears to be the case - I don't have the MODI object model available.

What I'm trying right now is the new pdfocr addon object from itext. If I get a workable dll for VFP consumption, I'll release to anyone interested since it would be open source.
Steve Howie, owner
DaSH Technology
Denver, CO
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform