Hi there,
I have a Word document that contains the following HTML altchunk:
<html>
<head></head>
<body style="font-family: "Arial Narrow"; font-size: 11pt;">
<p>The list below contains a smaller font size</p>
<ol>
<li>First</li>
<li>Second</li>
</ol>
</body>
</html>
As you can see, it contains parapgraph of text, followed by an ordered list with two items. The document body’s style is set to use Arial Narrow with font size of 11 points.
When converting from Word to PDF (using the latest version of Aspose Words), the font size of the two items in the ordered list ends up being smaller than what it’s supposed to be (appears to be closer to a font size of 10 points rather than 11 points). The paragraph, on the other hand, does display in the correct font size.
To double-check, I opened the converted PDF file in Adobe Acrobat Reader. I could immediately notice the font size being smaller. Copy/pasting the text from Adobe Acrobat Reader into Microsoft Word proved that the font size of the items in the list was 10 points (instead of 11 points).
I have attached the Word document (containing the HTML altchunk), as well as the PDF document that was produced by the Aspose Words conversion.
font-size.docx (11.0 KB)
font-size.pdf (13.4 KB)
Any ideas?
Thanks,
Petar