| Home | Trees | Indices | Help |
|
|---|
|
|
|
|||
|
__init__(self,
document,
page_size="a4",
label=None) Model a page in a document. |
||
| w(self) | ||
| h(self) | ||
|
add_resource(self,
resource,
document_level=True) Add a resource to this page or to this page's document (the default). |
||
| resources(self) | ||
|
canvas(self,
margin=0,
border=False,
clip=False) Return a canvas object for the whole page except a predefined set of margins. |
||
|
register_font(self,
font,
document_level=True) This function will register a font with this page and return a font_wrapper object, see above. |
||
|
|||
|
_font_wrappers Mapping of PostScript font names to font_wrapper instances for all the fonts registered with this page |
||
|
setup File-like buffer to hold page initialisation code. |
||
|
|||
|
|
|
|
|
Return a canvas object for the whole page except a predefined set of margins. The margin parameter may be either:
|
This function will register a font with this page and return a font_wrapper object, see above. The boolean document_level parameter determines whether the font will be a document resource or a page resource. The page will keep track which fonts have been registered with it and cache wrapper objects. The document_level parameter is only meaningfull for the first call to register_font() with any given font. Fonts are keyed by their PostScript name, not the font objects. |
|
|||
_font_wrappersMapping of PostScript font names to font_wrapper instances for all the fonts registered with this page |
setupFile-like buffer to hold page initialisation code. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Sun Oct 15 21:11:37 2006 | http://epydoc.sourceforge.net |