Public Method Details |
&pc4p_create_pdf |
public object pc4p_main &pc4p_create_pdf( [ array $info ] )
|
|
This is the first function which should be called, as it acquires the PDF-Pointer for all other operations.
|
Parameter |
|
array |
$info |
= >>array()<< |
|
here go the vars for the infos of the PDF |
|
Returns |
object pc4p_main $pdf the pdf-object, used by pc4p_create_page |
See Also |
pc4p_main::pc4p_main(), pc4p_main::pc4p_set_info() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
&pc4p_create_page |
public object pc4p_page &pc4p_create_page( object pc4p_main &$parent, string $format, [ string $orientation, string $dimensions ] )
|
|
This function is used to create new pages. Can take a standard pagesize or user defines.
|
Parameter |
|
object pc4p_main |
&$parent |
|
|
parent of the page, can only be a PDF-Object |
|
|
string |
$format |
|
|
name of a standard pagesize or "user" |
|
|
string |
$orientation |
= >>"p"<< |
|
"portrait", "p" or "landscape", "l" - will be ignored, if format is "user" |
|
|
string |
$dimensions |
= >>""<< |
|
or the dimensions if page is "user"-defined x |
|
Returns |
object pc4p_page $page a page-object is returned, used by pc4p_create_object |
See Also |
pc4p_page::pc4p_page() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
&pc4p_create_object |
public object pc4p_object &pc4p_create_object( object pc4p_page &$parent, [ string $object_type ] )
|
|
Here we have the wrapper for all the other objects: Text, tables, boxes, images and a object, which is used as container.
|
Parameter |
|
object pc4p_page |
&$parent |
|
|
parent of the object, usually a page, or some container-object such as boxes and tables |
|
|
string |
$object_type |
= >>"object"<< |
|
type of object to be created, if empty a container-object is created |
|
Returns |
object pc4p_object $object the object, which was created by this function |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|