With some previous help I was able to register as follows using the 30 trial version:
Code: Select all
oGdPictureImaging = CREATEOBJECT("GdPicture9.GdPictureImaging)
oGdPictureViewer = CREATEOBJECT("GdPicture9.GdViewer")
thisform.GdViewer1.SetLicenseNumber("xxxxxxxxxxxxxx")
Code: Select all
vtextbit=thisform.GdViewer1.PdfGetPageText
What I have done is (in addition to the registering above):
Code: Select all
LicMgr = CreateObject("GdPicture9.LicenseManager")
LicMgr.RegisterKEY(MY_PLUGIN_KEY)
thisform.GdViewer1.DisplayFromFile(vimage)
mpages = Thisform.GdViewer1.PageCount
vimage = (valid name of file e.g. test.pdf, test.tiff, test.jpg etc - can be multi page
For i=1 To mpages &&fr.BatchDocument.Pages.Count
thisform.GdViewer1.DisplayPage(i)
ImageID = oGdPictureImaging.CreateGdPictureImageFromFile(vimage)
ImageID=INT(ImageID)
thisform.GdViewer1.DisplayFromGdPictureImage(ImageID)
vtextbit = oGdPictureImaging.OCRTesseractDoOCR(ImageID, "eng", lcOcrDir, "")
etc....
endfor
Secondly, if a document has an incorrect orientation, what command would I use above to automatically orient it ? We can process many thousands of documents in a batch and therefore manual processing is unworkable.
If we can solve this problem I am sure my client will upgrade and we can both make some money!
Any help would be most appreciated.