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,
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,
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 “symbol” in my fonts folder.
Hi Davide,