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]
Related Posts
- Full Text Extraction with VeryPDF PDF to Text OCR SDK for .NET
- PDF to Text OCR Converter SDK for .NET, C# OCR SDK, OCR API, OCR Library for .NET Developers Royalty Free
- VeryPDF PDF to Word OCR Converter converts scanned PDF files to editable Word documents
- How to OCR lots of Pages (maybe more than 1000 pages) in PDF file to Text file at one time?
- Convert PDF to Word, Excel, PowerPoint, HTML, Text, etc. Editable Documents!
- VeryPDF Royalty Free OCR SDK for developers
- Converting non-searchable to searchable PDFs in many subfolders using OCR software
- How to convert landscape PDF pages with borderless tables into excel or CSV file?
- VeryPDF Server OCR, Automated high-volume conversion of scanned documents to searchable PDF
- How to get the key value pairs from scanned PDF file?
- PDF to Text Converter Fail to convert pdf
- How to call Image to PDF OCR SDK from C# source code?
- Call PDF to Text OCR from Web or Windows Service
- How to reserve text layout when I convert from a TIFF file to plain text file?
- Online OCR API, Command Line OCR and Desktop OCR products