Re: Issue with rendering of bulleted and numbered lists

I have the same issue with Aspose Words 15.5.0.0 for .NET in VS2010

For view the issue, try this simple code:

Dim doc As New Document()
Dim builder As New DocumentBuilder(doc)
Dim par As Paragraph = builder.InsertParagraph()
par.ListFormat.ApplyBulletDefault()
builder.Writeln(“First”)
builder.Writeln(“Second”)
builder.Write(“Third”)
doc.Save(“C:\test.pdf”, SaveFormat.Pdf)

I have attached the pdf generated from this code.

Thanks

Hi Davide,


Thanks for your inquiry. After an initial test with Aspose.Words 15.6.0, I was unable to reproduce this issue on my side. Please upgrade to the latest version of Aspose.Words from the following link. I hope, this helps.
http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx

Do you get the same problem when saving to DOCX instead of PDF? Please make sure that ‘Symbol’ font is installed on your machine.

Best regards,

Hi,

yes, I have Symbol font installed.
I now tried with Aspose.Words 15.6.0 ant the issue remain.

I have used this code (plus code for license key file), and the pdf is wrong, the docx is right.
I have attach the generate files

Dim doc2 As New Document()
Dim builder As New DocumentBuilder(doc2)
Dim par As Paragraph = builder.InsertParagraph()
par.ListFormat.ApplyBulletDefault()
builder.Writeln(“First”)
builder.Writeln(“Second”)
builder.Write(“Third”)
doc2.Save(“C:\test2.pdf”, SaveFormat.Pdf)
doc2.Save(“C:\test2.docx”, SaveFormat.Docx)

ps: I’m use VB.NET 2010 with .NET framework 4.

regards,

Davide

Hi,

I discovered the cause, I’m using this statement in my code:

Aspose.Words.Fonts.FontSettings.SetFontsFolder(IO.Path.Combine(Application.StartupPath, “Fonts”), True)

Without this code, the pdf generated in right, with this code che pdf is wrong, also if the folder “Fonts” in empty (in my case I have several fonts).

In attachment a simple example project

Regards,
Davide

Hi Davide,


Thanks for your inquiry. Please refer to the following articles:

http://www.aspose.com/docs/display/wordsjava/How+to+Receive+Notification+of+Missing+Fonts+and+Font+Substitution+during+Rendering
http://www.aspose.com/docs/display/wordsjava/How+Aspose.Words+Uses+True+Type+Fonts
http://www.aspose.com/docs/display/wordsjava/How+to++Specify+True+Type+Fonts+Location

I hope, this helps.

Best regards,

Thank You,

I used the method SetFontsFolder thinking that Aspose.Words still continue to use the system fonts.
I solved my problem by placing the font “symbolin my fonts
folder.

Hi Davide,


It is great you were able to find what you were looking for. Please let us know any time you have any further queries.

Best regards,