//// This code is part of Document Solutions for Word demos.// Copyright (c) MESCIUS inc. All rights reserved.//usingSystem.IO;usingGrapeCity.Documents.Word; namespaceDsWordWeb.Demos{// This sample shows how to enumerate and remove embedded font data from a DOCX.// Compare the size of the resulting DOCX with the size of the original "EmbedFonts.docx".publicclassRemoveEmbedFonts {publicGcWordDocumentCreateDocx() {GcWordDocument doc = newGcWordDocument(); // Load a DOCX that contains embedded font: doc.Load(Path.Combine("Resources", "WordDocs", "EmbedFonts.docx")); // Enumerate the embedded fonts:foreach (var fi in doc.Fonts) {// Remove all embedded fonts: fi.Embedded.Clear(); } // Done:return doc; } }}