> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Eneko González Benito
> Sent: Monday, January 21, 2008 2:45 PM
> To: [email protected]
> Subject: [iText-questions] Two questions: External signature 
> and PDF parsing
> 
> Hi all,
> 
> I've been reading this mailing list archives' for a week and 
> i have two questions that i don't have so clear. I've been 
> using itext for a long time but only  for local signatures, 
> so i'm stuck. I hope you can help me with these...
> 
> #1.- I'm working in a project that has to sign a PDF with a 
> external signature (PDF is in the server, certificate in the 
> browser). I've no problem accesing the certificate, because 
> this project in windows and jdk 6 based, so i can access it 
> through "Windows-My". I´ve taken a look at the external 
> signatures samples 
> (http://itextpdf.sourceforge.net/howtosign.html) but i can't 
> make my code work, because i don't have any private key to 
> call mySignatureAppearance.setCrypto method... ¿how can i do this?
> 
> I've also read that the hash is different each time, so you 
> couldn't do this kind of signature without sending the PDF 
> bytes to the client but im'not so sure ... is this really 
> true? Is there anything smaller than the full PDF that i can 
> send to the client to be signed?
> 

See http://itextpdf.sourceforge.net/howtosign.html#signextstd. You'll only need 
to sign the hash.

> #2.- I know itext is not a PDF Parser (just read 
> http://www.lowagie.com/iText/tutorial/ch13.html) and i know 
> that there are several java based pdf parsers like PDFBox 
> (http://www.pdfbox.org/) or JPedal (http://www.jpedal.org/) 
> but i'd like to know if someone has used them successfully. 
> All that i need is to read some data of a PDF that is always 
> created the same way, so the data to read should be always 
> located at the same place (al least, visually, i don't know 
> if the PDF bytes would be similar).

Results will vary, it depends on the way the pdf was built.

Paulo


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.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to