ManniAT said:Hi Guys,
I'm new to iTextSharp (and general PDF devel).
Can anyboy give me some "startup" how to digital sign a PDF document?
As far as I know signed PDFs there are two kinds of.
One is simply signed - and the other one is a "Certified Document".
In Acrobat I get asked (when I am the first signer) if I want to certify the document.
And furtheron - there tow kinds of signing - one is with a visible signature - and one is without it.
My primary goal is to
a.) open an existing PDF
b.) select a certificate from the users CertStore (CryptoAPI)
c.) create a "Certified document" with the selected key
d.) place a visula representation of it on the last page of the document.
Regards
Manfred
Spanish
Muchas gracias amigo, el codigo me sirvió de mucho, lo imprementé de la siguiente manera...
Imports
Imports
Imports
Imports
Imports
Imports
Imports
Imports
Imports
Public
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClickDim m As MemoryStream = New MemoryStream()' which document to open
Dim file As String = ("c:\prueba.pdf")
Dim reader As PdfReader = New PdfReader(file)'
TextBox1.Text = TextBox1.Text & name1
End
Dim outStamper As PdfStamper = New PdfStamper(reader, m)Dim name1 As String = outStamper.AcroFields.GetField("Texto2") 'este es le nombre del campo de texto pdf End Sub Class
System System.IO iTextSharp.text iTextSharp.text.pdf System.Data System.Text System.Drawing System.ComponentModel System.Collections Class Form1
Add your 2¢