author |
Christian Sciberras |
---|---|
see | |
copyright |
2010 Christian Sciberras / Covac Software. |
license |
None. There are no restrictions on use, however keep copyright intact. Modification is allowed, keep track of modifications below in this comment block. |
example |
color="#008800">//-- Create sample PDF and embed in browser. --// |
version |
0.0
Chris - Created class. |
package |
Subsystems |
__construct(string $paper_size = HTMLTOPDF_PAPER, string $orientation = "portrait", string $html = null, boolean $use_file = false)
string
page size
string
page orientation
string
html code for page
boolean
a flag to show $html is an html file location to be loaded
_getCPU() : string
Throws |
|
---|
string
CPU kind ('amd64' or 'i386').
_pipeExec(string $cmd, string $input = '') : array
string
The command to execute.
string
Any input not in arguments.
array
An array of execution data; stdout, stderr and return "error" code.
createpdf(string $mode, string $file) : string|boolean
string
How to output (constants from this same class).
string
The PDF's filename (the usage depends on $mode.
string|boolean
Depending on $mode, this may be success (boolean) or PDF (string).
get_help() : string
string
WKHTMLTOPDF HTML help.
get_status() : string
string
WPDF print status.
installed()
render()
set_copies(integer $count)
By default it is one.
integer
Number of page copies.
set_html(string $html)
string
New html content. It replaces any previous content.
set_html_file(string $htmlfile)
string
the html file to use
set_orientation(string $orientation)
By default orientation is portrait.
string
orientation of paper
set_page_size(string $size)
string
Formal paper size (eg; A4, letter...)
set_toc(boolean $enabled)
By default TOC is disabled.
boolean
True use TOC, false disable TOC.
html :
cmd :
tmp :
status :
toc :
copies :
grayscale :
title :
cpu :
pdf :
size :
orient :
PDF_DOWNLOAD :
PDF_ASSTRING :
PDF_EMBEDDED :
PDF_SAVEFILE :
PDF_PORTRAIT :
PDF_LANDSCAPE :