MIOLO25
|
Membros públicos | |
__construct () | |
get_tree () | |
set_protocol ($proto) | |
set_host ($host) | |
set_base_path ($path) | |
get_protocol () | |
get_host () | |
get_base_path () | |
get_canvas () | |
load_html_file ($file) | |
load_html ($str) | |
set_paper ($size, $orientation="portrait") | |
enable_caching ($cache_id) | |
render () | |
stream ($filename, $options=null) | |
output () | |
Membros protegidos | |
_process_html () | |
Atributos Protegidos | |
$_xml | |
$_tree | |
$_css | |
$_pdf | |
$_paper_size | |
$_paper_orientation | |
$_base_host | |
$_base_path | |
$_protocol | |
__construct | ( | ) |
Class constructor
|
protected |
Builds the Frame_Tree
, loads any CSS and applies the styles to the Frame_Tree
enable_caching | ( | $cache_id | ) |
Enable experimental caching capability @access private
get_base_path | ( | ) |
Returns the base path
get_canvas | ( | ) |
Return the underlying Canvas instance (e.g. CPDF_Adapter, GD_Adapter)
get_host | ( | ) |
Returns the base hostname
get_protocol | ( | ) |
Returns the protocol in use
get_tree | ( | ) |
Returns the underlying Frame_Tree
object
load_html | ( | $str | ) |
Loads an HTML string
Parse errors are stored in the global array _dompdf_warnings.
string | $str | HTML text to load |
load_html_file | ( | $file | ) |
Loads an HTML file
Parse errors are stored in the global array _dompdf_warnings.
string | $file | a filename or url to load |
output | ( | ) |
Returns the PDF as a string
render | ( | ) |
Renders the HTML to PDF
set_base_path | ( | $path | ) |
Sets the base path
string | $path |
set_host | ( | $host | ) |
Sets the base hostname
string | $host |
set_paper | ( | $size, | |
$orientation = "portrait" ) |
Sets the paper size & orientation
string | $size | 'letter', 'legal', 'A4', etc. CPDF_Adapter::$PAPER_SIZES |
string | $orientation | 'portrait' or 'landscape' |
set_protocol | ( | $proto | ) |
Sets the protocol to use
string | $proto |
stream | ( | $filename, | |
$options = null ) |
Streams the PDF to the client
The file will open a download dialog by default. The options parameter controls the output headers. Accepted headers are:
'Accept-Ranges' => 1 or 0 - if this is not set to 1, then this header is not included, off by default this header seems to have caused some problems despite tha fact that it is supposed to solve them, so I am leaving it off by default.
'compress' = > 1 or 0 - apply content stream compression, this is on (1) by default
'Attachment' => 1 or 0 - if 1, force the browser to open a download dialog, on (1) by default
string | $filename | the name of the streamed file |
array | $options | header options (see above) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |