Converting DOCX to PDF producing wrong font size in HTML lists

Hi there,

I have a Word document that contains the following HTML altchunk:

<html>
  <head></head>
  <body style="font-family: &quot;Arial Narrow&quot;; 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

@pkozul Thank you for reporting this problem to us. For a sake of correction it has been logged as WORDSNET-23880. We will keep you informed and let you know once it is resolved.

1 Like

Hi @alexey.noskov

Were you able to reproduce this issue?

Thanks,
Petar

@pkozul Yes, we have managed to reproduce the problem. Currently the issue is in a queue for analysis. We will keep you updated and let you know once the issue is resolved or we have additional information for you.

Hi @alexey.noskov

Is there any new info on this issue? I can see it’s marked as Status : Postponed

Thanks,
Petar

@pkozul We have completed analyzing the issue and detected why the occurs. However, the issue is currently postponed and is not yet scheduled for development. We will keep you informed and let you know once the issue is resolved.

1 Like