Public Method Details |
pc4p_set_newpage |
public void pc4p_set_newpage(mixed $newpage)
|
|
Sets if a new page after a pagebreak shall be created, or if a already created page shall be used
|
Parameter |
|
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_margin |
public void pc4p_set_margin(mixed $margin)
|
|
A Page can have margins to space the objects from the, well, paper-border. The array should look like array( "top" => top, "bottom" => bottom, "left" => left, "right" => right ) or be an integer value
|
Parameter |
|
mixed |
$margin |
|
|
Array containing the margins for the page or an integer to set all margins |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_add_bookmark |
public integer pc4p_add_bookmark(string $text, [ integer $parent, integer $open ])
|
|
This is one of the hypertext-functions of PDF. You can link pages to create a content-overview. If no parent is set, a new root will be created.
|
Parameter |
|
string |
$text |
|
|
Description for the bookmark |
|
|
integer |
$parent |
= >>0<< |
|
Parent node, if $parent == 0 a new root will be created |
|
|
integer |
$open |
= >>1<< |
|
Triggers if the children get folded out |
|
Returns |
integer $identifier New node-identifier |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_bgcolor |
public void pc4p_set_bgcolor(string $bgcolor)
|
|
You can define a background color here or reset the color to default, if you don't give a parameter
|
Parameter |
|
string |
$bgcolor |
|
|
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_bgimage |
public void pc4p_set_bgimage(string $imgfile, string $imgtype, [ integer $xoffset, integer $yoffset, float $scale ])
|
|
You can define an image, which is used as a background-image for the page. Needed parameters are the image-name, the type of the image (gif, jpg, png, etc. ) and the exact location, where this image shall be placed. The fourth parameter is for scaling the image.
|
Parameter |
|
string |
$imgfile |
|
|
Name of the bg-image |
|
|
string |
$imgtype |
|
|
Type of the bg-image |
|
|
integer |
$xoffset |
= >>0<< |
|
X-offset of the bg-image ( 0 |
|
|
integer |
$yoffset |
= >>0<< |
|
Y-offset of the bg-image ( 0 |
|
|
float |
$scale |
= >>1<< |
|
Scale of the bg-image |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_draw |
public void pc4p_draw(object pc4p_main &$parent)
|
|
Begins the page with the dimensions, calls the draw for each child and closes the page. Called as last function in the class.
|
Parameter |
|
object pc4p_main |
&$parent |
|
|
|
|
Returns |
void |
See Also |
pc4p_object::pc4p_draw(), pc4p_page::pc4p_draw_children() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|