rtfFile |
|
public object rtfFile rtfFile( )
|
| |
Constructor
has no arguments
|
| Returns |
object rtfFile (an instance of this class) |
| |
setFontSize |
|
public void setFontSize( [ integer $size ] )
|
| Parameter |
|
|
| |
set the actual font size
font size as argument
|
| Returns |
void |
| |
setFontFamily |
|
public void setFontFamily( string $font )
|
| Parameter |
|
| string |
$font |
|
|
values: Arial, Times New Roman, Verdana, Garamond, Courier |
|
| |
set the actual FontFamily
|
| Returns |
void |
| |
setFontColor |
|
public void setFontColor( $color )
|
| Parameter |
|
|
| |
set the actual font color
|
| Returns |
void |
| |
setBgColor |
|
public void setBgColor( )
|
| |
set the actual background color
expects 3 numbers (RGB) or one color value (HEX) as parameter
|
| Returns |
void |
| |
resetFontColor |
|
public void resetFontColor( )
|
| |
reset the font color to default value
|
| Returns |
void |
| |
resetBgColor |
|
public void resetBgColor( )
|
| |
reset the background color to default value
|
| Returns |
void |
| |
addText |
|
public void addText( $textString )
|
| Parameter |
|
|
| |
inserts a text string
possible params are (textString, [fontSize], [alignment], [fontColor], [fontFamily] )
Example: ->addText("My text string", 10, "center", "0000CC");
|
| Returns |
void |
| |
createTable |
|
public object table createTable( $cols, [$width], [$align], [$bgcolor])
|
| Parameter |
|
|
| |
create a new table object
createTable(cols, [width], [align], [bgcolor])
|
| Returns |
object table
(an instance of the table class) |
| |
getContent |
|
public string getContent( )
|
| |
returns the whole content of the created RTF-File
|
| Returns |
string $content |
| |
createFile |
|
public boolean createFile( $fileName )
|
| Parameter |
|
|
| |
stores the RTF file as "fileName"
|
| Returns |
boolean if the file was created |
| |
newLine |
|
public void newLine( )
|
| |
starts a new line
|
| Returns |
void |
| |
newPage |
|
public void newPage( )
|
| |
starts a new page
|
| Returns |
void |
| |