@@ -76,12 +76,7 @@ public void simpleLinkTest() throws IOException, InterruptedException, XMPExcept
7676 converterProperties .setFontProvider (fontProvider );
7777 HtmlConverter .convertToPdf (new FileInputStream (sourceHtml ), pdfDocument , converterProperties );
7878
79- /* TODO: DEVSIX-5700 - Links created from html2pdf are not ua-2 compliant
80- * One verapdf error is generated here:
81- * 1. clause="8.5.1", Real content that does not possess the semantics of text objects and does not have
82- * an alternate textual representation is not enclosed within Figure or Formula structure elements.
83- */
84- compareAndCheckCompliance (destinationPdf , cmpPdf , false );
79+ compareAndCheckCompliance (destinationPdf , cmpPdf , true );
8580 }
8681
8782 @ Test
@@ -99,12 +94,7 @@ public void backwardLinkTest() throws IOException, InterruptedException, XMPExce
9994 converterProperties .setFontProvider (fontProvider );
10095 HtmlConverter .convertToPdf (new FileInputStream (sourceHtml ), pdfDocument , converterProperties );
10196
102- /* TODO: DEVSIX-5700 - Links created from html2pdf are not ua-2 compliant
103- * One verapdf error is generated here:
104- * 1. clause="8.5.1", Real content that does not possess the semantics of text objects and does not have
105- * an alternate textual representation is not enclosed within Figure or Formula structure elements.
106- */
107- compareAndCheckCompliance (destinationPdf , cmpPdf , false );
97+ compareAndCheckCompliance (destinationPdf , cmpPdf , true );
10898 }
10999
110100 @ Test
@@ -123,11 +113,13 @@ public void imageLinkTest() throws IOException, InterruptedException, XMPExcepti
123113 converterProperties .setBaseUri (SOURCE_FOLDER );
124114 HtmlConverter .convertToPdf (new FileInputStream (sourceHtml ), pdfDocument , converterProperties );
125115
126- /* TODO: DEVSIX-5700 - Links created from html2pdf are not ua-2 compliant
127- * One verapdf error is generated here:
128- * 1. clause="8.5.1", Real content that does not possess the semantics of text objects and does not have
129- * an alternate textual representation is not enclosed within Figure or Formula structure elements.
130- */
116+ // The VeraPDF check fails probably to its internal bug. It checks that /ActualText != null, but the
117+ // pdf/ua-2 documentation states the following:
118+ // 8.5.1 General
119+ // Real content that does not possess the semantics of text objects and does not have an alternate
120+ // textual representation shall be enclosed within Figure structure elements in accordance with
121+ // ISO 32000-2:2020, 14.8.4.8.5
122+ // So probably VeraPDF should've checked for /Alt instead of /ActualText
131123 compareAndCheckCompliance (destinationPdf , cmpPdf , false );
132124 }
133125
0 commit comments