Signing must always be done in PdfStamper, you wouldn't gain anything if
it could be done directly from PdfWriter as the process requires changes
to the completed PDF. With PdfStamper you can encrypt and sign in one
go.

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Harakiri
> Sent: Wednesday, April 04, 2007 12:42 PM
> To: [email protected]
> Subject: [iText-questions] Sign+Encrypt in one process ? 
> Removing overhead...
> 
> Hello,
> 
> is it possible to sign+encrypt a pdf in one process ?
> 
> Im generating PDFs from scratch, also it is possible
> to do a setEncryption on a PDF writer - im unable to
> sign the data. I know that i cant change anything
> after adding a signature to not invalidate.
> 
> What i currently have to do is
> 
> 1. create pdf (PDFWriter)
> 2. read PDF again use PdfStamper.createSignature
> 3. read PDF again use PdfEncryptor.encrypt
> 
> is there another way to it ? Because of the multiple
> reading & writing there is unneeded overhead which is
> noticeable when creating a huge number of pdfs
> concurrently.
> 
> Thanks
> 
> 
>  
> ______________________________________________________________
> ______________________
> Don't get soaked.  Take a quick peek at the forecast
> with the Yahoo! Search weather shortcut.
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> 
> --------------------------------------------------------------
> -----------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the 
> chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
> &CID=DEVDEV
> _______________________________________________
> 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/
> 


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.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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