Hi, I'm new pdfbox and I'd like to know how can I write (if possible) a Cross-Reference stream (PDF reference chapter 3.4.7). I found the pdfbox can read cross reference stream but looking at the examples I could not find anything to start with, could you please point me on the right direction? To be more specific, what I'm trying to do is to decrypt an existing document and save it back to disk compressing the Cross-Reference stream.

