* @throws IOException If there is an error reading from the stream or corrupt data
* is found.
*/
public void parse() throws IOException {
document = new COSDocument();
doc = new ConformingPDDocument(document);
currentOffset = inputFile.length()-1;
long xRefTableLocation = parseTrailerInformation();
currentOffset = xRefTableLocation;
parseXrefTable();
// now that we read the xref table and put null references in the doc,