Public Method Details |
pc4p_text |
public void pc4p_text(object pc4p_page &$parent)
|
|
Calls the constructor of pc4p_object and sets the textleading to the value of the parent...if it's not empty
|
Parameter |
|
object pc4p_page |
&$parent |
|
|
Parent of the text |
|
Returns |
void |
See Also |
pc4p_object::pc4p_object() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_weblink |
public void pc4p_set_weblink(string $weblink, [ string $style, integer $width, string $color ])
|
|
Add a weblink to this object, that will be opened on clicking on this object
|
Parameter |
|
string |
$weblink |
|
|
The URI of the weblink |
|
|
string |
$style |
= >>""<< |
|
The style of the border representing the weblink; "solid" or "dashed" |
|
|
integer |
$width |
= >>-1<< |
|
The width of the border representing the weblink; 0 represents an invisible border |
|
|
string |
$color |
= >>""<< |
|
The color of the border representing the weblink; you can use one of the 16 standardcolors from HTML or the hex-notation (#rrggbb) |
|
Returns |
void |
See Also |
pc4p_main::pc4p_check_color() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_alignment |
public void pc4p_set_alignment([ string $alignment ])
|
|
The same functionality as in every other document-software
Warning: documentation is missing.
|
Parameter |
|
string |
$alignment |
= >>"left"<< |
|
Valid values are "left", "center", "right" and "justify" |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_font |
public void pc4p_set_font(string $fontname, [ integer $fontsize, string $encoding, integer $embed ])
|
|
This is the function, with which you define everything concerning the font of your text.
|
Parameter |
|
string |
$fontname |
|
|
Name of your font |
|
|
integer |
$fontsize |
= >>10<< |
|
Size of the font...reasonable values please |
|
|
string |
$encoding |
= >>"host"<< |
|
You should leave this alone, until you know what you're doing |
|
|
integer |
$embed |
= >>0<< |
|
Triggers if the font will get embedded |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_text |
public void pc4p_set_text(string $text)
|
|
Do I really have to explain this function? I hope not...
|
Parameter |
|
string |
$text |
|
|
Accepts a string. Use \n for linefeeds. |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_underline |
public void pc4p_set_underline()
|
|
Call this function to enable underline for your text
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_rendering |
public void pc4p_set_rendering(integer $mode)
|
|
Use this function, if you want to change the rendering-mode of this textobject
|
Parameter |
|
integer |
$mode |
|
|
We only support modes 0 to 3, as clipping paths make no sense here ( 0 => fill text, 1 => outline text, 2 => fill and outline, 3 => invisible text ) |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_textcolor |
public void pc4p_set_textcolor(string $textcolor)
|
|
You can define a textcolor here or reset the fillcolor to default, if you don't give a parameter
|
Parameter |
|
string |
$textcolor |
|
|
You can use one of the 16 standardcolors from HTML or the hex-notation (#rrggbb) |
|
Returns |
void |
See Also |
pc4p_main::pc4p_check_color() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_split_text |
public object pc4p_text pc4p_split_text(integer $row)
|
|
Very important function for pagebreak
|
Parameter |
|
integer |
$row |
|
|
Row, where the table shall be split |
|
Returns |
object pc4p_text $split Rest of the text, including the row you specified |
See Also |
pc4p_object::pc4p_make_objcopy() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_draw |
public void pc4p_draw()
|
|
Draws the text for the set fontoptions and the calculated linefeeds
Warning: documentation is missing.
|
Returns |
void |
See Also |
pc4p_text::pc4p_calc_alignment() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|