Digitally signing a pdf in using Excel VBA
I have a script that successfully populates data from Excel into a form I have created and saves it. However, I'm having difficulty digitally signing the form. The following is old code I found from previous literature and it seems like it should work but it has not yet. Thanks!
strSignFName = "C:\misc\Test.pfx"
Set oSign = objJSO.getField("Test")
' Set oSign = objJSO.getField("Pool Manager Signature")
Set oPpklite = objJSO.Security.getHandler("Adobe.PPKLite", True)
oPpklite.login "Test123", "C:\misc\Test.pfx"
oSign.signatureSign oPpklite
oPpklite.logout
'Create the output path, which will be like C:\Users\Christos\Desktop\Forms\01) First Name Last Name.pdf.
strPDFOutPath = "S:\XXXXX\YYYY\FPU_" & wsF.Cells(i, 7).Value & ".pdf"
'Save the form as new PDF file.
objAcroPDDoc.Save 1, strPDFOutPath
