iText 8.0.5 API
iText.Pdfua.Exceptions.PdfUAExceptionMessageConstants Class Reference

Class that bundles all the error message templates as constants. More...

Static Public Attributes

const String  ONE_OR_MORE_STANDARD_ROLE_REMAPPED = "One or more standard types are remapped."
 
const String  TAG_HASNT_BEEN_ADDED_BEFORE_CONTENT_ADDING = "Tag hasn't been added before adding content to the canvas."
 
const String  CONTENT_IS_NOT_REAL_CONTENT_AND_NOT_ARTIFACT = "Content is neither marked as Artifact nor tagged as real content."
 
const String  ARTIFACT_CANT_BE_INSIDE_REAL_CONTENT = "Content marked as artifact may only reside in Artifact content."
 
const String  REAL_CONTENT_CANT_BE_INSIDE_ARTIFACT = "Content marked as content may not reside in Artifact content."
 
const String  CONTENT_WITH_MCID_BUT_MCID_NOT_FOUND_IN_STRUCT_TREE_ROOT = "Content with MCID, but MCID wasn't found in StructTreeRoot."
 
const String  FONT_SHOULD_BE_EMBEDDED = "Following font(s) are not embedded: {0}"
 
const String  METADATA_SHALL_BE_PRESENT_IN_THE_CATALOG_DICTIONARY = "Metadata shall be present in the catalog dictionary"
 
const String  REAL_CONTENT_INSIDE_ARTIFACT_OR_VICE_VERSA = "Tagged content is present inside content marked as Artifact or vice versa."
 
const String  SUSPECTS_ENTRY_IN_MARK_INFO_DICTIONARY_SHALL_NOT_HAVE_A_VALUE_OF_TRUE = "Suspects entry in mark info dictionary shall not have a value of true."
 
const String  TAG_MAPPING_DOESNT_TERMINATE_WITH_STANDARD_TYPE = "\"{0}\" tag mapping does not terminate with a standard type."
 
const String  IMAGE_SHALL_HAVE_ALT
 
const String  CELL_HAS_INVALID_ROLE = "Cell: row {0} ({1}) col {2} has invalid role."
 
const String  TABLE_CONTAINS_EMPTY_CELLS
 
const String  CELL_CANT_BE_DETERMINED_ALGORITHMICALLY
 
const String  FORMULA_SHALL_HAVE_ALT
 
const String  NOTE_TAG_SHALL_HAVE_ID_ENTRY = "Note tags shall include a unique ID entry."
 
const String  GLYPH_IS_NOT_DEFINED_OR_WITHOUT_UNICODE = "The '{0}' glyph either isn't defined in embedded font or doesn't have unicode mapping."
 
const String  DOCUMENT_SHALL_CONTAIN_XMP_METADATA_STREAM = "Document shall contain a XMP metadata stream."
 
const String  METADATA_SHALL_CONTAIN_UA_VERSION_IDENTIFIER = "Metadata shall contain correct pdfuaid:part version identifier."
 
const String  METADATA_SHALL_CONTAIN_DC_TITLE_ENTRY = "Metadata shall contain dc:title entry."
 
const String  INVALID_PDF_VERSION = "Specified document pdf version isn't supported in pdf/ua."
 
const String  H1_IS_SKIPPED = "Heading level 1 is skipped in a descending sequence of header levels."
 
const String  HN_IS_SKIPPED = "Heading level {0} is skipped in a descending sequence of header " + "levels."
 
const String  MORE_THAN_ONE_H_TAG = "A node contains more than one H tag."
 
const String  DOCUMENT_USES_BOTH_H_AND_HN = "Document uses both H and H# tags."
 
const String  DOCUMENT_SHALL_CONTAIN_VALID_LANG_ENTRY = "Document does not contain valid lang entry."
 
const String  MISSING_FORM_FIELD_DESCRIPTION
 
const String  MISSING_VIEWER_PREFERENCES
 
const String  VIEWER_PREFERENCES_IS_FALSE
 
const String  NAME_ENTRY_IS_MISSING_OR_EMPTY_IN_OCG = "Name entry is missing or has " + "an empty string as its value in an Optional Content Configuration Dictionary."
 
const String  OCG_SHALL_NOT_CONTAIN_AS_ENTRY = "An AS entry appears in an Optional Content."
 
const String  OCG_PROPERTIES_CONFIG_SHALL_BE_AN_ARRAY = "Optional Content properties " + "configs shall be an array."
 
const String  DYNAMIC_XFA_FORMS_SHALL_NOT_BE_USED = "Dynamic XFA forms shall not be used."
 
const String  FILE_SPECIFICATION_DICTIONARY_SHALL_CONTAIN_F_KEY_AND_UF_KEY = "File specification dictionary shall contain f key and uf key."
 
const String  NON_UNIQUE_ID_ENTRY_IN_STRUCT_TREE_ROOT
 
const String  LINK_ANNOT_IS_NOT_NESTED_WITHIN_LINK = "A link annotation is not nested within a tag."
 
const String  ANNOT_TRAP_NET_IS_NOT_PERMITTED = "Annotations of subtype TrapNet shall not be permitted."
 
