We are using aspose to convert a word documento to pdf with this code:
---------------------------------------------------
Stream streamFichero = new MemoryStream(byteArray);
Document doc = new Document(streamFichero);
//Save the document in Aspose.Pdf.Xml format.
doc.Save(strOutputDirectory + strPDFName + ".xml", SaveFormat.AsposePdf);
//Read the document in Aspose.Pdf.Xml format into Aspose.Pdf.
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.BindXML(strOutputDirectory + strPDFName + ".xml", null);
//Instruct to delete temporary image files.
pdf.IsImagesInXmlDeleteNeeded = true;
//Produce the PDF file.
pdf.Save(strOutputDirectory + strPDFName);
-------------------------------------------------
The problem we have is that some word documents use fonts that aren’t installed on the server and we get this error: “The Font ‘XXXXX’ is not found. This font is not supported.”
Is there any way to avoid this kind of errors (maybe replacing the “not supported fonts” with another)?
Thanks in advance.