ocr products

How to convert scanned image files to searchable PDF files from web application?

Could not load file or assembly 'Interop.VeryPDF' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Interop.VeryPDF' or one of its dependencies. An attempt was made to load a program with an incorrect format.

I am using OCR2Any SDK/COM, running application in win 32 bit , getting below error

error
Retrieving the COM class factory for component with CLSID {990771DE-4D3A-49B8-803A-C1970E7ACE62} failed due to the following error:
80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). @@
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at ManuOcrApplication.Models.OCRProcess.PreocessOCR(String strInFile, String strOutFile) in

Customer
--------------------------------------------

https://www.verypdf.com/app/ocr-to-any-converter-cmd/try-and-buy.html

Thanks for your message, in order to call "VeryPDF.ocr2anyCom" from your source code, you need register ocr2anyCom.exe into your system with administrator privilege first, for example, you may run a CMD window with "Run As Administrator" menu option first, and then run following command line to register ocr2anyCom.exe into your windows system, "ocr2anyCom.exe" is exist in the "ocr2any_sdk\libs" folder,

ocr2anyCom.exe /regserver

You can also double click "install.vbs" from "libs" folder to register ocr2anyCom.exe into your system, "install.vbs" will use administrator privilege to register ocr2anyCom.exe automatically.

After you register "ocr2anyCom.exe" into your system properly, you can call it from your C#, VB.NET, C++, VB6, etc. program languages, for example,

This is a C# example,
-----------------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using VeryPDF;
using System.IO;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string appPath = Path.GetDirectoryName(Application.ExecutablePath);
            {
                string strInFile = appPath + "\\test_table_ocr.tif";
                string strOutFile = appPath + "\\_test_out.pdf";
                string strCmd = "-ocrmode 3 -$ XXXX-XXXX-XXXX-XXXX";
                strCmd += " \"" + strInFile + "\" \"" + strOutFile + "\"";

                System.Type VeryPDFType = System.Type.GetTypeFromProgID("VeryPDF.ocr2anyCom");
                VeryPDF.ocr2anyCom VeryPDFCom = (VeryPDF.ocr2anyCom)System.Activator.CreateInstance(VeryPDFType);
                string strReturn = VeryPDFCom.ocr2any(strCmd);
                MessageBox.Show(strReturn);
            }

            {
                string strInFile = appPath + "\\test_table_ocr.tif";
                string strOutFile = appPath + "\\_test_out.rtf";
                string strCmd = "-ocr2 -$ XXXX-XXXX-XXXX-XXXX";
                strCmd += " \"" + strInFile + "\" \"" + strOutFile + "\"";

                System.Type VeryPDFType = System.Type.GetTypeFromProgID("VeryPDF.ocr2anyCom");
                VeryPDF.ocr2anyCom VeryPDFCom = (VeryPDF.ocr2anyCom)System.Activator.CreateInstance(VeryPDFType);
                string strReturn = VeryPDFCom.ocr2any(strCmd);
                MessageBox.Show(strReturn);
            }
        }
    }
}
-----------------------------------------------

This is a VB.NET example,
-----------------------------------------------
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
-----------------------------------------------

