HELP in DIGITAL SIGNATURE

来源:互联网 发布:电视看直播软件 编辑:程序博客网 时间:2024/05/01 07:34

Here is my VB.NET Code :

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        Dim gbStop As Boolean        'local variables        Dim jso As Object        Dim nCount As Integer        ' get JavaScript Object        ' note jso is related to PDDoc of a PDF,        jso = gPdDoc.GetJSObject        ' count        nCount = 0        gbStop = False        ' search for the text        If Not jso Is Nothing Then            ' info            gApp = CreateObject("acroexch.app")            gPdDoc = CreateObject("acroexch.pddoc")            If gPdDoc.Open("c://NoJavaScrip.pdf") Then                jso = gPdDoc.GetJSObject()                jso.SetUserPassword("'13434141022'")                'jso.ShowMyMessage("SetUserDigitalIDPath")                 jso.SetUserDigitalIDPath("'c://GuangWenZhao.pfx'")                jso.app.execMenuItem("ADBESDK:AddSignature")                jso.AddSignature(jso)                gApp.Show()            End If        End If    End Sub

It made The PDF File Like This:

But I Hope The PDF File Like This:

What can I do For This Result?

Thank you !

原创作品出自努力偷懒,转载请说明文章出处http://blog.csdn.net/kfarvid或 http://www.cnblogs.com/kfarvid/