Hi,

I'm using iText to add password for reading for PDF files. When I opened the
password protected in Adobe Reader 8, there was a error message about the
font "CourierStd" includes a mistake "/BBox". However, I got no problem at
all using Foxit Reader.

The iText I used is targeted for JDK 1.3 (branch: iText-jdk13) and here is
the code:

> PdfReader reader = new PdfReader(inFile);
> FileOutputStream encryptedFile = new FileOutputStream(outFile);
> PdfEncryptor.encrypt(reader, encryptedFile, password.getBytes(),
> password.getBytes(), PdfWriter.ALLOW_PRINTING +
> PdfWriter.ALLOW_SCREENREADERS, true);
> encryptedFile.close();
>

Any clues?

Regards,
mj
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to