Public Method Details |
pc4p_set_savepdf |
public void pc4p_set_savepdf(string $save_pdf, [ string $filename ])
|
|
If you want to make a direct save, or if you want to change the filename, this is the function you should use
|
Parameter |
|
string |
$save_pdf |
|
|
"inline", "attached", "drive", or the first char of these |
|
|
string |
$filename |
= >>""<< |
|
When saving on a drive, with leading directories, else without |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_newpage |
public void pc4p_set_newpage(mixed $newpage)
|
|
Sets if a new page after a pagebreak shall be created, or if an already created page shall be used
|
Parameter |
|
mixed |
$newpage |
|
|
"yes", "y", 1 - take your pick, anything that looks true will force a newpage |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_draw |
public void pc4p_draw()
|
|
Calls the draw for each child, closes PDF Document, then makes a get_buffer on the PDF-Document, to hand it to the browser. If PC4PDEBUG is set, the Object-Tree is printed. Called as last function in the class.
|
Returns |
void |
See Also |
pc4p_main::pc4p_draw_children() |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_info |
public void pc4p_set_info(array $info_array)
|
|
Here, you can handle some general information to the PDF. You can have a look at it, if you use the Acrobat-Reader and select the general options of a file.
|
Parameter |
|
array |
$info_array |
|
|
Contains the fields and their values. Standard Fields: Subject, Title, Creator, Author, Keywords |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_resourcefile |
public void pc4p_set_resourcefile(string $rfile)
|
|
If you need customized fonts, you must define a resourcefile, usually it's called pdflib.upr
|
Parameter |
|
string |
$rfile |
|
|
Complete path for the resourcefile |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_compatibility |
public void pc4p_set_compatibility([ string $comp ])
|
|
This function controls the version of Acrobat you will use in this PDF. You can set it to version 3, 4 or 5.
|
Parameter |
|
string |
$comp |
= >>"1.3"<< |
|
"1.2", "1.3" or "1.4" for Acrobat 3, 4 or 5 |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_tempfile |
public void pc4p_set_tempfile([ string $path ])
|
|
Use this function to create your PDFs with temporary files. Function expects a valid path, where you have write-access
|
Parameter |
|
string |
$path |
= >>"/tmp"<< |
|
|
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_serial |
public void pc4p_set_serial(string $serial)
|
|
If you have bought a license of the PDFlib, you can set the serial with this function
|
Parameter |
|
string |
$serial |
|
|
The serial for your copy of the PDFlib |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|
pc4p_set_compression |
public void pc4p_set_compression(integer $compression)
|
|
PDFs with versionnumber >= 4 can have a compression-factor. Use this function to enable compression for your PDF.
|
Parameter |
|
integer |
$compression |
|
|
Valid range is from 0 to 9 |
|
Returns |
void |
Author(s) |
Alexander Wirtz <alex@pc4p.net> |
|