final MasterReport report = new MasterReport();
final PageFormatFactory pff = PageFormatFactory.getInstance();
final Paper paper = pff.createPaper(PageSize.A4);
pff.setBorders(paper, 36.0f, 36.0f, 36.0f, 36.0f);
final PageFormat format = pff.createPageFormat(paper, PageFormat.PORTRAIT);
report.setPageDefinition(new SimplePageDefinition(format));
final Band pageHeader = report.getPageHeader();
pageHeader.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, 10.0f);
// the main heading is just a fixed label centered on the page...