pdftools_sdk.pdf_a.validation.error_category

Classes

ErrorCategory(value)

The validation error category

class pdftools_sdk.pdf_a.validation.error_category.ErrorCategory(value)[source]

Bases: IntEnum

The validation error category

Variables:
  • FORMAT (int) – The file format (header, trailer, objects, xref, streams) is corrupted.

  • PDF (int) – The document doesn’t conform to the PDF reference or PDF/A Specification (missing required entries, wrong value types, etc.).

  • ENCRYPTION (int) – The file is encrypted.

  • COLOR (int) – The document contains device-specific color spaces.

  • RENDERING (int) – The document contains illegal rendering hints (unknown intents, interpolation, transfer and halftone functions).

  • ALTERNATE (int) – The document contains alternate information (images).

  • POST_SCRIPT (int) – The document contains embedded PostScript code.

  • EXTERNAL (int) – The document contains references to external content (reference XObjects, OPI).

  • FONT (int) – The document contains fonts without embedded font programs or encoding information (CMAPs)

  • UNICODE (int) – The document contains fonts without appropriate character to Unicode mapping information (ToUnicode maps)

  • TRANSPARENCY (int) – The document contains transparency.

  • UNSUPPORTED_ANNOTATION (int) – The document contains unknown annotation types.

  • MULTIMEDIA (int) – The document contains multimedia annotations (sound, movies).

  • PRINT (int) – The document contains hidden, invisible, non-viewable or non-printable annotations.

  • APPEARANCE (int) – The document contains annotations or form fields with ambiguous or without appropriate appearances.

  • ACTION (int) – The document contains actions types other than for navigation (launch, JavaScript, ResetForm, etc.)

  • METADATA (int) – The document’s meta data is either missing or inconsistent or corrupt.

  • STRUCTURE (int) – The document doesn’t provide appropriate logical structure information.

  • OPTIONAL_CONTENT (int) – The document contains optional content (layers).

  • EMBEDDED_FILE (int) – The document contains embedded files.

  • SIGNATURE (int) – The document contains signatures.

  • CUSTOM (int) – Violations of custom corporate directives.

FORMAT = 1
PDF = 2
ENCRYPTION = 4
COLOR = 8
RENDERING = 16
ALTERNATE = 32
POST_SCRIPT = 64
EXTERNAL = 128
FONT = 256
UNICODE = 512
TRANSPARENCY = 1024
UNSUPPORTED_ANNOTATION = 2048
MULTIMEDIA = 4096
PRINT = 8192
APPEARANCE = 16384
ACTION = 32768
METADATA = 65536
STRUCTURE = 131072
OPTIONAL_CONTENT = 262144
EMBEDDED_FILE = 524288
SIGNATURE = 1048576
CUSTOM = 1073741824