Hello,
The problem could be in the document itself.
If this document is not generated by our tools please send it to support@amyuni.com along with the code you are using and our support team will check if there is a problem with the document.
Regards,
Digital Signature
Re: Digital Signature
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html
Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
Re: Digital Signature
I've got a new, valid smart card, and with many utilities I'm able to select my certificate (after giving PIN) and sign the PDF. But the library (and the digisign test utility) seems to consider only certificate present into the machine store..
Can you please tell me how to use smart card cert ?
TIA
Can you please tell me how to use smart card cert ?
TIA
Re: Digital Signature
I've solved the problem related to invisible certificate ( CSP problems with XP SP3), now I'me able to sign from Adobe Acrobat and your utility show the two items on smart card
1) Using digisign_test I can see my name surname, scope all, valid for 3 years, if I press OK the error "Key usage does not contain flag 0x80"
2) same but pressing Cancel "Cannot select a certificate from the store
3) Choosing "View cert" show all information
(maybe this help to understand)
Ive used
try
{
EXTDOCHANDLE hDocument = NULL;
nRetValue = DocOpenA( &hDocument, lpFileName, lpFilePwd);
if ( nRetValue == 0)
nRetValue = DocDigitalSignatureA( &hDocument, lpSigner, lpReason, NULL, lpLocation, 0, 0, 0, 0, 0, 7);
if ( nRetValue == 0)
nRetValue = DocSaveA( &hDocument, sOutputFile);
DocClose( &hDocument);
}
( all values passes to DocDigitalSignatureA(..) are valid string, I've doubled checked my name... and after DocOpenA() the handle is changed to a believable value)
but nRetvalue is -1000 that is not listed under standard errors (where are error codes ?)
What does it mean ?
Feel free to ask any information needed to solve this.
P.S. One doubt... the PIN code needed to access the certificate is asked by your function ?
1) Using digisign_test I can see my name surname, scope all, valid for 3 years, if I press OK the error "Key usage does not contain flag 0x80"
2) same but pressing Cancel "Cannot select a certificate from the store
3) Choosing "View cert" show all information
(maybe this help to understand)
Ive used
try
{
EXTDOCHANDLE hDocument = NULL;
nRetValue = DocOpenA( &hDocument, lpFileName, lpFilePwd);
if ( nRetValue == 0)
nRetValue = DocDigitalSignatureA( &hDocument, lpSigner, lpReason, NULL, lpLocation, 0, 0, 0, 0, 0, 7);
if ( nRetValue == 0)
nRetValue = DocSaveA( &hDocument, sOutputFile);
DocClose( &hDocument);
}
( all values passes to DocDigitalSignatureA(..) are valid string, I've doubled checked my name... and after DocOpenA() the handle is changed to a believable value)
but nRetvalue is -1000 that is not listed under standard errors (where are error codes ?)
What does it mean ?
Feel free to ask any information needed to solve this.
P.S. One doubt... the PIN code needed to access the certificate is asked by your function ?

Davide Zaccanti