diff --git a/PDF_UA/PDFUA-2-ISO32005.xml b/PDF_UA/PDFUA-2-ISO32005.xml index 167a561a..daaea5bb 100644 --- a/PDF_UA/PDFUA-2-ISO32005.xml +++ b/PDF_UA/PDFUA-2-ISO32005.xml @@ -374,6 +374,19 @@ + + + When present, the Caption element shall be the first or the last child of the structure element + kidsStandardTypes.indexOf('&Caption&') < 0 + + Structure element %1 contains Caption as its %2 child instead of first or last one + + objectKey + kidsStandardTypes.split('&').slice(1).findIndex(elem => elem == 'Caption') + 2 + + + + A Figure structure element shall have at least one of the following properties: a) an alternate description (Alt property), as specified in ISO 32000-2:2020, 14.9.3; b) a replacement text (ActualText property) that represents the content enclosed by the Figure structure element diff --git a/PDF_UA/PDFUA-2.xml b/PDF_UA/PDFUA-2.xml index fe182410..034c42c0 100644 --- a/PDF_UA/PDFUA-2.xml +++ b/PDF_UA/PDFUA-2.xml @@ -374,6 +374,19 @@ + + + When present, the Caption element shall be the first or the last child of the structure element + kidsStandardTypes.indexOf('&Caption&') < 0 + + Structure element %1 contains Caption as its %2 child instead of first or last one + + objectKey + kidsStandardTypes.split('&').slice(1).findIndex(elem => elem == 'Caption') + 2 + + + + A Figure structure element shall have at least one of the following properties: a) an alternate description (Alt property), as specified in ISO 32000-2:2020, 14.9.3; b) a replacement text (ActualText property) that represents the content enclosed by the Figure structure element