Hello, Please can you give me the link to the "VeryPDF OCR to Any Converter SDK/COM" web page. What I actual meant about installation was to put the COM DLL in place and register it so my app can call it. It appears from the CND page that .docx and .xlsx are not supported as output formats, just .doc and .xls, which wouldn't be a problem if Office is on the system, or we could use your to Office converter.
Customer
--------------------------
We don't have a separate web page for "VeryPDF OCR to Any Converter SDK/COM" product yet, however, you may download the trial version of "VeryPDF OCR to Any Converter SDK/COM" from following web page,
https://www.verypdf.com/app/ocr-to-any-converter-cmd/try-and-buy.html#buysdk
the "VeryPDF OCR to Any Converter SDK/COM" package contains C#, C++, PHP, VB, VB.NET, VBScript, etc. demo projects, you can compile and run them easily.
The "libs" folder in "VeryPDF OCR to Any Converter SDK/COM" package contains a "ocr2anyCom.exe" file, this is a COM interface for the SDK product, this COM can be called from both 32bit and 64bit systems, please by following steps to use "ocr2anyCom.exe" COM interface,
1. Please run a cmd window by administrator privilege, and then run following command line to register "ocr2anyCom.exe" into your system,
ocr2anyCom.exe /regserver
2. after you register it into your system, you can run following VBScript code to convert a TIFF file to a searchable PDF file easily,
--------------------------
Set fso = CreateObject("Scripting.FileSystemObject")
strInFile = "D:\downloads\test_table_ocr.tif"
strOutFile = "D:\downloads\test_table_ocr.pdf"
strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
strCmd = "-ocrmode 3 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
set VeryPDFCom = CreateObject("VeryPDF.ocr2anyCom")
strReturn = VeryPDFCom.ocr2any(strCmd)
msgbox strReturn
strInFile = "D:\downloads\test_table_ocr.tif"
strOutFile = "D:\downloads\test_table_ocr.rtf"
strCmd = "-ocr2 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
strReturn = VeryPDFCom.ocr2any(strCmd)
msgbox strReturn
--------------------------
Here is a VB.NET example for "VeryPDF.ocr2anyCom" COM component to convert scanned TIFF files to searchable PDF files,
--------------------------
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim strFolderDir As String = Application.StartupPath()
Dim strInFile As String = strFolderDir & "\test_table_ocr.tif"
Dim strOutFile As String = strFolderDir & "\_test_out.pdf"
Dim strLicenseKey As String = "-$ XXXX-XXXX-XXXX-XXXX"
Dim strCmd As String = "-ocrmode 3 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
Dim VeryPDFCom As Object = CreateObject("VeryPDF.ocr2anyCom")
Dim strReturn As String = VeryPDFCom.ocr2any(strCmd)
MsgBox(strReturn)
strInFile = strFolderDir & "\test_table_ocr.tif"
strOutFile = strFolderDir & "\_test_out.rtf"
strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
strCmd = "-ocr2 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
strReturn = VeryPDFCom.ocr2any(strCmd)
MsgBox(strReturn)
End Sub
End Class
--------------------------
If you encounter any problem with "VeryPDF OCR to Any Converter SDK/COM", please feel free to let us know, we are glad to assist you asap.
VeryPDF