The content generator is the third stage content processor.
This part is responsible to process the generated display model
and to prepare it for rendering it to the output medium.
In the simplest case, the content generator will be able to pass the
display model without any changes. In the more complicated cases, the
display model needs to be flattened (as text processors cannot contain
paragraphs inside other paragraphs, for instance) before it can be rendered.
finishedDocument
public void finishedDocument()
throws NormalizationException
Receives notification, that a new flow has started. A new flow is started
for each flowing or absolutly positioned element.
getRenderer
public Renderer getRenderer()
handlePageBreak
public void handlePageBreak(PageContext pageContext)
This event handler is triggered by 'LayoutProcess.pageBreakEncountered()'.
startedDocument
public void startedDocument(PageContext pageContext)
throws NormalizationException
Receives the information, that the document processing has been started.
This is fired only once.
pageContext
- the page context for the default page.