1- using Syncfusion . DocIO ;
1+ using Syncfusion . DocIO ;
22using Syncfusion . DocIO . DLS ;
33using Syncfusion . Office ;
44
@@ -10,7 +10,7 @@ static void Main(string[] args)
1010 {
1111 // Opens an existing Word document and adds signature lines.
1212 Dictionary < Guid , string > signatureInfo ;
13- using ( WordDocument document = new WordDocument ( Path . GetFullPath ( @"Data\ Template.docx" ) ) )
13+ using ( WordDocument document = new WordDocument ( Path . GetFullPath ( @"Data/ Template.docx" ) ) )
1414 {
1515 // Gets the last section of the document.
1616 IWSection section = document . LastSection ;
@@ -24,9 +24,9 @@ static void Main(string[] args)
2424 // Defines the signature images corresponding to each signer.
2525 string [ ] images =
2626 {
27- Path . GetFullPath ( @"Data\ TonySignature.png" ) ,
28- Path . GetFullPath ( @"Data\ SteveSignature.png" ) ,
29- Path . GetFullPath ( @"Data\ BruceSignature.png" )
27+ Path . GetFullPath ( @"Data/ TonySignature.png" ) ,
28+ Path . GetFullPath ( @"Data/ SteveSignature.png" ) ,
29+ Path . GetFullPath ( @"Data/ BruceSignature.png" )
3030 } ;
3131
3232 // Adds a signature line for each signer.
@@ -54,17 +54,17 @@ static void Main(string[] args)
5454 }
5555
5656 // Saves the document after adding the signature lines.
57- document . Save ( Path . GetFullPath ( @"Output\ Result.docx" ) , FormatType . Docx ) ;
57+ document . Save ( Path . GetFullPath ( @"Output/ Result.docx" ) , FormatType . Docx ) ;
5858 }
5959
6060 // Loads the signing certificate.
6161 OfficeDigitalSignatureCertificate certificate =
6262 new OfficeDigitalSignatureCertificate (
63- Path . GetFullPath ( @"Data\ certificate.pfx" ) ,
63+ Path . GetFullPath ( @"Data/ certificate.pfx" ) ,
6464 "password123" ) ;
6565
6666 // Opens the saved document to sign each signature line.
67- using ( WordDocument document = new WordDocument ( Path . GetFullPath ( @"Output\ Result.docx" ) ) )
67+ using ( WordDocument document = new WordDocument ( Path . GetFullPath ( @"Output/ Result.docx" ) ) )
6868 {
6969 // Signs each signature line using its corresponding signature image.
7070 foreach ( KeyValuePair < Guid , string > item in signatureInfo )
@@ -81,7 +81,7 @@ static void Main(string[] args)
8181 }
8282
8383 // Saves the signed document.
84- document . Save ( Path . GetFullPath ( @"Output\ Result.docx" ) , FormatType . Docx ) ;
84+ document . Save ( Path . GetFullPath ( @"Output/ Result.docx" ) , FormatType . Docx ) ;
8585 }
8686 }
8787 }
0 commit comments