Hello all
I'm using Delphi 7 with an evaluation version of PDF Creator Developer Pro.
My whishes are the following :
- open an existing PDF
- crypt it (40 or 128 bits)
- digitally sign it
- save it
I'm currently comparing PDF Creator with other components in order to sign PDF in batch mode (service).
When I try this with PDF creator, I get an access violation during the DigitalSignature call.
Here is my source code :
PDF1.SetLicenseKey(AMYUNI_LICENCE_COMPANY, AMYUNI_LICENCE_KEY);
PDF1.Open(txtFileName.Text, '') ;
PDF1.Encrypt128('owner', 'user', -64);
PDF1.DigitalSignature('Test signature', 'Test purpose', '', '', 1, 100, 100, 400, 200, 1 + 4 + 32) ;
PDF1.Save(txtFileName.Text + '.signed.pdf', acFileSaveAll);
If I remove the DigitalSignature line call, all is OK and I get a new crypted pdf file.
Do you know what is wrong ?
Thanks in advance
Access violation when trying to add a digital signature
Hello,
The error message is occur because DigitalSignature() function can not access or find the digital signature.
The Digital Signatures option uses the Microsoft signature handler (PPKMS digital signatures types) and the resulting signed documents are viewable in Adobe Reader (windows) versions 4.0 and higher.
Also, the digital signature option of the PDF Converter functions with digital certificates when are store in the “My†or “Personal†store.
Hope this helps?
The error message is occur because DigitalSignature() function can not access or find the digital signature.
The Digital Signatures option uses the Microsoft signature handler (PPKMS digital signatures types) and the resulting signed documents are viewable in Adobe Reader (windows) versions 4.0 and higher.
Also, the digital signature option of the PDF Converter functions with digital certificates when are store in the “My†or “Personal†store.
Hope this helps?
Thanks for your answer.
It's very strange, because Acrobat 6 full is installed on my PC, and I can sign documents directly in Acrobt with my certificate.
I tried DigitalSignature() method with different values of parameters (names, stores, ...) but the result is always the same : error.
I tried on another PC (XP) too, as my own developement PC is on NT4, but it doesn't work better.
From the interactive program PDF Creator, if I open y document and try to interactively sign it, the certificate is present in the combo box. I select it, but the when I click on the Sign button, nothing is done, and no signature is set on the document.
Is that a limit of the evaluation version ?
It's very strange, because Acrobat 6 full is installed on my PC, and I can sign documents directly in Acrobt with my certificate.
I tried DigitalSignature() method with different values of parameters (names, stores, ...) but the result is always the same : error.
I tried on another PC (XP) too, as my own developement PC is on NT4, but it doesn't work better.
From the interactive program PDF Creator, if I open y document and try to interactively sign it, the certificate is present in the combo box. I select it, but the when I click on the Sign button, nothing is done, and no signature is set on the document.
Is that a limit of the evaluation version ?