Public Member Functions | |
| HTML_ToPdf ($in_htmlFile, $in_domain, $in_pdfFile=null) | |
| addHtml2PsSettings ($in_settings) | |
| setDefaultPath ($in_path) | |
| setDebug ($in_debug) | |
| setHeader ($in_attribute, $in_value) | |
| setFooter ($in_attribute, $in_value) | |
| setTmpDir ($in_path) | |
| setUseColor ($in_useColor) | |
| setUseCSS ($in_useCSS) | |
| setAdditionalCSS ($in_css) | |
| setGetUrl ($in_getUrl) | |
| setGrayScale ($in_grayScale) | |
| setUnderlineLinks ($in_underline) | |
| setScaleFactor ($in_scale) | |
| setHtml2Ps ($in_html2ps) | |
| setPs2Pdf ($in_ps2pdf) | |
| setMakeAbsoluteImageUrls ($in_makeAbsoluteImageUrls) | |
| setPs2pdfIncludePath ($in_ps2pdfIncludePath) | |
| convert () | |
| _modifyConfFile () | |
| _getCSSFromFile () | |
| _convertFontSize ($in_fontString) | |
| _getPaperSize () | |
| _getOrientation () | |
| _processHeaderFooter ($in_data) | |
| _cleanup ($in_files) | |
| _dumpDebugInfo ($in_info) | |
Public Attributes | |
| $htmlFile = '' | |
| $pdfFile = '' | |
| $tmpDir = '/tmp' | |
| $debug = false | |
| $htmlErrors = false | |
| $defaultDomain = '' | |
| $defaultPath = '/' | |
| $html2psPath = '/usr/bin/html2ps' | |
| $ps2pdfPath = '/usr/bin/ps2pdf' | |
| $getUrlPath = '/usr/bin/curl -i' | |
| $useCSS = true | |
| $additionalCSS = '' | |
| $pageInColor = true | |
| $grayScale = false | |
| $scaleFactor = 1 | |
| $underlineLinks = null | |
| $headers = array('left' => '$T', 'right' => '$[author]') | |
| $footers = array('center' => '- $N -') | |
| $html2psrc | |
| $makeAbsoluteImageUrls = true | |
| $ps2pdfIncludePath = '' | |
| $_htmlString = '' | |
Definition at line 40 of file HTML_ToPDF.php.
|
|
Cleans up the files we created during the script.
Definition at line 873 of file HTML_ToPDF.php. References _dumpDebugInfo(). Referenced by convert(). |
|
|
Converts textual font size to a numberic representation.
Definition at line 723 of file HTML_ToPDF.php. |
|
|
If debug is on it dumps the specified debug information to screen. Uses tags to save formatting of debug information.
Definition at line 897 of file HTML_ToPDF.php. Referenced by _cleanup(), and convert(). |
|
|
Try to get the CSS from the html file and use it in creating the PDF file. If we find CSS we'll add it to the CSS string private
Definition at line 681 of file HTML_ToPDF.php. |
|
|
Tries to determine the specified page orientaion since html2ps needs to be told explicitly. private
Definition at line 809 of file HTML_ToPDF.php. Referenced by convert(). |
|
|
Tries to determine the specified paper size since ps2pdf needs to be told explicitly in some cases. Right now handles letter, ledger, 11x17, and legal. private
Definition at line 765 of file HTML_ToPDF.php. Referenced by convert(). |
|
|
Modify the config file and put in our custom variables private
Definition at line 631 of file HTML_ToPDF.php. References _processHeaderFooter(). Referenced by convert(). |
|
|
Process either a set of headers or footers.
Definition at line 839 of file HTML_ToPDF.php. Referenced by _modifyConfFile(). |
|
|
Adds on more html2ps settings to the end of the default set of settings
Definition at line 230 of file HTML_ToPDF.php. |
|
|
Convert the html file into a pdf file public
Definition at line 510 of file HTML_ToPDF.php. References $fp, _cleanup(), _dumpDebugInfo(), _getOrientation(), _getPaperSize(), and _modifyConfFile(). |
|
||||||||||||||||
|
Initializes the class
Definition at line 209 of file HTML_ToPDF.php. |
|
|
Set additional CSS to use when parsing the html file
Definition at line 370 of file HTML_ToPDF.php. |
|
|
Sets the debug variable
Definition at line 266 of file HTML_ToPDF.php. |
|
|
Sets the default path for relative paths in images, css etc.
Definition at line 245 of file HTML_ToPDF.php. |
|
||||||||||||
|
Sets a footer
Definition at line 308 of file HTML_ToPDF.php. |
|
|
Sets the get url which is used for retrieving images from the html file needs to be the full path to the file with options to retrive the headers as well.
Definition at line 387 of file HTML_ToPDF.php. |
|
|
Sets the gray scale option for images
Definition at line 402 of file HTML_ToPDF.php. |
|
||||||||||||
|
Sets a header
Definition at line 287 of file HTML_ToPDF.php. |
|
|
Sets the path to the html2ps program
Definition at line 448 of file HTML_ToPDF.php. |
|
|
Sets the makeAbsoluteImageUrls variable
Definition at line 480 of file HTML_ToPDF.php. |
|
|
Sets the path to the ps2pdf program
Definition at line 463 of file HTML_ToPDF.php. |
|
|
Sets the ps2pdfIncludePath() variable
Definition at line 496 of file HTML_ToPDF.php. |
|
|
Sets the scale factor for the page. Less than one makes it smaller, greater than one enlarges it.
Definition at line 433 of file HTML_ToPDF.php. |
|
|
Set the temporary directory path
Definition at line 324 of file HTML_ToPDF.php. |
|
|
Sets the option to underline links or not
Definition at line 417 of file HTML_ToPDF.php. |
|
|
Set whether to use color or not when creating the page
Definition at line 339 of file HTML_ToPDF.php. |
|
|
Set whether to try and use the CSS in the html page when creating the pdf file
Definition at line 355 of file HTML_ToPDF.php. |
|
|
Definition at line 193 of file HTML_ToPDF.php. |
|
|
Definition at line 115 of file HTML_ToPDF.php. |
|
|
Definition at line 65 of file HTML_ToPDF.php. |
|
|
Definition at line 78 of file HTML_ToPDF.php. |
|
|
Definition at line 84 of file HTML_ToPDF.php. |
|
|
Definition at line 151 of file HTML_ToPDF.php. |
|
|
Definition at line 102 of file HTML_ToPDF.php. |
|
|
Definition at line 127 of file HTML_ToPDF.php. |
|
|
Definition at line 145 of file HTML_ToPDF.php. |
|
|
Definition at line 90 of file HTML_ToPDF.php. |
|
|
Initial value: '
option {
titlepage: 0; /* do not generate a title page */
toc: 0; /* no table of contents */
colour: %pageInColor%; /* create the page in color */
underline: %underlineLinks%; /* underline links */
grayscale: %grayScale%; /* Make images grayscale? */
scaledoc: %scaleFactor%; /* Scale the document */
}
package {
geturl: %getUrlPath%; /* path to the geturl */
}
showurl: 0; /* do not show the url next to links */'
Definition at line 157 of file HTML_ToPDF.php. |
|
|
Definition at line 71 of file HTML_ToPDF.php. |
|
|
Definition at line 47 of file HTML_ToPDF.php. |
|
|
Definition at line 180 of file HTML_ToPDF.php. |
|
|
Definition at line 121 of file HTML_ToPDF.php. |
|
|
Definition at line 53 of file HTML_ToPDF.php. |
|
|
Definition at line 187 of file HTML_ToPDF.php. |
|
|
Definition at line 96 of file HTML_ToPDF.php. |
|
|
Definition at line 133 of file HTML_ToPDF.php. |
|
|
Definition at line 59 of file HTML_ToPDF.php. |
|
|
Definition at line 139 of file HTML_ToPDF.php. |
|
|
Definition at line 109 of file HTML_ToPDF.php. |
1.4.3-20050530