#if DEBUG MigraDoc.DocumentObjectModel.IO.DdlWriter dw = new MigraDoc.DocumentObjectModel.IO.DdlWriter("HelloWorld.mdddl"); dw.WriteDocument(document); dw.Close(); #endif
\section [ PageSetup { PageHeight = "29.7cm" PageWidth = "21cm" Orientation = Portrait LeftMargin = "2.5cm" RightMargin = "2.5cm" TopMargin = "2.5cm" BottomMargin = "2cm" FooterDistance = "1.25cm" HeaderDistance = "1.25cm" OddAndEvenPagesHeaderFooter = false DifferentFirstPageHeaderFooter = false SectionStart = BreakNextPage PageFormat = A4 MirrorMargins = false HorizontalPageBreak = false } ] { \paragraph [ Style = "Normal" Format { Font { Name = "Verdana" Size = 10 Bold = false Italic = false Underline = None Superscript = false Color = CMYK(100,30,20,50) } Alignment = Left LeftIndent = 0 FirstLineIndent = 0 RightIndent = 0 SpaceBefore = 0 SpaceAfter = 0 LineSpacingRule = Single LineSpacing = 10 KeepTogether = false KeepWithNext = false WidowControl = true PageBreakBefore = false OutlineLevel = BodyText } ] { \font [Name = "Verdana" Size = 10 Bold = true Italic = false Underline = None Superscript = false Color = CMYK(100,30,20,50) ] {Hello, World!} } }