Enum Configuration.ErrorPolicy

java.lang.Object
java.lang.Enum<Configuration.ErrorPolicy>
com.realobjects.pdfreactor.Configuration.ErrorPolicy
All Implemented Interfaces:
Serializable, Comparable<Configuration.ErrorPolicy>, java.lang.constant.Constable
Enclosing class:
Configuration

public static enum Configuration.ErrorPolicy extends Enum<Configuration.ErrorPolicy>

An enum containing error policies.

  • Enum Constant Details

    • LICENSE

      public static final Configuration.ErrorPolicy LICENSE

      Whether an exception should be thrown when no legal full license key is set. This allows to programmatically ensure that documents are not altered due to license issues.

    • MISSING_RESOURCE

      public static final Configuration.ErrorPolicy MISSING_RESOURCE

      Whether an exception should be thrown when resources could not be loaded.

    • UNCAUGHT_JAVASCRIPT_EXCEPTION

      public static final Configuration.ErrorPolicy UNCAUGHT_JAVASCRIPT_EXCEPTION

      Whether an exception should be thrown when there are uncaught exceptions in the input document JavaScript, including syntax error.

    • CONFORMANCE_VALIDATION_UNAVAILABLE

      public static final Configuration.ErrorPolicy CONFORMANCE_VALIDATION_UNAVAILABLE

      Whether an exception should be thrown when the PDF's conformance was not validated even though Configuration.setValidateConformance(Boolean) was enabled. Now exceptions will be thrown if the validation module is not available or the conformance format is not fully supported for validation.

      Use this policy only if you exclusively convert documents where validation is supported and strictly required.

    • IGNORE_INVALID_MERGE_DOCUMENTS_EXCEPTION

      public static final Configuration.ErrorPolicy IGNORE_INVALID_MERGE_DOCUMENTS_EXCEPTION

      Whether exceptions occurring when trying to merge invalid documents (e.g. encrypted documents for which no owner password or an invalid password was supplied) should be ignored.

      Use this policy if the conversion should proceed even if one or more documents that should be merged are invalid. They will be omitted from the final PDF.

    • WARN_EVENT

      public static final Configuration.ErrorPolicy WARN_EVENT

      Whether an exception should be thrown when an event of level Configuration.LogLevel.WARN is logged.

  • Method Details

    • values

      public static Configuration.ErrorPolicy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Configuration.ErrorPolicy valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null