{
InputStream input = new FileInputStream(file);
ValidationResult result;
try
{
PreflightParser parser = new PreflightParser(new ByteArrayDataSource(input));
parser.parse();
document = (PreflightDocument) parser.getPDDocument();
// to speeds up tests, skip validation of page count is over the limit
if (document.getNumberOfPages() < 8191)
{