Hi,
We have Aspose.Total license and we are using Aspose v21.7.0 for converting HTML to Word and PDF document.
I have a table that has vertical headers, that is, out of the two columns, all the cells of the first column are TH elements while all the cells of the second column are TD elements.
But, specifically in the first row of the table, both the elements are being tagged as TH, instead of a TH and TD respectively, when converted from HTML to pdf. The elements in the rest of the rows get appropriately tagged as TH and TD respectively. Please refer to the screenshots for better understanding:
Actual.JPG (31.0 KB)
Expected.JPG (30.5 KB)
.
What I am expecting is:
col1 ---------------
col2
Header1 -----------
Data
(tagged as th)--------
(tagged as td)
Header2 -----------
Data
(tagged as th)--------
(tagged as td)
Header3 -----------
Data
(tagged as th)--------
(tagged as td)
And what I am getting instead is:
col1 ---------------
col2
Header1 -----------
Data
(tagged as th)--------
(tagged as th)
Header2 -----------
Data
(tagged as th)--------
(tagged as td)
Header3 -----------
Data
(tagged as th)--------
(tagged as td)
TH_TD_Tag_Aspose.zip (488 Bytes)
Please find attached the sample HTML which can be used to reproduce the issue.
As we are validating the generated document for ADA compliance, it is really important to us that the TH and TD tagging is done as per the expected guidelines. We are using Adobe Acrobat tool to validate the tags.