What method/property should I call to set a password...

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
Kris Manche
Posts: 1
Joined: Wed Sep 28 2005
Location: Australia
Contact:

What method/property should I call to set a password...

Post by Kris Manche »

Currently we use this to create files for our clients to send to vendors.... One has asked to password protect the output....

What call to a member or property should I use...
in the form of
PDFConverter.SetPassowrd('Passwordtext')...

Any ideas please and thank you?

Code Example:
PDFConverter.DriverInit('Navision PDF Converter');
PDFConverter.FileNameOptions(3);
PDFConverter.DefaultDirectory(ENVIRON('TEMP') + '\');
PDFConverter.SetDefaultPrinter;
.
PDFConverter.DefaultFileName(TempFileName);
.
PDFConverter.FileNameOptions(0);
PDFConverter.RestoreDefaultPrinter;
Smile, you don't know who is watching :)
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

You can protect the PDF file after generating it or while generating it.

You need to use the Encrypt function of CDIntf.Document to encrypt a pdf file after it is gnerated.

You will find more information about this function in the Developers' manual.

Please note that to use the Encryption function you need to have the Professional version of the PDF Converter.

Hope this helps.
Post Reply