Converting DOCX to PDF losing indentation

Hi there,

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

<html>
  <head>
    <title>
    </title>
    <meta charset="utf-8">
  </head>
  <body style="line-height: 108%; font-family: Verdana; font-size: 10pt; color: black;">
    <meta charset="utf-8">
    <p style="margin-top: 0px; margin-bottom: 1em;"><b>
      <span style="text-decoration: underline; font-family: Verdana; font-size: 10pt;">Test Heading </span>
      </b>
    </p>
    <p style="text-indent: -34.9pt; margin-left: 36pt; margin-top: 0px; margin-bottom: 1em;">
      <span style="font-family: Verdana; font-size: 10pt;">(2) (a)<span style="width: 8.23pt; display: inline-block; font-family: 'Times New Roman'; font-size: 7pt;"></span></span><span style="font-family: Verdana; font-size: 10pt;">Some points below:</span>
    </p>
    <ol type="i" style="margin:0pt; padding-left:0pt">
      <li style="margin-left: 59pt; padding-left: 13pt; font-size: 10pt; font-family: Verdana;">
        <span style="font-family: Verdana; font-size: 10pt;">first point</span>
      </li>
      <li style="margin-left: 59pt; padding-left: 13pt; font-size: 10pt; font-family: Verdana;">
        <span style="font-family: Verdana; font-size: 10pt;">second point</span>
      </li>
      <li style="margin-left: 59pt; padding-left: 13pt; font-size: 10pt; font-family: Verdana;">
        <span style="font-family: Verdana; font-size: 10pt;">third point</span>
      </li>
    </ol>
  </body>
</html>

When converting from Word to PDF (using the latest version of Aspose Words), the indentation does not match what appears in Word. Below is what the Word content looks like, compared to what it looks like after being converted to PDF.

It seems that the margin:0pt and padding-left:0pt are not being applied on the <ol> element, in combination with the margin-left: 59pt on the <li> elements.

I have attached the Word document (containing the HTML altchunk), as well as the PDF document that was produced by the Aspose Words conversion.

example.docx (13.8 KB)
example.pdf (18.7 KB)

Any ideas?

Thanks,
Petar

@pkozul
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-25415

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.