#if DEBUG MigraDoc.DocumentObjectModel.IO.DdlWriter dw = new MigraDoc.DocumentObjectModel.IO.DdlWriter("HelloWorld.mdddl"); dw.WriteDocument(document); dw.Close(); #endif