@@ -26,6 +26,9 @@ static void Main(string[] args)
2626 String sLogo = Library . ResourceDirectory + "Sample_Input/ducky_alpha.tif" ;
2727 String sOutput = "DigSig-out.pdf" ;
2828
29+ String sDERCert = Library . ResourceDirectory + "Sample_Input/Credentials/DER/RSA_certificate.der" ;
30+ String sDERKey = Library . ResourceDirectory + "Sample_Input/Credentials/DER/RSA_privKey.der" ;
31+
2932 if ( args . Length > 0 )
3033 sInput = args [ 0 ] ;
3134
@@ -49,12 +52,12 @@ static void Main(string[] args)
4952 // Set credential related attributes
5053 sigDoc . DigestCategory = DigestCategory . Sha256 ;
5154 sigDoc . CredentialDataFormat = CredentialDataFmt . NonPFX ;
52- sigDoc . SetNonPfxSignerCert ( "Credentials/DER/RSA_certificate.der" , 0 , CredentialStorageFmt . OnDisk ) ;
53- sigDoc . SetNonPfxPrivateKey ( "Credentials/DER/RSA_privKey.der" , 0 , CredentialStorageFmt . OnDisk ) ;
55+ sigDoc . SetNonPfxSignerCert ( sDERCert , 0 , CredentialStorageFmt . OnDisk ) ;
56+ sigDoc . SetNonPfxPrivateKey ( sDERKey , 0 , CredentialStorageFmt . OnDisk ) ;
5457
5558 // Setup the signer information
5659 // (Logo image is optional)
57- sigDoc . SetSignerInfo ( sOutput , 0.5 , "John Doe" , "Chicago, IL" , "Approval" , "Datalogics, Inc." ,
60+ sigDoc . SetSignerInfo ( sOutput , 0.5F , "John Doe" , "Chicago, IL" , "Approval" , "Datalogics, Inc." ,
5861 DisplayTraits . KDisplayAll ) ;
5962
6063 // Set the size and location of the signature box (optional)
0 commit comments