Enum EventCategory

    • Enum Constant Detail


        public static final EventCategory VISUAL_DIFFERENCES

        The conversion resulted in visual differences to the document.

        The conversion is optimized to preserve the visual appearance of documents. However, under some circumstances visual differences cannot be avoided. This is typically the case for low quality and erroneous input documents.


        • The visual appearance of a proprietary annotation type could not be generated.
        • Numbers that exceed the allowed value range have been clipped.
        • Text of an invalid font is unclear because its mapping to glyphs is ambiguous.

        Suggested severity: EventSeverity.WARNING

        It is not possible for the SDK to gauge the effect of the visual differences on the document's content. Therefore, it is recommended to let a user assess, whether or not the conversion result is acceptable. If a manual review is not feasible, events of this category should be classified as an EventSeverity.ERROR.


        public static final EventCategory REPAIRED_CORRUPTION

        Repaired a corrupt document.

        Corrupt documents are repaired automatically. Since the specification does not define how corrupt documents should be repaired, each viewer has its own heuristics for doing so. Therefore, the repaired document might have visual differences to the input document in your viewer. For that reason, an event is generated such that the repaired document can be reviewed, similarly to VISUAL_DIFFERENCES.

        Examples for documents that must be repaired:

        • The document has been damaged, e.g. during an incomplete file upload.
        • The document has been created by an erroneous application.

        Suggested severity: EventSeverity.WARNING


        public static final EventCategory MANAGED_COLORS

        Managed colors of input document.

        Purely informational messages related to color management.


        • Copied PDF/A output intent from input file.
        • Embedded ICC color profile.

        Suggested severity: EventSeverity.INFORMATION


        public static final EventCategory CHANGED_COLORANT

        Resolved ambiguous or conflicting descriptions of colorants (spot colors).

        Colorants are special inks used in addition to the process colors (e.g. red, green, and blue in the RGB color space or cyan, magenta, yellow and black in the CMYK color space). Popular colorants are PANTONE colors typically used in printing; or also metallic or fluorescent inks.

        Colorants in PDF documents contain a description that is required to paint a good approximation of the intended color in case the colorant is unavailable. Within the same document all descriptions for the same colorant should be equal. This warning is generated if conflicting descriptions must be harmonized, for example during PDF/A conversion.

        This has no effect on output devices where the colorant is available, e.g. on certain printers. For other output devices this warning may indicate visual differences. However, for well-formed documents (i.e. not maliciously created documents), the visual differences are not noticeable.

        Suggested severity: EventSeverity.INFORMATION


        public static final EventCategory REMOVED_EXTERNAL_CONTENT

        Removed references to external content.


        • Removed references to external files containing stream data used in the document.

        Suggested severity: EventSeverity.INFORMATION


        public static final EventCategory CONVERTED_FONT

        Converted fonts of input document.

        Purely informational messages related to font management.


        • Embedded a font.

        Suggested severity: EventSeverity.INFORMATION


        public static final EventCategory SUBSTITUTED_FONT

        Substituted a font for a similar one.

        If a required font is not embedded and not available in the installed fonts, a similar font must be chosen and used. This is a commonly performed when viewing or printing a PDF document. While this may lead to minor visual differences, all text is preserved.

        It is important that the installed fonts contain all fonts that are not embedded in the input documents. See the product's installation documentation for a list of fonts that are recommended to install.


        • Substituted font 'GothicBBB-Medium' with 'MS-Gothic'.

        Suggested severity: EventSeverity.INFORMATION


        public static final EventCategory REMOVED_TRANSPARENCY

        Converted transparent object to opaque.

        Because transparency is not allowed in PDF/A-1, transparent objects have to be converted to opaque when converting a document to PDF/A-1. This can lead to visual differences. Even though the conversion has been optimized to reduce visual differences, they might be noticeable. Therefore, it is highly recommended to convert documents to PDF/A-2 or higher. These versions of the standard allow transparency, which results in a higher conversion quality.

        This conversion event should be handled similarly to VISUAL_DIFFERENCES.

        Suggested severity: EventSeverity.WARNING


        public static final EventCategory REMOVED_ANNOTATION

        Removed prohibited annotation type.

        Removing annotations does not lead to visual differences, but merely removes the interactivity of the elements.


        • Removed proprietary annotation types.
        • Removed forbidden annotation types, e.g. 3D.

        Suggested severity: EventSeverity.INFORMATION


        public static final EventCategory REMOVED_ACTION

        Removed prohibited action type.

        Removing actions does not lead to visual differences.


        • Removed JavaScript actions in interactive form fields.

        Suggested severity: EventSeverity.INFORMATION


        public static final EventCategory REMOVED_METADATA

        Removed parts of the XMP metadata that could not be repaired.

        This event indicates that metadata properties have been removed during conversion. This includes any kind of metadata like e.g. the XMP metadata of a PDF document.


        • Parts of the XMP metadata of a PDF did not conform to the PDF/A standard and had to be removed.

        Suggested severity: EventSeverity.INFORMATION


        public static final EventCategory REMOVED_STRUCTURE

        Removed logical structure (tagging) information.

        The logical structure of the document is a description of the content of its pages. This description has to be provided by the creator of the document. It consists of a fine granular hierarchical tagging that distinguishes between the actual content and artifacts (such as page numbers, layout artifacts, etc.). The tagging provides a meaningful description, for example "This is a header", "This color image shows a small sailing boat at sunset", etc. This information can be used e.g. to read the document to the visually impaired.

        The SDK has been optimized to preserve tagging information. Typically, tagging information only has to be removed if it is invalid or corrupt.

        Suggested severity: EventSeverity.INFORMATION


        public static final EventCategory REMOVED_OPTIONAL_CONTENT

        Removed optional content groups (layers).

        Because optional content is not allowed in PDF/A-1, it has to be removed when converting a document to PDF/A-1. Removing layers does not change the initial appearance of pages. However, the visibility of content cannot be changed anymore. Therefore, it is highly recommended to convert documents to PDF/A-2 or higher. These versions of the standard allow optional content, which results in a higher conversion quality.

        Suggested severity: EventSeverity.WARNING


        public static final EventCategory CONVERTED_EMBEDDED_FILE

        Converted embedded file.

        Purely informational messages related to the conversion of embedded files.


        • Copied an embedded file.
        • Embedded a file that has successfully been converted to PDF/A.

        Suggested severity: EventSeverity.INFORMATION


        public static final EventCategory REMOVED_EMBEDDED_FILE

        Removed embedded files.

        Whether embedded files have to be removed depends on the conformance:

        • PDF/A-1: Embedded files are not allowed.

          All embedded files have to be removed.

        • PDF/A-2: Only embedded files are allowed, that conform to PDF/A.

          All embedded PDF documents are converted to PDF/A. All other files have to be removed.

          The Conversion Service can be used to convert PDF documents with other types of embedded files, e.g. Microsoft Office documents, images, and mails, to PDF/A-2.

        • PDF/A-3: All types of embedded files are allowed and copied as-is.

          The Conversion Service can be used, if a more fine-grained control over the conversion and copying of embedded files is required.

        Suggested severity: EventSeverity.WARNING


        public static final EventCategory REMOVED_SIGNATURE

        Removed signatures of signed input file.

        Converting a signed document invalidates its signatures. For that reason, the cryptographic parts of the signatures are removed while their visual appearances are preserved.

        Note that we generally recommend to sign PDF/A documents only for two reasons. First, this ensures that the file is not corrupt and its visual appearance is well defined, such than it can be reproduced flawlessly and authentically in any environment. Second, PDF/A conformance is typically required if the file is to be archived, e.g. by the recipient. Because signed files cannot be converted to PDF/A without breaking the signature, the signature must be removed before the file can be archived. By converting files to PDF/A before applying the signature, this dilemma can be avoided.

        Suggested severity: EventSeverity.INFORMATION

    • Method Detail

      • values

        public static EventCategory[] 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 (EventCategory c : EventCategory.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EventCategory 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null