OpenEx method of IDIDocument

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
Kirill
Posts: 2
Joined: Thu Dec 19 2002

OpenEx method of IDIDocument

Post by Kirill »

I try use the OpenEx method. I pass empty password like as "" but the method arouse error like this "Error opening..." When I replace the OpenEx by Open then all OK. May be it mustn't to use OpenEx with empty password for uncrypted dicument? Where am I wrong?
Thanks Kirill
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I am not sure which version of the PDF Converter you are using.

The Open() method is for pdf files that are not encrypted and do not have a password. OpenEx() is to open files that are encrypted and do have a password.

OpenEx() should not generate an error if you are trying to open an encrypted pdf file where the user password is null, in this case you will specify an emty string as a second parameter for OpenEx().

Hope this helps.
Post Reply