ocr products

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)
pdf print

Watermarks position in pdf print command line

Good morning,

We have installed Pdfprint version 2.5.

I am currently trying to put a watermark onto our pdf documents when printed. I ideally wanted the watermark in the footer, however when I use wtype 2 I dont get any watermark. I get the same result if I try the header wtype 1.

I am therefore trying to put co-ordinates in for example wx 7500 wy 10000 however I then need different variables for different paper sizes. Is there any reason the header and footer may not be working? Or an easier way to set my co-ordinates, I would be grateful for any help.

Thank you and regards,
====================================
Is this a known problem with the watermark and not a problem we are just facing?

As I am now having to use different co-ordinates instead to place the watermark, is there a command I can use which finds the default paper size of the document, which I can then use to determine which co-ordinates to give the watermark?
====================================
Maybe this is not a "problem", because "wtype 1" and "wtype 2" (header and footer) watermarks are using the absolute co-ordinates, the absolute co-ordinates are difference for different paper size from PDF pages, it is also affected by paper size and DPI resolution of target printer, this is the reason why you need change the X, Y co-ordinates for different PDF files.

We will try to use percentage (scale ratio) for the position of the header and footer watermarks in the next version of pdfprint command line application, for example,

pdfprint.exe -wtext "Watermark" -wtype 1 -wx 10% -wy 10% C:\input.pdf

"percentage" will calculate the co-ordinate automatically, this will solve your problem completely.

Also, pdpfrint.exe hasn't an option to retrieve the paper size from PDF file, the co-ordinates is not affected by PDF paper size only, but also affected by printer's paper size and DPI settings.

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)
docprint pro

print spooler service cause docPrint PDF Printer fail to install

Dear Sir or Madam,
We are experiencing an issue installing docPrintPro v5.0 in our Live server.

Details are:
Product: docPrint Pro
Product version number: docPrint Pro v5.0
Operating system: Windows Server 2003 Standard Edition

We previously bought docPrint Pro v3.3 in 2006.
In our DEV and TEST servers, we first uninstalled docPrint Pro v3.3 and then installed docPrint Pro v5.0 and the new version docPrint Pro v5.0 worked fine.
In LIVE server, we experienced the error "Can't locate docPrint PDF driver printer on this computer. Would you like to download and install it from our web site again?"
We noticed something strange uninstalling previous version docPrint Pro v3.3. There were some error dialogs with RPC errors with some codes and file names, unfortunately I haven't saved the screenshots. Then I installed the new version docPrint Pro v5.0 and when I run it from command prompt I got the attached error.
Could you please assist us with this urgently as it is affecting our live users and preventing them from doing their work?
Many Thanks.
================================================
please run following command line to launch spooler service first, and reinstall docPrint Pro v5.0 to try again,

net start spooler

VeryPDF
================================================
thank you for quick reply.
We found the issue which was caused by the print spooler service which was set up correctly in DEV and TEST to automatic, while in LIVE server was set up to manual. As soon as we changed this setting to automatic in LIVE, your component worked fine in LIVE too.
VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
pdf to image converter

Create Fax TIFF or Class-F files from PDF files

Hi, I am currently testing your demo doc2any command line utility. I am looking to purchase it but am having some trouble with converting a file to a fax type. Can you tell me what the correct syntax would be?

I tried:

C:\doc2any_cmd>doc2any -multipagetif -bitcount 1 -compression 3 xxx.doc xxx.tif

C:\doc2any_cmd>doc2any -multipagetif -bitcount 1 -compression 3 -width 1728 -xres 300 -yres 300 xxx.doc xxx.tif

I need it to be Compression Mode: 3=Group 3 Fax

Thanks.

Customer
==================================
Hi,

you can run following command line to convert your DOC file to Group 3 Fax TIFF file,

doc2any -multipagetif -bitcount 1 -compression 88882 xxx.doc xxx.tif

doc2any -multipagetif -bitcount 1 -compression 88883 xxx.doc xxx.tif

Please don't hesitate to contact us if you have question on this.

Thank you!

Best regards,
VeryPDF
=================================
We are still testing the doc2any converting and are now experiencing a problem with faxing the actual tiff created.

I used the syntax you sent me below (sometimes -useprinter also which made the output document look better)

For ex. doc2any -multipagetif -bitcount 1 -compression 88883 -useprinter xxx.doc xxx.tif

