The
IlvPrintableDocument
class is the top-level class of the document model. It is designed
as a page holder to which you can add pages defined by the IlvPage class.
There are two ways to fill a document:
- Simply create pages (
IlvPage
class) and add them to the document using the addPage and removePage methods. - Associate an IlvFlow object with the document.The
IlvFlow
object allows you to add styled text to a document; if you decide to use anIlvFlow
object, it will create and manage the pages of the document for you depending on the text, the alignments, and the styling properties that you specify in theIlvFlow
object.Later in this topic you will see how to associate anIlvFlow
object with a document.NoteSome Rogue Wave® JViews packages provide subclasses of theIlvPrintableDocument
class that manage the pages for you. For example, Rogue Wave JViews Gantt provides a subclass that can automatically create its pages to display a chart in multiple pages. For more information see the Rogue Wave JViews Gantt documentation.