{
throw new ConvWatchCancelException("createPostscriptStartCheck: Given reference file: " + _sAbsoluteReferenceFile + " does not exist, after try to copy.");
}
}
PRNCompare a = new PRNCompare();
String sInputPath = FileHelper.getPath(_sAbsoluteInputFile);
String sReferencePath = FileHelper.getPath(_sAbsoluteReferenceFile);
// String sReferenceFile = FileHelper.getBasename(sAbsoluteReferenceFile);
// System.out.println("InputPath: " + sInputPath);
// System.out.println("sReferencePath: " + sReferencePath);
// System.out.println("sReferenceFile: " + sReferenceFile);
a.setInputPath( sInputPath );
a.setReferencePath( sReferencePath );
a.setOutputPath( _sOutputPath );
// a.setDocFile( "1_Gov.ppt");
a.setReferenceFile( sReferenceFile );
a.setPostScriptFile(sPostScriptFile );
if (_aGTA.printAllPages() == true)
{
a.setMaxPages(9999);
}
else
{
if (_aGTA.getMaxPages() > 0)
{
a.setMaxPages(_aGTA.getMaxPages());
}
if (_aGTA.getOnlyPages().length() != 0)
{
// we can't interpret the string of getOnlyPages() right without much logic, so print all pages here!
a.setMaxPages(9999);
}
}
a.setResolutionInDPI(_aGTA.getResolutionInDPI());
a.setBorderMove(_aGTA.getBorderMove());
a.setDocumentType(_aGTA.getDocumentType());
StatusHelper[] aList = a.compare();
_aGTA.setBorderMove(a.getBorderMove());
return aList;
}