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.
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.