We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Wrong font for accented characters- after PDF -> Word doc conversion

Hello,

When converting a PDF to a Word doc with Aspose, the font of accented characters is changed to Calibri.

Attached files:
test.pdf: the original PDF file
test.doc: the Word document generated by Aspose, from the above PDF. The text uses the Times New Roman font, except for accented characters which are in Calibri. This is a bug, the whole text should use the same font.

C# code:

public byte[] GetWordDocument()
{
using (MemoryStream inStream = new MemoryStream(File.ReadAllBytes(@“C:\test.pdf”)))
using (MemoryStream outStream = new MemoryStream())
{
Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(inStream);
pdf.Save(outStream, Aspose.Pdf.SaveFormat.Doc);
return outStream.GetBuffer();
}
}

Can anyone confirm this problem, and suggest a workaround?
Thanks.

Hi Thomas,


<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>Thanks
for using our products.<o:p></o:p>

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-34888. We will investigate this issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.

The issues you have found earlier (filed as PDFNEWNET-34888) have been fixed in Aspose.Pdf for .NET 9.5.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.