Planet PDF Forum Archive

Wowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).

I am trying to implement PDF encryption/decryption in Java. I can successfully compute the the /O and /U entries to match the ones in the document. When I try to decrypt a piece of data in the document I get gibberish. I am pretty sure that I am just missing some small thing.

If you are familiar with PDF encryption would you please take a look at my source to see what I am doing wrong.

The class to look at and execute is pdfparer.encryption.DecryptDocument, which opens the LazyParser-enc.pdf document and tries to decrypt one of the strings in that document.

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.