Working with Java spire.doc, version 5.4.10, I got error Parameter 'emSize' 0.0 is invalid when trying to appendHtml.
I found that you solve this kind of issue with version 4.8.0, but there is still problem in some specific html code.
Here is code:
- Code: Select all
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
<tr>
<td align="center" style="font-size:0px;padding:40px 10px 10px 10px;word-break:break-word;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" >
<tr>
<td>
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="float:none;display:inline-table;">
<tr>
<td style="padding:4px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:transparent;border-radius:3px;width:50px;">
<tr>
<td style="font-size:0;height:50px;vertical-align:middle;width:50px;"><a href="http://www.facebook.com" target="_blank" style="color: #000000;"><img alt="Facebook" height="50" src="https://d70shl7vidtft.cloudfront.net/editor/social-icos/simple/facebook.png" style="border-radius:3px;display:block;" width="50"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
If I have "font-size:0px" on line 3, I got this error. But only in case, that it is used with units, no matter if it is px, em, rem or cm.
If used without units "font-size:0" everything is working well.
Interesting is that in other cases it does not matter, only in this specific case. E.g., if there is not any code inside <td> from line 3, no error message is thrown.
And also, on line 12 I am able to use "font-size:0px" with units or without units with no error.