@Override public String toString(){
  String result;
  if (valid) {
    result="Output File: " + outputFile.getAbsolutePath() + '\n';
    if (signMode) {
      result+="Keystore: " + keyStorePath + '\n'+ "Alias: "+ alias+ '\n';
    }
 else {
      result+=".pfx File:" + keyFilePath + '\n';
    }
  }
 else {
    return invalidMessage;
  }
  result+="Reason: \"" + reason + "\"\n"+ "Location: "+ location+ '\n';
  if (canEncrypt()) {
    result+="Encrypt PDF" + '\n';
  }
  if (canFlatten()) {
    result+="Flatten PDF" + '\n';
  }
  if (certifyMode != ItextFunctions.NOT_CERTIFIED) {
    result+="Certify PDF" + '\n';
  }
  return result;
}

@ Override public String toString ( ) { String result ; if ( valid ) { result = "Output File: " + outputFile . getAbsolutePath ( ) + '\n' ; if ( signMode ) { result += "Keystore: " + keyStorePath + '\n' + "Alias: " + alias + '\n' ; } else { result += ".pfx File:" + keyFilePath + '\n' ; } } else { return invalidMessage ; } result += "Reason: \"" + reason + "\"\n" + "Location: " + location + '\n' ; if ( canEncrypt ( ) ) { result += "Encrypt PDF" + '\n' ; } if ( canFlatten ( ) ) { result += "Flatten PDF" + '\n' ; } if ( certifyMode != ItextFunctions . NOT_CERTIFIED ) { result += "Certify PDF" + '\n' ; } return result ; }
this method is overidden to display messages about its this objects state . used after calling validate .
