docprint pro

Some Questions to docPrint PDF Driver

Ignore my prior Emails.  Here are my questions and then I'll be ready to purchase shortly:

I have successfully gotten this to work but I have some more questions:

1.  How can I know when a document is done printing and the PDF has been created?  I'm going to want to rename it but I need to know when it is done printing.  Code continues even if I issue a DOEVENTS because it's being sent to the print spooler I think.

2.  Is there a way to set these values without modifying the registry?  I'm wondering what happens on Vista or Windows 7 if the User Access Control is turned on.  Is there a way to modify these HKEY_CURRENT_USER printer settings in a file and have the Very PDF printer use defaults from a file instead of the registry?

3.  How will my client's Very PDF printer know it is not a Trial or does this happen automatically when my program with the SDK registers the printer on their workstation?

4.  If I purchase the SDK then am I able to redistribute to unlimited number of client workstations?

5.  In addition to the four questions below, is there a Help file or documentation on all the registry items or features for the SDK?

6.  How would I use this command and is there documentation or help file for properties and methods:   docPrint = CreateObject("DocPrintCom.docPrint")

7.  I noticed when printing that there's a dialog displayed on the screen showing what page is currently being printed to the PDF printer.  Is there a way to not display this?

8.  Can you provide me the information as to what files I copy to my client test machines which I would provide to clients of mine for the Doc Pro?  I want to test this on my Vista and Windows 7 workstations.

Once I have figured all this out I'm going to buy this SDK and I'll then want to inquire on another one you may have for another project.

Thank you again.
======================================
>>1.  How can I know when a document is done printing and the PDF has been created?
>>I'm going to want to rename it but I need to know when it is done printing.  Code
>>continues even if I issue a DOEVENTS because it's being sent to the print spooler I think.

You can check the value of "PrintingStatus" in registry,

HKEY_CURRENT_USER\Software\verypdf\pdfcamp
PrintingStatus=??

Please refer to the meaning of "PrintingStatus" item at below,

//a. PrintingStatus = 0, idle flag, you can print the document now
//b. PrintingStatus = 1, a document is printing
//c. PrintingStatus = 2, a document is printed successfully (Set after a PDF file is generated successfully)
//d. PrintingStatus = 3, a document failed to be printed. (Error condition, Detailed error message should be written in MessageLog)

After you sent a document to docPrint PDF Driver, you can check the value of " PrintingStatus " in a loop, after " PrintingStatus " is not equal to 1, it is indicate conversion be done completely.

>>2.  Is there a way to set these values without modifying the registry?  I'm wondering >>what happens on Vista or Windows 7 if the User Access Control is turned on.  Is
>>there a way to modify these HKEY_CURRENT_USER printer settings in a file and
>>have the Very PDF printer use defaults from a file instead of the registry?

The current version of docPrint Pro v5.0 is not support configuration file yet, however, it can be done easily to use disk file to instead of registry, after you purchased the product, please email to your Order ID, we will create a new version of docPrint Pro product to you free, we will use disk file to instead of registry in the new version, we hoping this solution will okay to you.

>>3.  How will my client's Very PDF printer know it is not a Trial or does this happen automatically when my program with the SDK registers the printer on their workstation?

After you purchased docPrint SDK product, you will get a license key, please set the license key to " RegisterNO " in registry, docPrint Pro will be registered automatically,

HKEY_CURRENT_USER\Software\verypdf\pdfcamp
RegisterNO="Your License Key"

After we use disk file to instead of registry, you can set the license key value into disk file properly too.

>>4.  If I purchase the SDK then am I able to redistribute to unlimited number of client workstations?

Yes, you are right.

>>5.  In addition to the four questions below, is there a Help file or documentation on all the registry items or features for the SDK?

We haven't a Help file or documentation for all registry items at the moment, we will prepare a document for all registry items shortly, I will send this document to you as soon as it available. In the meantime, if you have any question for the registry items, please feel free to let me know, I will explain it to you asap.

>>6.  How would I use this command and is there documentation or help file for properties and methods:   docPrint = CreateObject("DocPrintCom.docPrint")

You can use docPrint = CreateObject("DocPrintCom.docPrint") from ASP or VB or VB code, please refer to following sample VB code,

