here is my VB. NET code:
Private sub button#click (byval sender as system. object, byval e as system. eventargs) handles button1.click </P> <p> dim gbstop as Boolean </P> <p> 'local variables </P> <p> dim JSO as object </P> <p> dim ncount as integer </P> <p> 'get JavaScript Object </P> <p> 'note JSO is related to pddoc of a PDF, </P> <p> JSO = gpddoc. getjsobject </P> <p> 'count </P> <p> ncount = 0 </P> <p> gbstop = false </P> <p> 'search the text </P> <p> if not JSO is nothing then </P> <p> 'info </P> <p> GAPP = Createobject ("acroexch. APP ") </P> <p> gpddoc = Createobject (" batch exch. pddoc ") </P> <p> If gpddoc. open ("C: // notescrip.pdf") Then </P> <p> JSO = gpddoc. getjsobject () </P> <p> JSO. setuserpassword ("'000000'") </P> <p> 'jso. showmymessage ("setuserdigitalidpath") </P> <p> JSO. setuserdigitalidpath ("'C: // guangwenzhao. pfx' ") </P> <p> jso.app.exe cmenuitem (" adbesdk: addsignature ") </P> <p> JSO. addsignature (JSO) </P> <p> GAPP. show () </P> <p> end if </P> <p> 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!
Original Works are from hard work, please describe them for reprintingArticleSource:Http://blog.csdn.net/kfarvidOrHttp://www.cnblogs.com/kfarvid/