PDF Font Loss Issue When Converting Documents on Server Environment

Hi Team,

When converting Word documents to PDF format using Aspose.Words on our server environment, fonts (specifically those highlighted in yellow in the attached input Word file) are not being embedded or rendered correctly in the output PDF.

I have attached both the input DOC file and the output PDF for your reference.

We are using Aspose.Words Version 22.12.0.0, and below is the code we use for converting DOC to PDF:

public static void SaveMultipleWordFilesToPdf(List wordDocuments, string outputFilePath)
{
var output = new Document();

foreach (var wordDoc in wordDocuments)
{
	MemoryStream _ms = new MemoryStream();
	wordDoc.CopyTo(_ms);
	var input = new Document(_ms);				
	// Append the source document to the end of the destination document.
	output.AppendDocument(input, ImportFormatMode.KeepSourceFormatting);
}
// Save with all fonts embedded
var pdfSaveOptions = new PdfSaveOptions
{
	EmbedFullFonts = true,
	FontEmbeddingMode = PdfFontEmbeddingMode.EmbedAll
};

output.Save(outputFilePath, pdfSaveOptions);

}

What is the recommended approach for ensuring fonts are properly embedded in PDFs when converting in server environments?

Input_word_file.docx (15.0 KB)

Converted_PDF.pdf (73.1 KB)

This topic has been moved to the related forum: PDF Font Loss Issue When Converting Documents on Server Environment - Free Support Forum - aspose.com