How to run the powershell script
---------------------------------

SignLib.dll and iTextSharp-4.1.6.dll are available here: ..\SignLib\netframework4.6.2

Note that SignLib.dll with iTextSharp-4.1.6.dll (for PDF signatures) must be placed on the same folder as the .ps1 script and the path must be added on the .ps1 file, as below:

$DllPath = 'SignLib.dll'
[System.Reflection.Assembly]::LoadFrom($DllPath)


#run the script file from command line: 

#performing PDF digital signature
powershell -executionPolicy bypass -file signPdfFile.ps1 test.pdf signedFile.pdf

#performing CAdES digital signature
powershell -executionPolicy bypass -file signInCAdESFormat.ps1 test.pdf signedFile.pdf.p7m

#cerate an Office digital signature 
powershell -executionPolicy bypass -file signOfficeDocument.ps1 test.docx test[signed].docx


