public static byte[] CreateLineSpaceData(Emulation emulation) { byte[] data = Encoding.UTF8.GetBytes("Hello World."); ICommandBuilder builder = StarIoExt.CreateCommandBuilder(emulation); builder.BeginDocument(); builder.AppendLineSpace(32); builder.AppendLineFeed(data); builder.AppendLineFeed(data); builder.AppendLineFeed(data); builder.AppendLineSpace(24); builder.AppendLineFeed(data); builder.AppendLineFeed(data); builder.AppendLineFeed(data); builder.AppendLineSpace(32); builder.AppendLineFeed(data); builder.AppendLineFeed(data); builder.AppendLineFeed(data); builder.AppendLineSpace(24); builder.AppendLineFeed(data); builder.AppendLineFeed(data); builder.AppendLineFeed(data); builder.AppendCutPaper(CutPaperAction.PartialCutWithFeed); builder.EndDocument(); return(builder.Commands); }