Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread beppecosta
Bruno, I will try the first part. I also took a quick look at the scrambler project but as you know we implement all things on a iSeries platform that has a IBM virtual machine with some restrictions (i.e. awt and swing - the graphic cannot be used). Beppe. 1T3XT info wrote: > > bep

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread 1T3XT info
beppecosta wrote: > Hi Bruno, > > how can I get this new code ? The certificate encryption stuff is already in the current iText distribution; see the API docs: http://www.1t3xt.info/api/com/lowagie/text/pdf/interfaces/PdfEncryptionSettings.html#setEncryption(java.security.cert.Certificate[],%20i

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread beppecosta
Hi Bruno, how can I get this new code ? Beppe. 1T3XT info wrote: > > [EMAIL PROTECTED] wrote: >> I'm writing to you in detail in hopes that Bruno will see my response, >> saving himself a little time to spend with his son. > > Thanks, my wife and I just changed shifts at the hospital. > For

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread beppecosta
If I decrypt an unsigned pdf, the new copy is perfect. However if I decrypt a signed pdf (signed with Itext), the new decrypted copy still shows the signer but says that the signature is invalid. This is not a big deal because the stored version in encrypted and unsigned. Only when must be email

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread wasegraves
Yes, I agree.   I thought your original question was about how to automate the process, e.g., if I generate and encrypted PDF in my process, and code later on in the process needs to decrypt the existing PDF, the code doing the modifying has to have the owner password available to it.   Cheer

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread beppecosta
Hi Bill, Of course the user that wants to send the un-encrypted document has the rights to the original encrypted (including pwd). I've just tried the sample code and it works percfecty. Thank you (Thanks to Bruno and Paulo too! ) Beppe. wasegraves wrote: > > You're very welcome, Beppe.

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread wasegraves
You're very welcome, Beppe.   Please keep in mind that if you want to do anything in the way of modifications to a password protected PDF, you must have the owner password.   Best regards, Bill Segraves -- Original message from beppecosta <[EMAIL PROTECTED]>: -- > > Hi

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread 1T3XT info
[EMAIL PROTECTED] wrote: > I'm writing to you in detail in hopes that Bruno will see my response, > saving himself a little time to spend with his son. Thanks, my wife and I just changed shifts at the hospital. Fortunately we're in one of the larger rooms with internet access. For an update, see:

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread beppecosta
Hi Bill, thanks for the answer. I will look at page 95. Beppe. wasegraves wrote: > > Beppe, > > Yes. See HelloWorldEncryptDecrypt example on page 95 in the book. > > BTW, you are asking a Yes/No question to thousands of people, the answer > to which can be foiund on page 95 in the book. Th

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread wasegraves
Beppe,   Yes. See HelloWorldEncryptDecrypt example on page 95 in the book.   BTW, you are asking a Yes/No question to thousands of people, the answer to which can be foiund on page 95 in the book. The question is even in the index as "decrypting a PDF". I can imagine, worst case, that hundred

[iText-questions] Re write an encrypted Pdf

2008-06-19 Thread beppecosta
Hello, our user creates encrypted pdf and keep them on a shared folder. (This is done with iText). When the user wants to send a document, he would like to send a non-encrypted version. At present he opens it with Acrobat, removes the pass, saves a copy and sends it. Is is possible to automate