~~~~~~~~~~~~~~~~~
Dim sourcePath,destinationPath,exeApp,strCmd,strFolder

sourcePath = "https://www.verypdf.com"
strURL = InputBox("Input a URL or a filename for conversion:", "docPrint Pro", sourcePath)
If strURL = "" Then
WScript.Quit
Else
sourcePath = strURL
End if

Set fso = CreateObject("Scripting.FileSystemObject")
strFolder = fso.GetParentFolderName(wscript.ScriptFullName)

destiantionPath = strFolder & "\verypdf.pdf"

strCmd = " -i """ & sourcePath & """ -o """ & destiantionPath & """ -* XXXXXXXXXXXXXX"

MsgBox strCmd

Set docPrint = CreateObject("DocPrintCom.docPrint")
nRet = docPrint.docPrintCOM_Register("XXXXXXXXXXXXXX", "VeryPDF.com Company")
nRet = docPrint.RunCmd(strCmd, 0)
'MsgBox "Return value = " & Str(nRet)
~~~~~~~~~~~~~~~~~

>>7.  I noticed when printing that there's a dialog displayed on the screen showing
>>what page is currently being printed to the PDF printer.  Is there a way to not display this?

This printing dialog is not shown in our product, it is maybe shown by your XXXX ActiveX control, you need hide this printing dialog from your XXXX ActiveX control.

>>8.  Can you provide me the information as to what files I copy to my client test >>machines which I would provide to clients of mine for the Doc Pro?  I want to test this >>on my Vista and Windows 7 workstations.

You can copy all files in the "C:\Program Files\docPrint Pro v5.0\psdriver" folder and its sub-folders to client's machine.

You can use following solution to Install/Uninstall docPrnt PDF Driver programmatically,

~~~~~
Please go to "C:\Program Files\docPrint Pro v5.0\psdriver" folder, you can run "setup.exe" and "unpdf.exe" to install and uninstall docPrint PDF Driver.
~~~~~

VeryPDF
======================================

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
docprint pro

Can’t add second printer by docPrint PDF Driver

We faced one more issue:
For some users printer is not getting installed when we try to install it by using the following command: pdfconfigcmd.exe -addprinter -printer "Printer 1". It is not appeared in the Printers list and pdfconfigcmd.exe doesn't return any error codes. If we try to run this once again it believes that the printer is installed and does nothing, I see the following output:

C:\Program Files\pdfprinter>pdfconfigcmd.exe -addprinter -printer "Printer 1"
OK, found printer port.
OK, found Printer Driver 'Printer 1'.
Checking 'Printer 1' printer.
"Printer 1" printer is already installed, we will do nothing now.

But we still don't see printer in the printer list.

At the same time if I run Setup.exe - everything is fine, printer is installed and I can see and use this printer without any problems. So it seems there something different in the installation actions performed by pdfconfigcmd.exe and setup.exe. For some reason setup.exe can install the printer but pdfconfigcmd.exe cannot.

Unfortunately I cannot provide remote access to the PC where it can be replicated, it is another company, I asked them to send me setup log but it seems there nothing interesting, anyway attached it.

One more thing: all these users are located in one company, so the issue may be related to some specific privileges/rules defined for their network, but we cannot deeply investigate it because we don't have access to their network. Any way key thing here as I see we have all permissions to install printers because everything is working fine in case we are running Setup.exe, so there definitely something different in the actions performed by Setup.exe and pdfconfigcmd.exe to install the printer.

Please investigate it, and let me know if I can provide any additional information that may help.
==================================
This is a strange problem, please set outlog=Yes in the config.ini file, and run following command line with administrator privilege again,

pdfconfigcmd.exe -addprinter -printer "Printer 1"

if you still can't install printer properly, please open setup.log file, this log file contains detailed log message, we hoping this log file will helpful for you and us to find out where is wrong quickly.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: -1 (from 1 vote)
pdf compressor, pdf optimizer

Enable Fast Web View with Advanced PDF Tools Command Line v3.0

i am now trying to enable fast web view on my PDF with using Advanced PDF Tools Command Line v3.0 it seems that there exists 2 parameters i can use,

1. "linearize=true"
2. "-!" "True"

in case 1,  while i put the converted output onto web server and open it within browser, the runtime error prompted for acrobat reader

in cass 2, the document doesn't show error, however, it seems that the document still can only be shown after the whole document is downloaded (the document property "fast web view" is set to "yes")

is there any problem on my document conversion?

my command line used is shown in below

pdftools -S "linearize=true" -i a.pdf -o a_out1.pdf pdftools -i a.pdf -o a_out2.pdf "-!" "True"
==============================
pdftools is not a professional software to linearize PDF file, however, we suggest you may download PDF Optimizer (PDF Linearizer) Command Line v2.0 from our website to try, PDF Optimizer (PDF Linearizer) does Enable Fast Web View to PDF files properly.

You can download PDF Optimizer from following URL,

https://www.verypdf.com/pdfinfoeditor/pdfoptimizer.htm

https://www.verypdf.com/pdfinfoeditor/pdfopt.zip

after you download and unzip it to a folder, you can run following command line to optimize and compress your PDF file,

pdfopt.exe -mode 4 test.pdf out.pdf

we hoping PDF Optimizer will work fine to you, please download it to try.

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

One more bug found in docPrint PDF Driver

One more bug found: When I attempt to print a file with a Long name it gets terminated. Total No of characters = 228
=======================
Thanks for your message, can you please let me know how can I reproduce your problem in our system? Can you please email to us the sample document in question for test purpose?

VeryPDF
=======================
You can just get any PDF document, place it in the root of C: drive, rename it to be as many characters as possible, for example DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD.pdf ?, open in acrobat reader and attempt to print.

Let me know if you still cannot reproduce this problem.
=======================
We have find out the reason of this problem, we are using fopen() function to create the file, fopen() will fail if the length of filename longer than 256 characters, so, your filename + filepath can’t longer than 256 characters, please understand this matter.

We suggest you may rename this long filename to a short filename before printing, is this okay to you?

VeryPDF
=======================
In my case it fails even if [drive name] + [path] + [file name] less than 256 characters. For example if I place the document with name [240 characters name].pdf to root of C: drive , so it will be 3+240+4=247 characters it still doesn’t work. Are you creating temp file somewhere in temp directory? So temp path is added to this file name?
=======================
Yes, you are right, we are create the temp file in the temp directory, maybe the length of temp path + temp file more than 256 characters, so it will cause fopen() function failed. You can check the log message in the setup.log file, we hoping this log message will helpful to you.

VeryPDF
=======================
Ok, got it. So why do we need to create completely the same file name in the temp directory? Is it possible to create file with any name (use GUID for example)? Because we don’t know which files users attempt to print, and if user prints file which is located in the root of drive it may be up to 250 characters. In this case print job just deleted without any errors, it looks strange and may cause additional questions from users. Sa my proposal would be to create temp file name and provide correct name of the document in to printJobStarted function.
=======================
We have solved long filename problem to you, please download new version of pdfcp.exe from following URL,

XXXXXXXXXXXXXX

please use new version of pdfcp.exe to overwrite old version, this problem will be solved properly.

VeryPDF
=======================
Now here is another problem: in case of long file name it is replaced to be something like pdfXXXX, that is fine, but this name is also translated as a print job name in to printJobStarted function – that is wrong. In the printJobStarted we should receive original print job, name, not pdfXXXX, because it will be shown to user.
=======================
We have solved this problem to you, please download new version of pdfcp.exe from following URL to try again,

XXXXXXXXXXXXXXXXXX

because we have printJobStarted DLL Library, so we can’t test printJobStarted function easily, if you encounter any problem, please email to us the setup.log file, after we checked this log file, we will come back to you asap.

VeryPDF
=======================
Unfortunately it still doesn't work. Now I'm getting print job name "Output". Please see attached log.
=======================
We have solved this problem to you, please download new version of pdfcp.exe from following URL to try again,

XXXXXXXXXXXXXXXXXX

if you still have same problem, please email to us the log file, then we will come back to you asap.

VeryPDF
=======================
Sorry for long delay, had a couple of days off .. Here is my update:
1. Regarding this issue - now it looks fixed. The only difference I found - now it provides more information into printJobStarted. For example if previously when I print from notepad it was just file_name, now it looks like notepad - file_name. In general it's OK, but if it is not a big deal would be better to fix this as well. Just to avoid additional questions from customers. Like why my print job names changed? 🙂

2. Issue related to installation (I sent it in past) - unfortunately we could not get customer verifying solution you proposed (stop/start net spooler). So I was needed to implement some work around for this like: 1) try to install printer by using pdfconfigcmd.exe. 2) Verify if printer is installed, and if not run setup.exe/setupx64.exe. It seems to be working but in future we may get issues with this solution once we are attempting to install second printer. Because setup deletes all other installed printers. So if you have any ideas why it may happens please let me know. Probably it would be better to modify setup.exe/unpdf.exe to install/remove only specific printer and not affect other printers installed in system?

3. When working with the issue related to having 2 empty extra pages in the end of printer document (remember we had this problem when Cute PDF is installed in the system because pdfcp.eex used installed ghostscript instead of from local folder) - I figured out that when we installing XXX PDF, it doesn't require administrative privileges to install/remove printer - so my question is do we definitely need admin rights to install our printer? It seems printer can be installed without having administrative privileges, at least other software can do this. So, can we please double check - do we definitely need this?
=======================
1). OK, fixed this problem, now the filename is become "file_name" to instead of "notepad - file_name".

Please download the new version of pdfcp.exe from following URL to try again,

XXXXXXXXXXXXXXXX

2). Thanks for your message, in fact, after pdfconfigcmd.exe install the printer, it will use OpenPrinter() function to try open the target printer, if it can’t open the target printer, it will print the error message, this will ensure target printer is installed properly.

Do you have a way to reproduce this problem in your system? If yes, you may run Teamviewer application on your test machine, we will assist you to analyse where is wrong in your system, is this okay to you?

Also, setup.exe/setupx64.exe/unpdf.exe/unpdfx64.exe will delete all installed printers, they will delete print port and printer drivers too, we feel difficult to change them to delete just one printer only, please understand. However, we will assist you to analyse where is wrong in the pdfconfigcmd.exe, we sure this problem can be solved in a short time.

3). As far as I know, you have to use administrator privilege to install the printer, because installer will copy some necessary files into your system, if installer hasn’t administrator privilege, it can’t copy these files into system properly.

You can also refer to AddPrinter Function at following web page,

http://msdn.microsoft.com/en-us/library/dd183343%28v=VS.85%29.aspx

~~~~~~~~~~~~~~~~~
Note:  This is a blocking or synchronous function and might not return immediately. How quickly this function returns depends on run-time factors such as network status, print server configuration, and printer driver implementation—factors that are difficult to predict when writing an application. Calling this function from a thread that manages interaction with the user interface could make the application appear to be unresponsive.

The caller must have the SeLoadDriverPrivilege.
~~~~~~~~~~~~~~~~~

Microsoft is said AddPrinter Function must have the SeLoadDriverPrivilege.

However, I will research XXX PDF's product shortly, maybe they are using a different method to bypass the administrator privilege.

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 to text converter

PDF2TXT v3.2 keeps crashing on windows 7 professional 64bit system

I am running windows 7 professional on a 64bit hp pavilion dm4 and the trial program keeps crashing.
=======================
Is this problem appear on a special PDF file only? Or is it crash on all of your PDF files? If your crash problem is appear on a special PDf file only, please email that PDF file to us, after we checked that PDF file, we will figure out a solution to you shortly.

VeryPDF
=======================
It crashes after I select "open" and attempt to change the folder.   One click and crash.  There is no opportunity to select a file.
=======================
You can drag and drop PDF files from Windows Explorer to PDF2TXT software's window, your PDF files will be converted to text files automatically. Can you work fine by drag and drop operation?

You can also convert your PDF file to text file by command line method, please run following command line to convert your PDF file to text file to try again, (-breaker parameter will insert page breaker into converted .txt file)

"C:\Program Files\VeryPDF PDF2TXT v3.2\pdf2txt.exe" C:\in.pdf C:\out.txt -unicode -breaker

You can also run following command line to convert PDF file to text file without page breaker symbols,

"C:\Program Files\VeryPDF PDF2TXT v3.2\pdf2txt.exe" C:\in.pdf C:\out.txt -unicode

We hoping above methods will work better for you, please to try.

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)