The file does not receive successfully via fax. It worked previously when I was using the compression of 3 and that doesn’t seem to be working either now. Can you please assist me with this?

Customer
==================================
Actually this syntax worked for faxing:

doc2any -multipagetif -bitcount 1 -compression 3 -width 1728 -xres 204 -yres 196 -useprinter xxx.doc  xxx.tif

and this does not:

doc2any -multipagetif -bitcount 1 -compression 88883 -useprinter xxx.doc xxx.tif

can you tell me why?

Customer
===================================
Sorry to be bombarding you with emails but I am also trying out the pdf2image utility and neither syntaxes are working for faxing (I cannot send/receive the fax once it is converted):

Syntax:

c:\pdf2image_cmd\pdf2img.exe -compress 88883 -multipage xxx.pdf xxx.tif

c:\pdf2image_cmd\pdf2img.exe -compress 3 -mono -multipage -xres 204 -yres 196 -w 1728 xxx.pdf xxx.tif

I'm not sure if the dimensions (width / height ) are causing it. Please assist. Thank you.

Customer

========================================
Sorry for the trouble, can you please let us know what error message did you get when you fax the xxx.tif by fax machine? Do you have a TIFF file that faxable by your fax machine?

Thank you!

Best regards,
VeryPDF
=========================================
Regarding the pdf2image, I noticed that the tif that works has a rowsperstrip of 2156, while the one I converted with pdf2image had a value of 25. I have attached the dump of the tif settings, so you can take a look.

My syntax to convert was such to force it to dimensions 1728 x 2156:

C:\>c:\pdf2image_cmd\pdf2img.exe -multipage -mono -compress 3 -xres 204 -yres 196 -w 1728 -h 2156 c:\testfax\xxx.pdf c:\testfax\doc2any\xxx.tif

Good fax:
256(               ImageWidth)   4        1       6c0 (/ 1728)
257(              ImageLength)   4        1       86c (/ 2156)
278(             RowsPerStrip)   4        1       86c (/ 2156)

Bad fax:
256(               ImageWidth)   4        1       6c0 (/ 1728)
257(              ImageLength)   4        1       86c (/ 2156)
278(             RowsPerStrip)   3        1        25 (/ 37)

This fax could not even make it through at all (we did not see a specific error). Please let me know if you can assist with this otherwise we will need to look elsewhere for software.

Customer

===============================
Thanks for your message, we can solve this problem to you, that's no problem.

Thank you!

Best regards,
VeryPDF
=================================
We have created a new version of pdf2img.exe to you, please download it from following URL,

XXXXXXXXXXXXXXXXXX

the new version will set " RowsPerStrip " value to 2156 (same as height), if you have any question for the new version, please feel free to let us know.

Thank you!

Best regards,
VeryPDF
====================================
Thank you but that version does not work either. I was just assuming it was the rowsperstrip but it is probably a few settings. For ex. the xres and yres is different:

BAD FAX settings:

282(              XResolution)   5        1      4a2a (/ 18986)
283(              YResolution)   5        1      4a32 (/ 18994)

GOOD FAX settings:
282(              XResolution)   5        1        fe (/ 254)
283(              YResolution)   5        1       106 (/ 262)

Some other settings that are different:

BAD FAX:
------------------------------

Offset Of first IFD:     44de (/ 17630)
---------------------- Tiff IFD (offset: 0x000044de) ---------------------- number of entries: 17
279(          StripByteCounts)   4        1      44d5 (/ 17621)
297(               PageNumber)   3        2     10001 (/ 65537)

GOOD FAX:
------------------
Offset Of first IFD:        8 (/ 8)
---------------------- Tiff IFD (offset: 0x00000008) ---------------------- number of entries: 20
279(          StripByteCounts)   4        1      2e5a (/ 11866)
297(               PageNumber)   3        2         0 (/ 0)

I do not know so much about faxing formats but I am assuming the dump of the tif formats should be pretty similar. See attached dump files. (doc2anydumptif.txt is good, pdf2imagedumptif is bad). Please if you can compare them yourself and then fix them.

Thank you.

Customer

===============================
Hi,

dumptif.exe does report wrong XResolution and YResolution for output TIFF files, you can use tiffinfo.exe to get the correct XResolution and YResolution from output TIFF files.

