//byte[] stream= metadataObj.DecodedStream;
//start old
//get data
MetadataObject oldMetaDataObj =new MetadataObject(objectRef);
objectReader.readObject(oldMetaDataObj);
byte[] oldstream= oldMetaDataObj.getDecodedStream();
/** breaks on encrypted (ie preptool)
boolean failed=PdfReader.checkStreamsIdentical(stream,oldstream);
if(failed)
throw new RuntimeException("Mismatch on info streams");