{
/*
NOTE: If the header specifies a later version, or if this entry is absent,
the document conforms to the version specified in the header.
*/
Version fileVersion = getFile().getVersion();
PdfName versionObject = (PdfName)getBaseDataObject().get(PdfName.Version);
if(versionObject == null)
return fileVersion;
Version version = Version.get(versionObject.getRawValue());
if(getFile().getReader() == null)
return version;
return (version.compareTo(fileVersion) > 0 ? version : fileVersion);
}