PDF to Text OCR Converter Command Line not work from Windows Scheduled Task

I have purchased your PDF to Text OCR Converter Command Line product and am receiving windows error codes when I try to call it from a windows scheduled task process.

Before I go in to detail is this something you can help with?
============================
PDF to Text OCR Converter Command Line doesn't return the error code, however, after pdf2txtocr.exe application exit, you can check the output text file, if output text file is exist, it is indicate conversion successful, otherwise, it is indicate conversion failed.

VeryPDF
============================
Here is what is happening:

I have a windows server 2008 R2 computer.
On this computer I have a Scheduled Task that calls a batch file to process the OCR command line
This is failing with no error code

The batch file functions properly when not called from the Scheduled Task.

Is there any way you know of to schedule your process to run besides using the Windows Task Scheduler?
============================

Hi,

This problem seems caused by permission restrictions in Scheduled Task, we suggest you may use CmdAsUser.exe to run pdf2txtocr.exe from an normal user account instead of default system user account, CmdAsUser.exe can be downloaded from following web page,

http://www.verydoc.com/exeshell.html

CmdAsUser - start a command as a specified user. CmdAsUser command line is a freeware.

CmdAsUser.zip (32.40 KB).

Usage: CmdAsUser <user> <domain> [/p <password>] [/c <command>]

Where:
<user> is the name of the user.
<domain> is the logon domain, specify a period '.' for local.
<password> (optional) is the users password.
<command> (optional) is the command line to execute as the specified
user.

Notes:
If the password is not given then you will be prompted for it.
If the command is not given then "cmd" is assumed.
The calling process needs to either have administrative privileges (ie in the local adminstrators group) or at LEAST the following privileges:
"Act as part of the operating system" (SeTcbPrivilege),
"Bypass traverse checking" (SeChangeNotifyPrivilege),
"Increase quotas" (SeIncreaseQuotaPrivilege),
"Replace a process level token" (SeAssignPrimaryTokenPrivilege).
The utility may take a while if there is inappropriate security so please be patient.

Examples:

CmdAsUser Martyn . /p GingerNinja /c regedit
CmdAsUser test . /p 123 /c "C:\Program Files\docPrintPro v4.5\doc2pdf.exe" -i htttp://www.verypdf.com -o "C:\out.pdf"

Remark:
You may encounter Error 1314 in some Windows systems, please by following steps to solve this 1314 Error,

ERROR 1314:
~~~~~~~~~~~~~
1314 A required privilege is not held by the client. ERROR_PRIVILEGE_NOT_HELD
~~~~~~~~~~~~~

To resolve this issue:
1. Click Start, click Run, type "secpol.msc", and then press ENTER.
2. Double-click "Local Policies".
3. Double-click "User Rights Assignment".
4. Double-click "Replace a process level token".
5. Click "Add", and then double-click the "Everyone" group
6. Click "OK".
7. You may have to logout or even reboot to have this change take effect.

You may call following command line from Scheduled Task to try again,

CmdAsUser.exe Administrator . /p password /c C:\pdf2txtocr.exe C:\test.pdf C:\out.txt

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

This entry was posted in OCR Products and tagged . Bookmark the permalink.

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!