Enum WarningCategory

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static WarningCategory valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static WarningCategory[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • PDF_A_REMOVED

        public static final WarningCategory PDF_A_REMOVED
        PDF/A conformance of input file removed due to file encryption (i.e. pdftools.pdf.OutputOptions.getEncryption is not null). Removal of PDF/A conformance is necessary, because encryption is not allowed by the PDF/A standard.
      • SIGNED_DOC_ENCRYPTION_UNCHANGED

        public static final WarningCategory SIGNED_DOC_ENCRYPTION_UNCHANGED

        When processing signed documents, their encryption parameters (user password, owner password, permissions) cannot be changed. Therefore, the property pdftools.pdf.OutputOptions.getEncryption has no effect.

        This warning is generated so that the following situations can be detected:

        Encryption parameters of signed documents can be changed by removing all existing signatures using the property OutputOptions.getRemoveSignatures(). In this case, this warning is not generated.

      • ADD_VALIDATION_INFORMATION_FAILED

        public static final WarningCategory ADD_VALIDATION_INFORMATION_FAILED

        Error adding validation information to existing signatures of input document as requested by OutputOptions.getAddValidationInformation(). The warning's context contains a description of the affected signature.

        Potential causes of this warning are:

        • Missing issuer certificate: All certificates of the trust chain are required to add validation information. Preferably, the certificates should be present in the cryptographic provider's certificate store. Alternatively, if supported by the certificate, the issuer certificate is downloaded from the certificate authority's server and stored in the user's Certificates directory (see pdftools.crypto.providers.builtin.Provider).
        • Network problem: The network must allow OCSP and CRL responses to be downloaded from the certificate authority's server. Make sure your proxy configuration (see pdftools.Sdk.getProxy) is correct.

    • Method Detail

      • values

        public static WarningCategory[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WarningCategory c : WarningCategory.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WarningCategory valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null