Anchor | ||||
---|---|---|---|---|
|
Version
before XFRX 22.0
Symptoms
If password for certificate not is valid, then XFRX dondoesn't close opened the pdf file.
Workaround
Calls method Call the Finish() of method of the internal object oDocumentwriter.:
Code Block |
---|
loSession=EVALUATE([xfrx("XFRX#LISTENER")]) loSession.DigitalSignature("testeqeus.pfx","badpassword") lnRetVal = loSession.SetParams("output.pdf", , , ,.F.,,"PDF") IF lnRetVal<>0 IF INLIST(lnRetVal, -11, -12) loSession.oxfSession.oDocumentwriter.oPDF.Finish() ENDIF ENDIF |
Code Block |
---|
loSession=EVALUATE([xfrx("XFRX#INIT")]) loSession.DigitalSignature("testeqeus.pfx","badpassword") lnRetVal = loSession.SetParams("output.pdf", , , ,.F.,,"PDF") IF lnRetVal<>0 IF INLIST(lnRetVal, -11, -12) loSession.oDocumentwriter.oPDF.Finish() ENDIF ENDIF |