Line numbers have wrong style when saving as Pdf

Hi there
Here is a small example of code that demonstrates the problem.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.PageSetup.LineStartingNumber = 1;
builder.PageSetup.LineNumberCountBy = 1;
builder.Document.Styles[StyleIdentifier.LineNumber].Font.Size = 7.5;
builder.InsertHtml("<p>Line1<br />Line2<br />Line3<br />Line4<p>";
doc.Save("MyWordDoc.docx", SaveFormat.Docx);
doc.Save("MyPdfDoc.pdf", SaveFormat.Pdf);

Notice how the line numbers in the resulting Word-document have the correct size;
Notice how the line numbers in the resulting Pdf-file have the wrong size;
The same problem occurs if I make a word document in Word2007, set the line number style to have a size of 7.5. Save it. Load that document with Aspose.Word like: Document doc = new Document(“MyWordTemplate.docx”); Using this document instead of setting the style in code gives the same result: word-document has correct line number size, pdf-file has wrong line number size.

Hi Allan,

Thank you for inquiry. While
using latest Aspose.Words 11.1.0. I managed to
reproduce this problem on my side. I have logged your issue as WORDSNET-6091 into our bug
tracking system. Your request has also been linked to the appropriate
issue. Once we sort it out, we will let you know. Sorry for inconvenience.

I have now downloaded and tested with the newest Aspose.Word (13.10.0).
And I am still not able to change the size of the line numbers using the above code example.

Do you have an idea about how I can do this?

Hi Allan
This issue is not fixed yet. I have asked the development team to share the current status of this issue and you will be updated as soon as our development team shares the status/ETA.
Sorry for the inconvenience.
Best Regards,

@all_attack,
The issues you have found earlier (filed as WORDSNET-6091) have been fixed in this Aspose.Words for .NET 17.12 update and this Aspose.Words for Java 17.12 update.
Please also check the following articles: