See http://itextpdf.sourceforge.net/howtosign.html#signextdiccms. Replace signedData.getEncoded() with your pkcs7.
Paulo > -----Original Message----- > From: amcereijo cereijo [mailto:[email protected]] > Sent: Wednesday, April 22, 2009 3:21 PM > To: [email protected] > Subject: Re: [iText-questions] Add sign to pdf > > > > First, thanks to all. > Second, i have seen that in data base is stored the pk7 file > thath containst a certificate. > Well, i have seen some examples of itext but i don´t know how > to add this digital sign or to sign a pdf file whith this pk7 file. > > Thanks again, Ángel. > > > > > > > Message: 6 > Date: Tue, 21 Apr 2009 13:52:57 -0700 > From: Leonard Rosenthol <[email protected]> > Subject: Re: [iText-questions] Add sign to pdf > To: Post all your questions about iText here > <[email protected]> > Message-ID: <c613fec9.4ee97%[email protected] > <mailto:c613fec9.4ee97%[email protected]> > > Content-Type: text/plain; charset="iso-8859-1" > > A signature includes a certificate - that's how the > technology works. If you don't have the certificate - you > can't sign ANYTHING. (not a PDF issue, but a Digital > Signature issue). > > Leonard > > > On 4/21/09 5:38 PM, "amcereijo cereijo" > <[email protected]> wrote: > > Sorry, my english is very bad. > I want to know if it?s possible add a sign to a pdf file. > I?m not access to certificate, i only have the content > of the sign (bytes[]) and i want to add this content to pdf file. > > I hope that you can understant me. > > Thanks, ?ngel. > > > > Message: 2 > Date: Tue, 21 Apr 2009 15:32:42 +0200 > From: 1T3XT info <[email protected]> > Subject: Re: [iText-questions] Add sign to pdf > To: Post all your questions about iText here > <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > amcereijo cereijo wrote: > > Hi, now is possible to add a sign saved in a data > base to pdf file?. The > > sign saved is the result to signed the pdf file in a > external plataform. > > I don't understand the question. > > Are you talking about digital signatures? > Or just about a "sign", some "image"? > You'll have to clarify. > > Try explaining what you want to do in pseudo code. > Maybe that will be easier for us to understand. > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info > > > > > > > -- > Leonard Rosenthol > PDF Standards Architect > Adobe Systems Incorporated > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 7 > Date: Tue, 21 Apr 2009 14:28:32 -0700 (PDT) > From: mkl <[email protected]> > Subject: Re: [iText-questions] Add sign to pdf > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=UTF-8 > > > Maybe you should post some code representing a short > form of what you > actually currently do as was already suggested before. > > Your sentence "The sign saved is the result to signed > the pdf file in a > external plataform" from your first message might be > interpreted in the way > that you have an external signature for the PDF and > somehow want to make it > an integrated one. If this is the case, you > unfortunately are out of luck as > integrated signatures require the PDF document to be > prepared in a certain > way and the digest value to be calculated from certain > parts of this > prepared document. > > > amcereijo cereijo wrote: > > > > Sorry, my english is very bad. > > I want to know if it?s possible add a sign to a pdf file. > > I?m not access to certificate, i only have the > content of the sign > > (bytes[]) and i want to add this content to pdf file. > > > > I hope that you can understant me. > > > > Thanks, ?ngel. > > > > > >> Message: 2 > >> Date: Tue, 21 Apr 2009 15:32:42 +0200 > >> From: 1T3XT info <[email protected]> > >> Subject: Re: [iText-questions] Add sign to pdf > >> To: Post all your questions about iText here > >> <[email protected]> > >> Message-ID: <[email protected]> > >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >> > >> amcereijo cereijo wrote: > >> > Hi, now is possible to add a sign saved in a data > base to pdf file?. > >> The > >> > sign saved is the result to signed the pdf file in > a external > >> plataform. > >> > >> I don't understand the question. > >> > >> Are you talking about digital signatures? > >> Or just about a "sign", some "image"? > >> You'll have to clarify. > >> > >> Try explaining what you want to do in pseudo code. > >> Maybe that will be easier for us to understand. Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
