[VeryPDF Release Notes] VeryPDF has released a new version of Image to PDF OCR Converter SDK for .NET today

Hi,

We are testing your Image to PDF OCR Converter SDK product now, however we can't seem to get the zonal ocr to work (-ocrrect).
It doesn't matter what co-ordinates we use, it always seems to ocr the 'verypdf generated watermarks' at the top and bottom of the TIF image.

e.g.:

socrrect = "200,200,400,400"
strOption = "-ocrrect """ & socrrect & """ " & fileIN & " " & fileOUT
return = Image2PDFOCR_PDFCmd(strOption)

We're able to do everything else we need but in order to purchase we have to be able to do zonal ocr.

Thank you very much.
Customer
-------------------------------------

image
We have created a new version of "Image to PDF OCR Converter SDK for .NET Developers" for you, please download it from this URL,

https://www.verypdf.com/dl2.php/image2pdfocrsdk.zip

after you download and unzip it to a folder, please run install.vbs to register pdfocrcom.exe into your system, then you can convert a TIFF file to PDF file with "-ocrrect" option properly, for example,

set VeryPDFCom = CreateObject("PDFOCRCOM.PDFOCRCOMClass")
Set filesys = CreateObject("Scripting.FileSystemObject")
strFolder = filesys.GetParentFolderName(WScript.ScriptFullName)

strInFile = strFolder & "\test.tif"
strOutFile = strFolder & "\_test_ocr_rectangle.pdf"
strCmd = "-$ XXXXXXXXXXXXXXXXXX -ocr 1 -tsocr -ocrrect ""300,433,1255,1161"" """ & strInFile & """ """ & strOutFile & """"
MsgBox strCmd

nReturn = VeryPDFCom.com_PDFOCRCmd(strCmd)
MsgBox "VeryPDFCom.com_PDFOCRCmd Return: " & nReturn

image

"Image to PDF OCR Converter SDK for .NET" has more powerful functions, for example, it allows you to convert black and white TIFF file to JBIG2 compressed PDF file. JBIG2 is a compression algorithm for bitonal images and has been developed to replace the widely used CCITT G4 algorithm because it can reach better compression ratios.image

for example,

Set VeryPDFCom = CreateObject("PDFOCRCOM.PDFOCRCOMClass")
Set filesys = CreateObject("Scripting.FileSystemObject")
strFolder = filesys.GetParentFolderName(WScript.ScriptFullName)

strInFile = strFolder & "\bw.tif"
strOutFile = strFolder & "\_out_plaintextpdf.pdf"
strCmd = "-$ XXXXXXXXXXXXXXXXXX -bwimg 2 -ocr 1 -tsocr -plaintextpdf """ & strInFile & """ """ & strOutFile & """"
MsgBox strCmd
nReturn = VeryPDFCom.com_PDFOCRCmd(strCmd)
MsgBox "VeryPDFCom.com_PDFOCRCmd Return: " & nReturn

strInFile = strFolder & "\bw.tif"
strOutFile = strFolder & "\_out_hiddentext.pdf"
strCmd = "-$ XXXXXXXXXXXXXXXXXX -bwimg 2 -ocr 1 -tsocr """ & strInFile & """ """ & strOutFile & """"
MsgBox strCmd
nReturn = VeryPDFCom.com_PDFOCRCmd(strCmd)
MsgBox "VeryPDFCom.com_PDFOCRCmd Return: " & nReturn

strInFile = strFolder & "\bw.tif"
strOutFile = strFolder & "\_out_hiddentext2.pdf"
strCmd = "-$ XXXXXXXXXXXXXXXXXX -bwimg 2 -ocr 1 -tsocr -ocrtxt _ocrtxt.txt -ocrtxtxy _ocrtxtxy.txt """ & strInFile & """ """ & strOutFile & """"
MsgBox strCmd
nReturn = VeryPDFCom.com_PDFOCRCmd(strCmd)
MsgBox "VeryPDFCom.com_PDFOCRCmd Return: " & nReturn

strInFile = strFolder & "\_out_hiddentext.pdf"
strOutFile = strFolder & "\_out_pdf2pdf_hiddentext.pdf"
strCmd = "-$ XXXXXXXXXXXXXXXXXX -bwimg 2 -ocr 1 -tsocr """ & strInFile & """ """ & strOutFile & """"
MsgBox strCmd
nReturn = VeryPDFCom.com_PDFOCRCmd(strCmd)
MsgBox "VeryPDFCom.com_PDFOCRCmd Return: " & nReturn

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!