Dear Eduardo,
Thanks for your patience!
Our Spire.Doc
follows the rules of MS Word. After further investigation, we found that even opening your file (Cartao-4.html) directly in the MS Word, the style is also different from that opened in the browser. Kindly note that the internal principle of Word is different from that of HTML, and many of the CSS styles in the HTML have no corresponding settings in the Word, thus it is impossible to make the converted PDF look the same as the original HTML. Sorry our Spire.Doc can't keep the same style while converting your HTML to PDF.
I suggest that you use the feature
Convert HTML to PDF with New Plugin provided by our Spire.PDF. I did a test with the latest
Spire.Office Platinum(Hotfix) Version:6.4.2 and found the result has a better effect, but there was still wrongs with the style. In fact, our plugin method is based on the Qt plugin of the Chrome kernel, if using the Google Chrome to print preview your HTML, there is still the problem. After investigation, I found the cause is the style media="screen" in your HTML. After removing it, our Spire.PDF will get the same style as the original HTML. Here I uploaded my modified HTML and generated PDF for your reference.
Thanks for your understanding again.
Sincerely,
Marcia
E-iceblue support team
Login to view the files attached to this post.