public void DocumentBuilderSetSectionFormatting()
{
//ExStart
//ExId:DocumentBuilderSetSectionFormatting
//ExSummary:Shows how to set such properties as page size and orientation for the current section.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Set page properties
builder.PageSetup.Orientation = Orientation.Landscape;
builder.PageSetup.LeftMargin = 50;
builder.PageSetup.PaperSize = PaperSize.Paper10x14;
//ExEnd
}