internal static void Map(Font font, MigraDoc.DocumentObjectModel.Document domDocument, string domStyleName) { MigraDoc.DocumentObjectModel.Style domStyle = domDocument.Styles[domStyleName]; if (domStyle != null) { FontMapper mapper = new FontMapper(); mapper.MapObject(font, domStyle.Font); } }
public ExportDocument() { Document = new MigraDoc.DocumentObjectModel.Document(); Style = Document.Styles["Normal"]; Style.Font = new MigraDoc.DocumentObjectModel.Font("Arial", 10); Style = Document.Styles.AddStyle("Footer", "Normal"); Style.Font.Size = 8; FirstSection = Document.AddSection(); }