What's the difference between veryOpen and veryOpenEx functions in PDFStamp SDK product?

Hi,

Continue to this article,

http://www.verypdf.com/wordpress/201701/how-to-use-pdfstamp-com-interfaces-how-to-install-pdfstamp-sdk-into-my-system-43273.html

Further to my email just a few minutes ago, I have it working now, so please ignore most of that email, my remaining questions are only:

1. I notice in the manual that the command is veryOpen, but in your example it is veryOpenEx? Do I need to add Ex to all the commands in the manual?

2. In the manual for veryOpenEx it says that to stamp the original document the second parameter should be NULL, but I have not found a syntax that works, I tried omitting the second parameter, with and without the comma, setting it to NULL , but I only got errors. What is the syntax in this case?

Thanks in advance for your help.

Regards,
Customer
----------------------------------------
Hi,

Thanks for the detailed information, I am further along but not fully working.

I confirm that I am only working in 64 bit (i.e. Win Server 2012 R2 and IIS 8.x 64 bit, classic asp).

PDFstampCOM is registered, when I run a modified version of your test code (as you provided below) with error reporting I can see that the object is created and is not empty.

But after pdfstamp.VeryOpenEx the error code is -1 which I understand from the manual means "Open the PDF file Failed".

The pdf file I am using is within the website folder structure so that IIS can access it i.e.

id = pdfstamp.veryOpenEx("C:\QMS\doc\test_IN.pdf", "C:\QMS\doc\test_OUT.pdf")

Is the error message referring to the input file or could it be referring to the output file (which does not exist)?

Can you see anything wrong with that command?

Could it be something to do with permissions?

As it is a webserver, should the name not include the Drive letter and Web root folder?

On another topic I notice in the manual that the command is veryOpen, but in your example it is veryOpenEx? Do I need to add Ex to all the commands in the manual?

In the manual for veryOpenEx it says that to stamp the original document the second parameter should be NULL, but I have not found a syntax that works, I tried omitting the second parameter, with and without the comma, setting it to NULL or "NULL", but I only got errors.

Thanks in advance for your help.

Regards,
Customer
----------------------------------------
>>But after pdfstamp.VeryOpenEx the error code is -1 which I understand from the manual means "Open the PDF file Failed". The pdf file I am using is within the website folder structure so that IIS can access it i.e.
>>id = pdfstamp.veryOpenEx("C:\QMS\doc\test_IN.pdf","C:\QMS\doc\test_OUT.pdf")
>>Is the error message referring to the input file or could it be referring to the output file (which does not exist)? Can you see anything wrong with that command? Could it be something to do with permissions?

Maybe pdfstamp COM hasn't read permission to "C:\QMS\doc\test_IN.pdf" file, you may write a VBS code to call following code to try again,

id = pdfstamp.veryOpenEx("C:\QMS\doc\test_IN.pdf", "C:\QMS\doc\test_OUT.pdf")

Can you get it work outside of IIS? if yes, it is indicate this problem caused by IIS permission problem, you may give enough permissions to PDFStamp COM to try again.

If you don't know how to give enough permissions to PDFStampCom.exe, please look at following web page for more information,

http://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

>>As it is a webserver, should the name not include the Drive letter and Web root folder?

Yes, you need include the Drive letter and Web root folder.

>>On another topic I notice in the manual that the command is veryOpen, but in your example it is veryOpenEx? Do I need to add Ex to all the commands in the manual?

veryOpen() function is provided by pdfstamp.dll library.
veryOpenEx() function is provided by PDFStampCom.exe and PDFStampOcx.dll COM Components.

If you will use the pdfstamp.dll library, you need use veryOpen() function.
If you will use the PDFStampCom.exe and PDFStampOcx.dll COM Components, you need use veryOpenEx() function.

>>In the manual for veryOpenEx it says that to stamp the original document the second parameter should be NULL, but I have not found a syntax that works, I tried omitting the second parameter, with and without the comma, setting it to NULL or "NULL", but I only got errors.

You can use following code to try again,

id = pdfstamp.veryOpenEx("C:\QMS\doc\test_IN.pdf", 0)

OR

id = pdfstamp.veryOpenEx("C:\QMS\doc\test_IN.pdf", NULL)

OR

id = pdfstamp.veryOpenEx("C:\QMS\doc\test_IN.pdf", "C:\QMS\doc\test_IN.pdf")

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 PDF Stamp 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!