EncryptPDFDocument not working

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
DaveSeay
Posts: 3
Joined: Mon Jul 14 2003

EncryptPDFDocument not working

Post by DaveSeay »

I have the interface to the PDF Converter working correctly in our product but tried to add the encryption functionality today and it failed.

I have 2.1 Professional.

I call...
SetLicenseKeyA( 'our company name', 'our activation code')
and this function returns a 1 or TRUE.

I next call...
EncryptPDFDocument('full_path_and_filename, 'apassword', 'apassword', -64 + 4 + 16)
but this returns a 0.

Both passwords are the same at this point.
full_path_and_filename are correct.

An ideas?

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

Post by Joan »

Hello,

I will try this to see if there could be any problem using the same name for the user and owner password.

Meanwhile please try to use a different password for the user or the owner

Thanks.
DaveSeay
Posts: 3
Joined: Mon Jul 14 2003

Post by DaveSeay »

Tried different values for each password but no change.

Thanks,
Dave
DaveSeay
Posts: 3
Joined: Mon Jul 14 2003

Post by DaveSeay »

Joan,
What do I do next? I need this feature!

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

Post by Joan »

Hello Dave,

I tried the EncryptPDFDocument function. It is working, but for one reason or another it is setting the demo passwords. There must be something wrong in the sample application I am using.

You can encrypt the pdf files using Encrypt property of the Active X interface of CDIntf. I tried this and it is working.

I will check further more about the EncryptPDFDocument function.

Hope this helps.
Post Reply