Hi,

I'd like to encrypt an existing PDF document using iText 0.98.
To do this, I'm using the PDFEncryptor class as it is done
in the tool pdf_encrypt.

This works well with newer versions of Acrobat, but not with
acrobat reader 3.0 (it keeps asking for the user password,
even though I haven't set one; if I encrypt a document with a
user password and enter it, it still says the the password is
incorrect)

Is this a bug, or is the old PDF spec used by acrobat 3.0
(v. 1.2 I think) simply not supported any more?

I was able to encrypt pdf documents for acrobat reader 3.0
with iText 0.95 and the encryption sample from the tutorial.
(however, there were other problems with the generated pdf's,
when viewed with a browser over a not very fast connection,
the documents didn't show up correctly first, the user had
to change the zoom or move the document to make it appear as
it should)


I also discovered a small bug:
The generated pdf files contain two encryption objects.
The error is probably in PdfStamperImp, line 123:

  encryptionObject.writeTo(os);")

I think this line can be removed.


Thanks in advance

Matthias


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to