EncryptPDFDocument doesn't work

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
Stefano
Posts: 1
Joined: Wed Nov 12 2003

EncryptPDFDocument doesn't work

Post by Stefano »

I have PDF Document Converter 2.10i developer version.
I'm using Visual Foxpro 8.

I'm trying to protect a pdf file using EncryptPdfDocument.
This is the declaration:
Declare Integer EncryptPDFDocument In CdIntf.dll AS EncryptPdfDocument String szInputFile, String szOwnerPassword, String szUserPassword, Integer Permissions

I set the license key with
SetLicenseKeyA('...', '...')
It returns 1

Then I call the api function as follow
EncryptPdfDocument("c:\temp\test.pdf", '123456', '654321', -64)
It returns 0
The file isn't protect at all but GetLastErrorMsg() returns "The operation completed successfully."

Any idea?

Thanks
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Is you license key for the Professional version of the driver?

If you are not sure please don't post you license key here, send it by e-mail to support@amyuni.com and we will check it.

Thanks.
Post Reply