At the moment the combination of textual and graphical elements within one document is not supported (for future plans refer to
[[Report API redesign ]]), thus Text and Graphical reports are implemented via separate APIs, though they have a common part.This common part is implemented in the [http://www.gramps-project.org/ api3/ BaseDoc.BaseDoc-class.html BaseDoc class], which contains among others basic document opening, closing, and stylesheet handling methods. It also stores the physical description of a page (sheet of paper in print).
'''Note!''' The <tt>BaseDoc.open</tt> and the <tt>BaseDoc.close</tt> methods have to be implemented by the subclassed document generators.