Hi Aspose,
When I convert OTT to PDF using Aspose 23.12, some characters displayed wrong in the ouput file.
This issue only appears when running on Linux.
Here is my current code:
var opt = new Aspose.Words.Loading.LoadOptions
{
LoadFormat = Aspose.Words.LoadFormat.Auto
};
var doc = new Document(inFile, opt);
doc.AcceptAllRevisions();
doc.Save(outFile, Aspose.Words.SaveFormat.Pdf);
Please help investigate and fix it. Thanks
sample.zip (2.0 MB)
@dunghnguyen The problem on your side might occur because the fonts used in your input document are not available on the machine where document is converted to PDF. The fonts are required to build document layout. If Aspose.Words cannot find the font used in the document, the font is substituted. This might lead into fonts mismatch and document layout differences due to the different fonts metrics. You can implement IWarningCallback to get notifications when font substitution is performed.
Please see our documentation to learn where Aspose.Words looks for fonts:
https://docs.aspose.com/words/net/specifying-truetype-fonts-location/