e.g.,
E:\>tiffinfo.exe test_fax.tif
TIFF Directory at offset 0x8752 (34642)
Subfile Type: multi-page document (2 = 0x2)
Image Width: 1728 Image Length: 2156
Resolution: 204, 196 pixels/inch
Bits/Sample: 1
Compression Scheme: CCITT Group 3
Photometric Interpretation: min-is-white
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Rows/Strip: 2156
Planar Configuration: single image plane
Page Number: 1-1
PageName: Page 1

Can you please email to us following two TIFF files for checking purpose?

1. a correct TIFF file which can be fixed by your Fax machine,
2. a wrong TIFF file which can't be fixed by your Fax machine,

We will compare these two TIFF files by ourself, we will figure out a solution to you asap.

Please don't hesitate to contact us if you have question on this.

Thank you!

Best regards,
VeryPDF

================================
Attached are 2 tiff files.

Doc2anytest.tif - works
Pdf2imagetest.tif - does NOT work

2 things I noticed that look different -

1) The offset-

TIFF Directory at offset 0x8 (8)
TIFF Directory at offset 0x44de (17630)

And :

2) The pdf2imagetest.tif (broken tiff) is missing some settings:
FillOrder: msb-to-lsb
Group 3 Options: EOL padding (4 = 0x4)

I do not know if any of these are the problem. Please see what you can do. Thank you.

Customer

==================================
Hi,

We have created a new version of pdf2img.exe to you, please download new version from following URL,

XXXXXXXXXXXXXXXXXXXXXXXX

the new version of pdf2img.exe does insert following two items into output TIFF files, will this new version work better for you?

FillOrder: msb-to-lsb
Group 3 Options: EOL padding (4 = 0x4)

We haven't a way to change the "TIFF Directory at offset 0x8 (8)" yet, if this version still not work fine to you, please let us know, we will work on "TIFF Directory at offset 0x8 (8)" shortly.

Please don't hesitate to contact us if you have question on this.

Thank you!

Best regards,
VeryPDF
================================
That worked. Thank you.

Just a question: pdf2image does not allow passing in *.pdf (I think doc2any does allow it). Is there a reason for that?

For ex.

c:\pdf2image_cmd\pdf2img.exe -multipage -mono -compress 3 -xres 204 -yres 196 -w 1728 -h 2156 c:\doc2any_cmd\test\*.pdf c:\doc2any_cmd\test\*.tif



Customer
=============================
Hi,

>>Just a question: pdf2image does not allow passing in *.pdf (I think doc2any does allow it). Is there a reason for that?

You can simple run following command line to batch convert all of your PDF files to TIFF files,

for %F in (D:\temp\*.pdf) do c:\pdf2image_cmd\pdf2img.exe -multipage -mono -compress 3 -xres 204 -yres 196 -w 1728 -h 2156 "%F" "%~dpnF.tif"

Please don't hesitate to contact us if you have question on this.

Thank you!

Best regards,
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)
pdf form filler

Flatten PDF file by PDF Form Filler SDK product

If I have a PDF form and I have an XML file what is the easiest and fastest way to save a flattened PDF form which has the merged XML data in the form?  I want to create a new pdf flattened form as quick as possible and I want to do it programmatically with no user intervention.
================================
Is it possible to flatten the PDF but exclude the first page of the pdf in the flattened file?
================================
>>If I have a PDF form and I have an XML file what is the easiest and
>>fastest way to save a flattened PDF form which has the merged XML data
>>in the form?  I want to create a new pdf flattened form as quick as
>>possible and I want to do it programmatically with no user intervention.

You can call PDFForm_MergeFDFIntoPDF() function to merge FDF and PDF file together, you can call PDFForm_FlattenPDF() function to flatten the PDF file, this method is the easiest and fastest way, for example,

PDFForm_SetLicenseKey("XXXXXXXXXXXXXXX");
bRet = PDFForm_MergeFDFIntoPDF(szInPDFFile, szInFDFFile, szOutPDFFile);
bRet = PDFForm_FlattenPDF(szOutPDFFile,szFlattenPDFFile);


>>Is it possible to flatten the PDF but exclude the first page of the pdf in the flattened file?

PDF Form Filler SDK hasn't an option to exclude the first page of the PDF file during flatten, PDFForm_FlattenPDF() function will flatten the all pages automatically.

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)