@@ -58,10 +58,9 @@ public virtual void SimpleLinkTest() {
5858 converterProperties . SetFontProvider ( fontProvider ) ;
5959 HtmlConverter . ConvertToPdf ( new FileStream ( sourceHtml , FileMode . Open , FileAccess . Read ) , pdfDocument , converterProperties
6060 ) ;
61- /* TODO: DEVSIX-7996 - Links created from html2pdf are not ua-2 compliant
62- * Two verapdf errors are generated here:
63- * 1. clause="8.9.4.1", Link annotation neither has a Contents entry nor alternate description.
64- * 2. clause="8.5.1", Real content that does not possess the semantics of text objects and does not have
61+ /* TODO: DEVSIX-5700 - Links created from html2pdf are not ua-2 compliant
62+ * One verapdf error is generated here:
63+ * 1. clause="8.5.1", Real content that does not possess the semantics of text objects and does not have
6564 * an alternate textual representation is not enclosed within Figure or Formula structure elements.
6665 */
6766 CompareAndCheckCompliance ( destinationPdf , cmpPdf , false ) ;
@@ -80,10 +79,31 @@ public virtual void BackwardLinkTest() {
8079 converterProperties . SetFontProvider ( fontProvider ) ;
8180 HtmlConverter . ConvertToPdf ( new FileStream ( sourceHtml , FileMode . Open , FileAccess . Read ) , pdfDocument , converterProperties
8281 ) ;
83- /* TODO: DEVSIX-7996 - Links created from html2pdf are not ua-2 compliant
84- * Two verapdf errors are generated here:
85- * 1. clause="8.9.4.1", Link annotation neither has a Contents entry nor alternate description.
86- * 2. clause="8.5.1", Real content that does not possess the semantics of text objects and does not have
82+ /* TODO: DEVSIX-5700 - Links created from html2pdf are not ua-2 compliant
83+ * One verapdf error is generated here:
84+ * 1. clause="8.5.1", Real content that does not possess the semantics of text objects and does not have
85+ * an alternate textual representation is not enclosed within Figure or Formula structure elements.
86+ */
87+ CompareAndCheckCompliance ( destinationPdf , cmpPdf , false ) ;
88+ }
89+
90+ [ NUnit . Framework . Test ]
91+ public virtual void ImageLinkTest ( ) {
92+ String sourceHtml = SOURCE_FOLDER + "imageLink.html" ;
93+ String cmpPdf = SOURCE_FOLDER + "cmp_imageLink.pdf" ;
94+ String destinationPdf = DESTINATION_FOLDER + "imageLink.pdf" ;
95+ PdfDocument pdfDocument = new PdfDocument ( new PdfWriter ( destinationPdf , new WriterProperties ( ) . SetPdfVersion
96+ ( PdfVersion . PDF_2_0 ) ) ) ;
97+ CreateSimplePdfUA2Document ( pdfDocument ) ;
98+ ConverterProperties converterProperties = new ConverterProperties ( ) ;
99+ FontProvider fontProvider = new DefaultFontProvider ( false , true , false ) ;
100+ converterProperties . SetFontProvider ( fontProvider ) ;
101+ converterProperties . SetBaseUri ( SOURCE_FOLDER ) ;
102+ HtmlConverter . ConvertToPdf ( new FileStream ( sourceHtml , FileMode . Open , FileAccess . Read ) , pdfDocument , converterProperties
103+ ) ;
104+ /* TODO: DEVSIX-5700 - Links created from html2pdf are not ua-2 compliant
105+ * One verapdf error is generated here:
106+ * 1. clause="8.5.1", Real content that does not possess the semantics of text objects and does not have
87107 * an alternate textual representation is not enclosed within Figure or Formula structure elements.
88108 */
89109 CompareAndCheckCompliance ( destinationPdf , cmpPdf , false ) ;
0 commit comments