public static void Run()
{
// ExStart:EmbeddAllFonts
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_RenderingAndPrinting();
Document doc = new Document(dataDir + "Rendering.doc");
// Aspose.Words embeds full fonts by default when EmbedFullFonts is set to true. The property below can be changed
// Each time a document is rendered.
PdfSaveOptions options = new PdfSaveOptions();
options.EmbedFullFonts = true;
string outPath = dataDir + "Rendering.EmbedFullFonts_out.pdf";
// The output PDF will be embedded with all fonts found in the document.
doc.Save(outPath, options);
// ExEnd:EmbeddAllFonts
Console.WriteLine("\nAll Fonts embedded successfully.\nFile saved at " + outPath);
EmbeddSubsetFonts(doc, dataDir);
}
private static void EmbeddSubsetFonts(Document doc, string dataDir)