This is a VB6 example,
-----------------------------------------------
Private Sub Command1_Click()
    strFolderDir = App.Path & IIf(Right$(App.Path, 1) <> "\", "\", "")
    strInFile = strFolderDir & "\test_table_ocr.tif"
    strOutFile = strFolderDir & "\_test_out.pdf"
    strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
    strCmd = "-ocrmode 3 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
   
    Set VeryPDFCom = CreateObject("VeryPDF.ocr2anyCom")
    strReturn = 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 & """"
   
    Set VeryPDFCom = CreateObject("VeryPDF.ocr2anyCom")
    strReturn = VeryPDFCom.ocr2any(strCmd)
    MsgBox strReturn
   
End Sub
-----------------------------------------------

btw, I just noticed a "Access is denied" error in your log message, this error is caused by permission restrictions, your web application hasn't permissions to access to "VeryPDF.ocr2anyCom" COM interface, you need to give full control permissions to "VeryPDF.ocr2anyCom" in your system, please refer to following steps,

1. "Start" -> "Run" -> type in "dcomcnfg" on 32bit system or "MMC comexp.msc /32" on 64bit system,

In the Component Services Window, expand the tree item:

Console Root / Component Services / Computers / My computer / DCOM Config

Right click the "VeryPDF.ocr2anyCom" entry and select "Properties":

2. In the 'COM Properties' dialog, select the the 'Security' tab,

3. In the 'Access Permissions' area, select "Customize" and click Edit.

4. Ensure that "Everyone" is present in the list of names. If not, add it by clicking the Add button, typing "Everyone" and give it all permissions, and clicking OK.

5. Make sure "Everyone" has the Access Permission 'Allow' check box ticked.

Click OK to return to the 'properties' window.

You need give "Full Control Permission" to "Everyone" to "Launch and Activation Permissions", "Access Permissions" and "Configuration Permissions" three items.

image

6. Click "Identity" tab. Check the "This user" checkbox, press "Browse" and specify the Administrator account, enter and re-enter the Administrator password, OR simple choose "The interactive user." option.

7. Click "OK" to save it,

8. Add "Everyone" user account to the folder where the ocr2anyCom.exe inside, and assign "Full Control" permission to "Everyone" user account, if you don't give enough permission to this folder, ASP, PHP, C#, VB.NET, ASP.NET etc. web applications will be denied to access to this folder,

9. OK, you can call "VeryPDF.ocr2anyCom" from ASP, PHP, C#, VB.NET, ASP.NET, VBScript, JavaScript, Delphi, etc. program languages without any restrictions now.

Please look at following web page for more information about how to set permissions in dcomcnfg application, although this web page is wrote for "VeryPDFCom.RunCmd", but the steps are same for "VeryPDF.ocr2anyCom",

https://www.verydoc.com/blog/verydoc-release-notes-verydoc-releases-an-exe-com-of-verypdfcomruncmd-exe-today-verypdf-exe-com-does-allow-you-to-call-ms-office-and-any-exe-application-from-asp-php-c-net-etc-program-languag.html

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)
image to pdf converter

How to batch convert all TIFF files in a folder and all sub folders to PDF files?

Please help, I am trying to craft a command line command for img2pdf.exe to convert all TIF files in a folder and all subfolders to PDF format. I found this in a blog post, but I can't get it to run. No errors, no verbose of any kind, just nothing:

for /r x:\images\folder001 %F in (*.tif) do "C:\VeryPDF\img2pdf.exe" -o "%~dpnF.pdf" "%F"

What am I doing wrong?

Thank you.
Customer
--------------------------------------------
Your command line is no problem,

for /r x:\images\folder001 %F in (*.tif) do "C:\VeryPDF\img2pdf.exe" -o "%~dpnF.pdf" "%F"

image

However, if you wish execute above command line from a .bat file, you need use %% to instead of %, for example,

for /r x:\images\folder001 %%F in (*.tif) do "C:\VeryPDF\img2pdf.exe" -o "%%~dpnF.pdf" "%%F"

You may look at following details to understand more information about "for /r" command line option,

FOR /R

Loop through files (Recurse subfolders)

Syntax
      FOR /R [[drive:]path] %%parameter IN (set) DO command

Key
   drive:path  : The folder tree where the files are located.

   set         : A set of one or more files enclosed in parentheses (file1.*, another?.log).
                 Wildcards must be used.
                 If (set) is a period character (.) then FOR will loop through every folder.

   command     : The command to carry out, including any parameters.
                 This can be a single command, or if you enclose it
                 in (parentheses), several commands, one per line.

   %%parameter : A replaceable parameter:
                 in a batch file use %%G (on the command line %G)
This command walks down the folder tree starting at [drive:]path, and executes the DO statement against each matching file.

If the [drive:]path are not specified they will default to the current drive:path.

FOR parameters (%%A – %%Z)
Read the main FOR introduction page for a full description of assigning the replaceable %%parameter.
FOR parameters are used in all variations of the FOR command, it is a good idea to get up to speed with writing a basic FOR command before trying the more complex FOR / R variant.

Unlike some other variants of the FOR command, with FOR /R you must include a wildcard (either * or ?) in the 'set' to get consistent results returned. In many cases you can work around this by adding a single character wildcard e.g. if you are looping through multiple folders to find the exact filename myfile.txt you could instead specify myfile.t?t

FOR does not, by itself, set or clear the Errorlevel.

FOR is an internal command.

Examples

List every .bak file in every subfolder starting at C:\temp\
For /R C:\temp\ %%G IN (*.bak) do Echo "%%G"

A batch file to rename all .LOG files to .TXT in the 'demo' folder and all sub-folders:
For /R C:\demo\ %%G in (*.LOG) do Echo REN "%%G" "%%~nG.TXT"

Alternatively the same thing using the current directory:
CD C:\demo\
For /R %%G in (*.LOG) do Echo REN "%%G" "%%~nG.TXT"

(Remove the Echo from these commands to run them for real.)

Change directory to each subfolder under C:\Work in turn:

FOR /R "C:\Work\" %%G in (.) DO (
Pushd %%G
Echo now in %%G
Popd )
Echo "back home"

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

How to run HookPrinter SDK automatically at system startup or reboot or at log on of any user?

 

HookPrinter SDK is a great software to capture SPL and SHD files from Windows Printers, you need to use administrator privilege to install HookPrinter SDK into Windows system kernel level, it does install a hook into Windows Spooling system, if you print a document to any Windows Printers, HookPrinter SDK will capture SPL and SHD files and copy them to another predefined folder for further processing.

You may download the trial version of HookPrinter SDK from this web page,

https://www.verypdf.com/app/hookprinter/index.html

If you want to run HookPrinter SDK automatically at system startup or reboot or at log on of any user, we have a good solution for you.

You can use Schtasks application (Windows Task Scheduler) to run HookPrinter SDK at log on of any user, please refer to following steps,

1. Please run a CMD Window by administrator privilege,

image

2. Please run following command line to create a new task, and set it run at log on of any user, use administrator privilege to run this task too. Please notice, HookPrinter SDK MUST to be run as administrator or else this application will not run and work.

schtasks.exe /create /TN HookPrinter /RU users /SC ONLOGON /TR D:\HookPrinter\install64.bat /F /RL highest

image

3. After you run above command line, "HookPrinter" task will appear in the "Windows Task Scheduler" application,

image

4. OK, we have finished the "Run HookPrinter automatically at log on of any user", when you reboot and login system at next time, HookPrinter will work at background automatically.

5. If you want to delete HookPrinter task from your system, just run following command line with administrator privilege,

schtasks.exe /delete /TN HookPrinter /f

6. btw, the function of "Run HookPrinter automatically at log on of any user" has been integrated into "VeryPDF HookPrinter Print Logger" application, you may download and test "VeryPDF HookPrinter Print Logger" application from this web page,

https://veryutils.com/hookprinter-print-logger

"VeryPDF HookPrinter Print Logger" can be used to intercept and capture print jobs, convert them to PDF files, and submit PDF files and other information to cloud database automatically.

VeryPDF HookPrinter Print Logger is a best print logging application for Windows systems designed to provide real-time activity logs for all installed printers. The print log contains: time of print, the name of the user who printed, the total number of pages, document names and titles, other job attributes such as paper size, color mode, etc..

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

VeryPDF HookPrinter Print Logger is the best print logging program

VeryPDF HookPrinter Print Logger is a best print logging application for Windows systems designed to provide real-time activity logs detailing all printer use.

Information tracked includes:
* the time of print,
* the name of the user who printed,
* the total number of pages,
* document names and titles,
* other print job attributes such as paper size, color mode and more.

VeryPDF HookPrinter Print Logger Highlights:
* Easy to use HTML interface.
* Monitor printing on all major printer makes and models.
* Real-time print logs ensure data is always current and live.
* Printer usage logs are available in Microsoft Excel format allowing for detailed print analysis and charting.
* Compatible with both desktop and server versions of Microsoft Windows print queues.
* Unobtrusive - no need to modify the printing process or configure printers differently.

Here is a demo Web Interface for Print Logger software,

http://online.verypdf.com/app/hookprinter/

View Computers in a Department,

image

View Print Report for a computer in a Department,

image

If you wish to test Print Logger software, please feel free to contact us, we will provide a demo version to you asap.

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

A print monitor solution for every business!

Finding a printing solution seems like a very big, very difficult thing. Regardless, it's sure to be a big, tough deal. After all, you need information that can help you better understand how many jobs each printer has, so you know when to replace ink cartridges, add more paper, and perform maintenance and repairs. this is very simple. All you need is a print log software.

Print journaling software enables you to manage, record and optimize your school, business or library branch printing to save you the most time, effort and money.

Printing log software has a lot to offer. For example, you can set a print quota for everyone included in the system.

When you set a print quota, you allow everyone to print a certain number of pages per day, per week, etc. Pretty much no matter how you set it up. However, if they need to break their print quota, for example for an important task that requires two or three or more pages than they normally need, all you have to do is overwrite and authorize the printing of those pages. After that, their print quota remains the same. You don't have to change it - just authorize those pages.

Then there's print tracking, which lets you see where and when each sheet of paper was printed and who printed it. This allows you to see who is printing the most on any given day (if they keep asking for higher quotas, this will help you see if this is a good decision.), and which printer is receiving the most work. By understanding who and what Print the most, and you can also estimate when you need to replace the ink cartridges and add more paper for each printer, if you remember how much paper you put in the printer. With print management software, you can do all of this.

VeryPDF has a Print Logger software, with this Print Logger software, you can get real-time activity logs detailing all printer use. VeryPDF Print Logger software is based on HookPrinter SDK product, HookPrinter SDK can be downloaded from this web page,

https://www.verypdf.com/app/hookprinter/index.html

Here are some screenshots from VeryPDF Print Logger software,

image

image

If you wish to evaluate VeryPDF Print Logger software, please feel free to let us know, we will provide a trial version to you asap.

https://www.verypdf.com/support/index.htm

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