}
}
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss.Z");
PdfAValidator validator = new PdfAValidatorFactory().createValidatorInstance(PdfAValidatorFactory.PDF_A_1_b);
long startGTime = System.currentTimeMillis();
int size = lfd.size();
for (int i = 0 ; i < loop ; i++) {
File file = lfd.get(i%size);
long startLTime = System.currentTimeMillis();
ValidationResult result = validator.validate(new FileDataSource(file));
if (!result.isValid()) {
resFile.write(file.getAbsolutePath() + " isn't PDF/A\n");
for (ValidationError error : result.getErrorsList()) {
resFile.write(error.getErrorCode() + " : " + error.getDetails() +"\n");
}