Table Column width specified in HTML is being lost after Mail Merge

Hii team,
I have used tb-lr to show header text vertically, I want those columns should be less in width than all other horizontal columns but all columns display the same width after mail merge using inserthtml.
The HTML used

<html>
<body>
    <table style="border:1px solid black; width:100%;display:inline-table;">
        <thead style="font:calibri;font-size:7pt">
            <tr style="border: 1px solid black;background-color:#d9d9d9;height:40pt;">
                <td style="border: 1px solid black;"><b>Candidate Name</b></td>
                <td style="border: 1px solid black;"><b>ID Number</b></td>
                <td style="border: 1px solid black;"><b>Interview Date</b></td>
                <td style="border: 1px solid black;writing-mode:tb-rl;width:10t;"><b>Interviewer1's Score</b></td>
                <td style="border: 1px solid black;writing-mode:tb-rl;width:10t;"><b>Interviewer2's Score</b></td>
                <td style="border: 1px solid black;"><b>Final Score</b></td>
                <td style="border: 1px solid black;writing-mode:tb-rl;width:10t;"><b>Interviewer1's Commment</b></td>
                <td style="border: 1px solid black;writing-mode:tb-rl;width:10t;"><b>Interviewer2's Commment</b></td>
                <td style="border: 1px solid black;"><b>Application Status</b></td>
                <td style="border: 1px solid black;"><b>ApplicantType</b></td>
            </tr>
        </thead>
        <tbody style="font:calibri;font-size:7pt">
            <tr style="border: 1px solid black;">
                <td style="border: 1px solid black;">Evaluation  </td>
                <td style="border: 1px solid black;">3141YJZ</td>
                <td style="border: 1px solid black;">02-Sep-23</td>
                <td style="border: 1px solid black;width:10pt">40</td>
                <td style="border: 1px solid black;width:10pt">40</td>
                <td style="border: 1px solid black;">80</td>
                <td style="border: 1px solid black;width:10pt">c4</td>
                <td style="border: 1px solid black;width:10pt">C1</td>
                <td style="border: 1px solid black;">Selected</td>
                <td style="border: 1px solid black;">External</td>
            </tr>
            <tr style="border: 1px solid black;">
                <td style="border: 1px solid black;">Sachin  Singh</td>
                <td style="border: 1px solid black;">A243SYI</td>
                <td style="border: 1px solid black;">13-Sep-23</td>
                <td style="border: 1px solid black;width:10pt">20</td>
                <td style="border: 1px solid black;width:10pt"></td>
                <td style="border: 1px solid black;">20</td>
                <td style="border: 1px solid black;width:10pt">NA</td>
                <td style="border: 1px solid black;width:10pt"></td>
                <td style="border: 1px solid black;">Selected</td>
                <td style="border: 1px solid black;">External</td>
            </tr>
        </tbody>
    </table>
</body>
</html>

After mail merge Document Screenshot

Please help ASAP.

@SachinSingh The problem is not reproducible on my side using the latest 23.9 version of Aspose.Words. Here is the output document produced on my side: out.docx (10.9 KB)

Code for testing and the template are the same as provided here:
https://forum.aspose.com/t/show-table-header-in-verticle/271472/8

@alexey.noskov can you please check once with 21.3 version?Or the with the HTML provided by me.Please its very urgent for me and it would be a great help.

Yes, you are right, it is actually losing the width after converting to PDF. Also the font is resetting to NewTimesRoman instead of Calibri.

@SachinSingh
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25948

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like