Plugins

# Class: PdfWriter Source Location: /plugins/exportPdf/client/ExportPdfObjects.php
### Interface Overview
Interface for PDF generators tools. | ### Methods addGfxBlock addLegend addPage addTable addTableCell addTableRow addTextBlock finalizeDocument getPageHeight getPageWidth initializeDocument
### Class Details [line 590] Interface for PDF generators tools. [ Top ] ### Class Methods ### method addGfxBlock [line 624]
`void addGfxBlock( PdfBlock $block)`
Adds a block with graphical (image, PDF...) content. #### Tags:
access: | public
#### Parameters:
PdfBlock | $block |
[ Top ] ### method addLegend [line 652]
`void addLegend( PdfBlock $block)`
Draws the legend block. #### Tags:
access: | public
#### Parameters:
PdfBlock | $block |
[ Top ] ### method addPage [line 612]
`void addPage( )`
Adds a new page to PDF document. #### Tags:
access: | public
[ Top ] ### method addTable [line 646]
`void addTable( PdfBlock $block)`
Draws a table block. #### Tags:
access: | public
#### Parameters:
PdfBlock | $block |
[ Top ] ### method addTableCell [line 632]
`void addTableCell( string $text, float $width, float $height)`
Draws a tabular element cell. #### Tags:
access: | public
#### Parameters:
string | $text | textual content
float | $width | width
float | $height | height
[ Top ] ### method addTableRow [line 640]
`void addTableRow( PdfBlock $block, TableElement $table, array $row)`
Draws a table row. #### Tags:
access: | public
#### Parameters:
PdfBlock | $block |
TableElement | $table |
array | $row | row data
[ Top ] ### method addTextBlock [line 618]
`void addTextBlock( PdfBlock $block)`
Adds a block with textual content. #### Tags:
access: | public
#### Parameters:
PdfBlock | $block |
[ Top ] ### method finalizeDocument [line 657]
`void finalizeDocument( )`
Performs final PDF operations and outputs document. #### Tags:
access: | public
[ Top ] ### method getPageHeight [line 607]
`float getPageHeight( )`
Returns page height in PdfGeneral dist_unit. #### Tags:
access: | public
[ Top ] ### method getPageWidth [line 601]
`float getPageWidth( )`
Returns page width in PdfGeneral dist_unit. #### Tags:
access: | public
[ Top ] ### method initializeDocument [line 595]
`void initializeDocument( )`
Sets general data and opens PDF document. #### Tags:
access: | public
[ Top ] Documentation generated on Fri, 21 Sep 2007 13:30:46 +0200 by phpDocumentor 1.3.0RC3