final OutputProcessor outputProcessor = layoutProcess.getOutputProcessor();
outputProcessor.processDocumentMetaData(layoutProcess.getDocumentContext());
this.pageContext = new RenderPageContext(layoutProcess, pageContext);
// create the initial pagegrid.
final PageGrid pageGrid =
this.pageContext.createPageGrid(this.layoutProcess.getOutputMetaData());
// initialize the logical page. The logical page needs the page grid,
// as this contains the hints for the physical page sizes.
logicalPageBox = new LogicalPageBox(pageGrid);