/**
* read the form data from the file
*/
final public PdfFileInformation readPdfFileMetadata(PdfObject metadataObj,PdfObjectReader currentPdfFile) {
PdfFileReader objectReader=currentPdfFile.getObjectReader();
ObjectDecoder objectDecoder=new ObjectDecoder(currentPdfFile.getObjectReader());
//read info object (may be defined and object set in different trailers so must be done at end)
DecryptionFactory decryption=objectReader.getDecryptionObject();
PdfObject infoObject=objectReader.getInfoObject();
if(infoObject!=null &&(!(decryption!=null && (decryption.getBooleanValue(PDFflags.IS_FILE_ENCRYPTED) || decryption.getBooleanValue(PDFflags.IS_PASSWORD_SUPPLIED)))))
readInformationObject(infoObject,objectDecoder);
//read and set XML value
if(metadataObj!=null){
String objectRef=new String(metadataObj.getUnresolvedData());
//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)