const String  PAGE_WITH_ANNOT_DOES_NOT_HAVE_TABS_WITH_S = "A page with annotation(s) doesn't contains Tabs key with S value."
 
const String  P_VALUE_IS_ABSENT_IN_ENCRYPTION_DICTIONARY = "Permissions are absent " + "in pdf encryption dictionary."
 
const String  TENTH_BIT_OF_P_VALUE_IN_ENCRYPTION_SHOULD_BE_NON_ZERO = "10th bit of P value of " + "Encryption dictionary should be 1 if the document is tagged."
 
const String  ANNOTATION_OF_TYPE_0_SHOULD_HAVE_CONTENTS_OR_ALT_KEY
 
const String  LINK_ANNOTATION_SHOULD_HAVE_CONTENTS_KEY = "Annotation of type Link " + "shall contain an alternate description via their Contents key."
 
const String  CT_OR_ALT_ENTRY_IS_MISSING_IN_MEDIA_CLIP
 
const String  PRINTER_MARK_IS_NOT_PERMITTED = "Annotations of subtype PrinterMark shall not be included in logical structure."
 

Detailed Description

Class that bundles all the error message templates as constants.

Member Data Documentation

◆ ANNOTATION_OF_TYPE_0_SHOULD_HAVE_CONTENTS_OR_ALT_KEY

const String iText.Pdfua.Exceptions.PdfUAExceptionMessageConstants.ANNOTATION_OF_TYPE_0_SHOULD_HAVE_CONTENTS_OR_ALT_KEY
static
Initial value:
= "Annotation of type {0} should "
+ "have contents or alternate description."

◆ CELL_CANT_BE_DETERMINED_ALGORITHMICALLY

const String iText.Pdfua.Exceptions.PdfUAExceptionMessageConstants.CELL_CANT_BE_DETERMINED_ALGORITHMICALLY
static
Initial value:
= "TD cell row:{0} col:{1} in table {2} does"
+ " not contain a valid Headers attribute, and Headers for this cell cannot be determined algorithmically."

◆ CT_OR_ALT_ENTRY_IS_MISSING_IN_MEDIA_CLIP

const String iText.Pdfua.Exceptions.PdfUAExceptionMessageConstants.CT_OR_ALT_ENTRY_IS_MISSING_IN_MEDIA_CLIP
static
Initial value:
= "CT or Alt entry is missing from the media "
+ "clip data dictionary."

◆ FORMULA_SHALL_HAVE_ALT

const String iText.Pdfua.Exceptions.PdfUAExceptionMessageConstants.FORMULA_SHALL_HAVE_ALT
static
Initial value:
= "Formula tags shall include an alternative representation or "
+ "replacement text."

◆ IMAGE_SHALL_HAVE_ALT

const String iText.Pdfua.Exceptions.PdfUAExceptionMessageConstants.IMAGE_SHALL_HAVE_ALT
static
Initial value:
= "Figure tags shall include an alternative representation or " +
"replacement text. call com.itextpdf.kernel.pdf.tagutils.AccessibilityProperties#setActualText or com"
+ ".itextpdf.kernel.pdf.tagutils.AccessibilityProperties#setAlternateDescription to be PDF/UA compliant."

◆ MISSING_FORM_FIELD_DESCRIPTION

const String iText.Pdfua.Exceptions.PdfUAExceptionMessageConstants.MISSING_FORM_FIELD_DESCRIPTION
static
Initial value:
= "Document form fields missing both TU entry and " + "alternative description. For PdfFormfields use PdfFormfield#setAlternativeName"
+ "(\"Your alternative description\"); For the layout engine use Element#getAccesibilityProperties()"
+ ".setAlternateDescription(\"your alternative description\")"

◆ MISSING_VIEWER_PREFERENCES

const String iText.Pdfua.Exceptions.PdfUAExceptionMessageConstants.MISSING_VIEWER_PREFERENCES
static
Initial value:
= "ViewerPreferences dictionary of the Catalog dictionary "
+ "does not contain a DisplayDocTitle entry."

◆ NON_UNIQUE_ID_ENTRY_IN_STRUCT_TREE_ROOT

const String iText.Pdfua.Exceptions.PdfUAExceptionMessageConstants.NON_UNIQUE_ID_ENTRY_IN_STRUCT_TREE_ROOT
static
Initial value:
= "ID entry '{0}' shall be unique among all elements "
+ "in the document’s structure hierarchy"

◆ TABLE_CONTAINS_EMPTY_CELLS

const String iText.Pdfua.Exceptions.PdfUAExceptionMessageConstants.TABLE_CONTAINS_EMPTY_CELLS
static
Initial value:
= "Cell: row {0} ({1}) col {2} is empty, each row should "
+ "have the same amount of columns when taking into account spanning."

◆ VIEWER_PREFERENCES_IS_FALSE

const String iText.Pdfua.Exceptions.PdfUAExceptionMessageConstants.VIEWER_PREFERENCES_IS_FALSE
static
Initial value:
= "ViewerPreferences dictionary of the Catalog dictionary "
+ "contains a DisplayDocTitle entry with a value of false."