# Code Samples - Neevia PDFsign/encrypt

## Example 2: Sign a PDF file with an invisible signature - VB.NET Copy

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  Dim NVsign : NVsign = CreateObject("Neevia.PDFsign") NVsign.CertificateSubject = "Test certificate" NVsign.CertificatePassword = "password" NVsign.Reason = "I am the creator of this document" NVsign.Invisible = true Dim retVal : retVal = NVsign.SignPDF("c:\in.pdf","c:\out.pdf") If retVal <> 0 Then MsgBox("Error code=" & CStr(retVal)) Else MsgBox("Done") End If