From: <tr...@us...> - 2012-12-09 20:07:52
|
Revision: 10339 http://sourceforge.net/p/xoops/svn/10339 Author: trabis Date: 2012-12-09 20:07:47 +0000 (Sun, 09 Dec 2012) Log Message: ----------- Adding pdf module Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/pdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_class/myPdf.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/2dbarcodes.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/fonts/arialunicid0.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/tcpdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/bookmark.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple00.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple01.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple02.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple03.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple04.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple05.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple06.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple07.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple08.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple09.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple10.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple11.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple12.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple13.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/forms.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/groups.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js1.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js2.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js3.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/qrcode.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/radius.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/regle.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg_tiger.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg_tree.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/ticket.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/utf8.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/html2pdf.class.php Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/pdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/logo_large.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/logo_small.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/xoops_version.php Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Pdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/ Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/pdf.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/pdf.php 2012-12-09 19:30:14 UTC (rev 10338) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/pdf.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -25,7 +25,13 @@ $tpl->assign('dummy_content' , $content); $content2 = $tpl->fetch('module:system|system_dummy.html'); -$pdf = new Xoops_Pdf(); -$pdf->writeHtml($content2, false); -$pdf->Output('example.pdf'); +if ($xoops->isActiveModule('pdf')) { + $pdf = new Pdf(); + $pdf->writeHtml($content2, false); + $pdf->Output('example.pdf'); +} else { + $xoops->header(); + echo 'Oops, Please install pdf module!'; + $xoops->footer(); +} Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Copied: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/pdf.php (from rev 10330, XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Pdf.php) =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/pdf.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/pdf.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1,57 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +*/ + +/** + * Pdf + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package pdf + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +include_once dirname(dirname(__FILE__)) . '/html2pdf/html2pdf.class.php'; + +class Pdf extends HTML2PDF +{ + /** + * class constructor + * + * @access public + * + * @param string $orientation page orientation, same as TCPDF + * @param mixed $format The format used for pages, same as TCPDF + * @param string $langue Langue : fr, en, it... + * @param boolean $unicode TRUE means that the input text is unicode (default = true) + * @param string $encoding charset encoding; default is UTF-8 + * @param array $marges Default marges (left, top, right, bottom) + */ + public function __construct($orientation = 'P', $format = 'A4', $langue = _LANGCODE, $unicode = true, $encoding = _CHARSET, $marges = array( + 5, 5, 5, 8 + )) + { + $xoops = Xoops::getInstance(); + $xoops->disableErrorReporting(); + + parent::__construct($orientation, $format, $langue, $unicode, $encoding, $marges = array(5, 5, 5, 8)); + } + + /** + * Destructor + */ + public function __destruct() + { + parent::__destruct(); + } +} \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_class/myPdf.class.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/_class/myPdf.class.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_class/myPdf.class.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -9,7 +9,7 @@ * @version 4.03 */ -require_once(dirname(__FILE__).'/tcpdfConfig.php'); +require_once(dirname(__FILE__) . '/tcpdfConfig.php'); require_once(dirname(__FILE__).'/../_tcpdf_'.HTML2PDF_USED_TCPDF_VERSION.'/tcpdf.php'); class HTML2PDF_myPdf extends TCPDF Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/2dbarcodes.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/_tcpdf_5.0.002/2dbarcodes.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/2dbarcodes.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -100,7 +100,7 @@ $qrtype = strtoupper($mode[0]); switch ($qrtype) { case 'QRCODE': { // QR-CODE - require_once(dirname(__FILE__).'/qrcode.php'); + require_once(dirname(__FILE__) . '/qrcode.php'); if (!isset($mode[1]) OR (!in_array($mode[1],array('L','M','Q','H')))) { $mode[1] = 'L'; // Ddefault: Low error correction } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/fonts/arialunicid0.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/_tcpdf_5.0.002/fonts/arialunicid0.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/fonts/arialunicid0.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -3,7 +3,7 @@ $name='ArialUnicodeMS'; $desc=array('Ascent'=>1069,'Descent'=>-271,'CapHeight'=>1069,'Flags'=>32,'FontBBox'=>'[-1011 -330 2260 1078]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>600); $up=-100; -$ut=50; +$ut=50; $dw=1000; $cw=array( 32=>278,33=>278,34=>355,35=>556,36=>556,37=>889,38=>667,39=>191,40=>333,41=>333,42=>389,43=>584,44=>278,45=>333,46=>278,47=>278, @@ -1742,27 +1742,27 @@ 40853=>1000,40854=>1000,40855=>1000,40856=>1000,40857=>1000,40858=>1000,40859=>1000,40860=>1000,40861=>1000,40862=>1000,40863=>1000,40864=>1000,40865=>1000,40866=>1000,40867=>1000,40868=>1000, 40869=>1000); $diff=''; -$originalsize=23275812; - -// CID Information -// Select your language -// unicode to cid conversion table is from -// ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/ -// cid2code.txt in ac16.tar.Z,ag15.tar.Z,ak12.tar.Z and aj16.tar.Z. - -//$enc='UniCNS-UTF16-H'; -//$cidinfo=array('Registry'=>'Adobe','Ordering'=>'CNS1','Supplement'=>0); -//include(dirname(__FILE__).'/uni2cid_ac15.php'); - -//$enc='UniGB-UTF16-H'; -//$cidinfo=array('Registry'=>'Adobe','Ordering'=>'GB1','Supplement'=>2); -//include(dirname(__FILE__).'/uni2cid_ag15.php'); - -//$enc='UniKS-UTF16-H'; -//$cidinfo=array('Registry'=>'Adobe','Ordering'=>'Korea1','Supplement'=>0); -//include(dirname(__FILE__).'/uni2cid_ak12.php'); - -$enc='UniJIS-UTF16-H'; -$cidinfo=array('Registry'=>'Adobe','Ordering'=>'Japan1','Supplement'=>5); -include(dirname(__FILE__).'/uni2cid_aj16.php'); -?> +$originalsize=23275812; + +// CID Information +// Select your language +// unicode to cid conversion table is from +// ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/ +// cid2code.txt in ac16.tar.Z,ag15.tar.Z,ak12.tar.Z and aj16.tar.Z. + +//$enc='UniCNS-UTF16-H'; +//$cidinfo=array('Registry'=>'Adobe','Ordering'=>'CNS1','Supplement'=>0); +//include(dirname(__FILE__).'/uni2cid_ac15.php'); + +//$enc='UniGB-UTF16-H'; +//$cidinfo=array('Registry'=>'Adobe','Ordering'=>'GB1','Supplement'=>2); +//include(dirname(__FILE__).'/uni2cid_ag15.php'); + +//$enc='UniKS-UTF16-H'; +//$cidinfo=array('Registry'=>'Adobe','Ordering'=>'Korea1','Supplement'=>0); +//include(dirname(__FILE__).'/uni2cid_ak12.php'); + +$enc='UniJIS-UTF16-H'; +$cidinfo=array('Registry'=>'Adobe','Ordering'=>'Japan1','Supplement'=>5); +include(dirname(__FILE__) . '/uni2cid_aj16.php'); +?> Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/tcpdf.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/_tcpdf_5.0.002/tcpdf.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/tcpdf.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -128,19 +128,19 @@ /** * main configuration file */ -require_once(dirname(__FILE__).'/config/tcpdf_config.php'); +require_once(dirname(__FILE__) . '/config/tcpdf_config.php'); // includes some support files /** * unicode data */ -require_once(dirname(__FILE__).'/unicode_data.php'); +require_once(dirname(__FILE__) . '/unicode_data.php'); /** * html colors table */ -require_once(dirname(__FILE__).'/htmlcolors.php'); +require_once(dirname(__FILE__) . '/htmlcolors.php'); if (!class_exists('TCPDF', false)) { /** @@ -12714,9 +12714,9 @@ $lastcols = $num_cols - 1; for ($i = 1; $i < $num_cols; ++$i) { $functions .= ($fc + $i).' 0 R '; - if ($i < $lastcols) { + if ($i < $lastcols) { $bounds .= sprintf('%.3F ', $grad['colors'][$i]['offset']); - } + } $encode .= '0 1 '; } $out .= ' /Functions ['.trim($functions).']'; @@ -13245,7 +13245,7 @@ if ($this->empty_string($code)) { return; } - require_once(dirname(__FILE__).'/barcodes.php'); + require_once(dirname(__FILE__) . '/barcodes.php'); // save current graphic settings $gvars = $this->getGraphicVars(); // create new barcode object @@ -13506,7 +13506,7 @@ if ($this->empty_string($code)) { return; } - require_once(dirname(__FILE__).'/2dbarcodes.php'); + require_once(dirname(__FILE__) . '/2dbarcodes.php'); // save current graphic settings $gvars = $this->getGraphicVars(); // create new barcode object @@ -18547,22 +18547,22 @@ $e = $ox * $this->k * (1 - $svgscale_x); $f = ($this->h - $oy) * $this->k * (1 - $svgscale_y); $this->_out(sprintf('%.3F %.3F %.3F %.3F %.3F %.3F cm', $svgscale_x, 0, 0, $svgscale_y, $e + $svgoffset_x, $f + $svgoffset_y)); - // creates a new XML parser to be used by the other XML functions - $this->parser = xml_parser_create('UTF-8'); - // the following function allows to use parser inside object - xml_set_object($this->parser, $this); - // disable case-folding for this XML parser - xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0); - // sets the element handler functions for the XML parser + // creates a new XML parser to be used by the other XML functions + $this->parser = xml_parser_create('UTF-8'); + // the following function allows to use parser inside object + xml_set_object($this->parser, $this); + // disable case-folding for this XML parser + xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0); + // sets the element handler functions for the XML parser xml_set_element_handler($this->parser, 'startSVGElementHandler', 'endSVGElementHandler'); - // sets the character data handler function for the XML parser - xml_set_character_data_handler($this->parser, 'segSVGContentHandler'); - // start parsing an XML document - if(!xml_parse($this->parser, $svgdata)) { + // sets the character data handler function for the XML parser + xml_set_character_data_handler($this->parser, 'segSVGContentHandler'); + // start parsing an XML document + if(!xml_parse($this->parser, $svgdata)) { $error_message = sprintf("SVG Error: %s at line %d", xml_error_string(xml_get_error_code($this->parser)), xml_get_current_line_number($this->parser)); - $this->Error($error_message); - } - // free this XML parser + $this->Error($error_message); + } + // free this XML parser xml_parser_free($this->parser); // restore previous graphic state $this->_out($this->epsmarker.'Q'); @@ -18611,14 +18611,14 @@ $this->endlinex = $this->img_rb_x; } - /** - * Get the tranformation matrix from SVG transform attribute - * @param string transformation - * @return array of transformations + /** + * Get the tranformation matrix from SVG transform attribute + * @param string transformation + * @return array of transformations * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ + * @access protected + */ protected function getSVGTransformMatrix($attribute) { // identity matrix $tm = array(1, 0, 0, 1, 0, 0); @@ -18714,15 +18714,15 @@ return $tm; } - /** - * Get the product of two SVG tranformation matrices + /** + * Get the product of two SVG tranformation matrices * @param array $ta first SVG tranformation matrix - * @param array $tb second SVG tranformation matrix - * @return transformation array + * @param array $tb second SVG tranformation matrix + * @return transformation array * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ + * @access protected + */ protected function getTransformationMatrixProduct($ta, $tb) { $tm = array(); $tm[0] = ($ta[0] * $tb[0]) + ($ta[2] * $tb[1]); @@ -18765,8 +18765,8 @@ $this->Transform($this->convertSVGtMatrix($tm)); } - /** - * Apply the requested SVG styles (*** TO BE COMPLETED ***) + /** + * Apply the requested SVG styles (*** TO BE COMPLETED ***) * @param array $svgstyle array of SVG styles to apply * @param array $prevsvgstyle array of previous SVG style * @param int $x X origin of the bounding box @@ -18775,11 +18775,11 @@ * @param int $h height of the bounding box * @param string $clip_function clip function * @param array $clip_params array of parameters for clipping function - * @return object style + * @return object style * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ + * @access protected + */ protected function setSVGStyles($svgstyle, $prevsvgstyle, $x=0, $y=0, $w=1, $h=1, $clip_function='', $clip_params=array()) { $objstyle = ''; if(!isset($svgstyle['opacity'])) { @@ -19018,8 +19018,8 @@ return $objstyle; } - /** - * Draws an SVG path + /** + * Draws an SVG path * @param string $d attribute d of the path SVG element * @param string $style Style of rendering. Possible values are: * <ul> @@ -19031,11 +19031,11 @@ * <li>CNZ: Clipping mode (using the even-odd rule to determine which regions lie inside the clipping path).</li> * <li>CEO: Clipping mode (using the nonzero winding number rule to determine which regions lie inside the clipping path).</li> * </ul> - * @return array of container box measures (x, y, w, h) + * @return array of container box measures (x, y, w, h) * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ + * @access protected + */ protected function SVGPath($d, $style='') { // set fill/stroke style $op = $this->getPathPaintOperator($style, ''); @@ -19344,16 +19344,16 @@ return array($xmin, $ymin, ($xmax - $xmin), ($ymax - $ymin)); } - /** - * Returns the angle in radiants between two vectors + /** + * Returns the angle in radiants between two vectors * @param int $x1 X coordiante of first vector point * @param int $y1 Y coordiante of first vector point * @param int $x2 X coordiante of second vector point - * @param int $y2 Y coordiante of second vector point + * @param int $y2 Y coordiante of second vector point * @author Nicola Asuni * @since 5.0.000 (2010-05-04) - * @access protected - */ + * @access protected + */ protected function getVectorsAngle($x1, $y1, $x2, $y2) { $dprod = ($x1 * $x2) + ($y1 * $y2); $dist1 = sqrt(($x1 * $x1) + ($y1 * $y1)); @@ -19368,15 +19368,15 @@ return $angle; } - /** - * Sets the opening SVG element handler function for the XML parser. (*** TO BE COMPLETED ***) - * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler. - * @param string $name The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters. - * @param array $attribs The third parameter, attribs, contains an associative array with the element's attributes (if any). The keys of this array are the attribute names, the values are the attribute values. Attribute names are case-folded on the same criteria as element names. Attribute values are not case-folded. The original order of the attributes can be retrieved by walking through attribs the normal way, using each(). The first key in the array was the first attribute, and so on. + /** + * Sets the opening SVG element handler function for the XML parser. (*** TO BE COMPLETED ***) + * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler. + * @param string $name The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters. + * @param array $attribs The third parameter, attribs, contains an associative array with the element's attributes (if any). The keys of this array are the attribute names, the values are the attribute values. Attribute names are case-folded on the same criteria as element names. Attribute values are not case-folded. The original order of the attributes can be retrieved by walking through attribs the normal way, using each(). The first key in the array was the first attribute, and so on. * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ + * @access protected + */ protected function startSVGElementHandler($parser, $name, $attribs) { // check if we are in clip mode if ($this->svgclipmode) { @@ -19393,7 +19393,7 @@ $clipping = true; } // get styling properties - $prev_svgstyle = $this->svgstyles[(count($this->svgstyles) - 1)]; // previous style + $prev_svgstyle = $this->svgstyles[(count($this->svgstyles) - 1)]; // previous style $svgstyle = array(); // current style if (isset($attribs['style'])) { $attribs['style'] = ';'.$attribs['style']; @@ -19435,10 +19435,10 @@ } $svgstyle['transfmatrix'] = $tm; // process tag - switch($name) { - case 'defs': { - $this->svgdefsmode = true; - break; + switch($name) { + case 'defs': { + $this->svgdefsmode = true; + break; } // clipPath case 'clipPath': { @@ -19447,16 +19447,16 @@ $this->svgclippaths[$this->svgclipid] = array(); break; } - case 'svg': { - // start of SVG object - break; - } - case 'g': { - // group together related graphics elements + case 'svg': { + // start of SVG object + break; + } + case 'g': { + // group together related graphics elements array_push($this->svgstyles, $svgstyle); $this->StartTransform(); - $this->setSVGStyles($svgstyle, $prev_svgstyle); - break; + $this->setSVGStyles($svgstyle, $prev_svgstyle); + break; } case 'linearGradient': { $this->svggradientid = $attribs['id']; @@ -19753,26 +19753,26 @@ $this->startSVGElementHandler($parser, $use['name'], $use['attribs']); } break; - } - default: { - break; - } - } - } - - /** - * Sets the closing SVG element handler function for the XML parser. - * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler. - * @param string $name The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters. + } + default: { + break; + } + } + } + + /** + * Sets the closing SVG element handler function for the XML parser. + * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler. + * @param string $name The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters. * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ - protected function endSVGElementHandler($parser, $name) { + * @access protected + */ + protected function endSVGElementHandler($parser, $name) { switch($name) { - case 'defs': { - $this->svgdefsmode = false; - break; + case 'defs': { + $this->svgdefsmode = false; + break; } // clipPath case 'clipPath': { @@ -19780,34 +19780,34 @@ break; } case 'g': { - // ungroup: remove last style from array + // ungroup: remove last style from array array_pop($this->svgstyles); - $this->StopTransform(); - break; + $this->StopTransform(); + break; } case 'text': - case 'tspan': { + case 'tspan': { // print text $this->Cell(0, 0, trim($this->svgtext), 0, 0, '', 0, '', 0, false, 'L', 'T'); - $this->StopTransform(); - break; - } - default: { - break; - } - } + $this->StopTransform(); + break; + } + default: { + break; + } + } } - - /** - * Sets the character data handler function for the XML parser. - * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler. - * @param string $data The second parameter, data, contains the character data as a string. + + /** + * Sets the character data handler function for the XML parser. + * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler. + * @param string $data The second parameter, data, contains the character data as a string. * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ - protected function segSVGContentHandler($parser, $data) { - $this->svgtext .= $data; + * @access protected + */ + protected function segSVGContentHandler($parser, $data) { + $this->svgtext .= $data; } } // END OF TCPDF CLASS Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/about.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/about.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/about.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -10,7 +10,7 @@ * isset($_GET['vuehtml']) is not mandatory * it allow to display the result in the HTML format */ - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); // get the HTML ob_start(); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/bookmark.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/bookmark.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/bookmark.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -97,7 +97,7 @@ <?php $content = ob_get_clean(); - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', 0); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple00.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple00.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple00.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple00.php'); + include(dirname(__FILE__) . '/res/exemple00.php'); $content = ob_get_clean(); // convert in PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple01.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple01.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple01.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple01.php'); + include(dirname(__FILE__) . '/res/exemple01.php'); $content = ob_get_clean(); // convert in PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple02.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple02.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple02.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple02.php'); + include(dirname(__FILE__) . '/res/exemple02.php'); $content = ob_get_clean(); // convert in PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', array(15, 5, 15, 5)); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple03.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple03.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple03.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple03.php'); + include(dirname(__FILE__) . '/res/exemple03.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', 3); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple04.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple04.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple04.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple04.php'); + include(dirname(__FILE__) . '/res/exemple04.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple05.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple05.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple05.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple05.php'); + include(dirname(__FILE__) . '/res/exemple05.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple06.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple06.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple06.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple06.php'); + include(dirname(__FILE__) . '/res/exemple06.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple07.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple07.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple07.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,12 +13,12 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple07a.php'); - include(dirname(__FILE__).'/res/exemple07b.php'); + include(dirname(__FILE__) . '/res/exemple07a.php'); + include(dirname(__FILE__) . '/res/exemple07b.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple08.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple08.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple08.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple08.php'); + include(dirname(__FILE__) . '/res/exemple08.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', 0); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple09.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple09.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple09.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -51,7 +51,7 @@ <?php if ($generate) { $content = ob_get_clean(); - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple10.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple10.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple10.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -12,10 +12,10 @@ */ ob_start(); - include(dirname(__FILE__).'/res/exemple10.php'); + include(dirname(__FILE__) . '/res/exemple10.php'); $content = ob_get_clean(); - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple11.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple11.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple11.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple11.php'); + include(dirname(__FILE__) . '/res/exemple11.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple12.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple12.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple12.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple12.php'); + include(dirname(__FILE__) . '/res/exemple12.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple13.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple13.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple13.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple13.php'); + include(dirname(__FILE__) . '/res/exemple13.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/forms.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/forms.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/forms.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -21,11 +21,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/forms.php'); + include(dirname(__FILE__) . '/res/forms.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/groups.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/groups.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/groups.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -57,7 +57,7 @@ <?php $content = ob_get_clean(); - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', 0); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js1.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/js1.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js1.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -23,7 +23,7 @@ $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js2.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/js2.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js2.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -23,7 +23,7 @@ $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js3.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/js3.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js3.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -29,7 +29,7 @@ "; // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/qrcode.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/qrcode.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/qrcode.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -51,7 +51,7 @@ $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/radius.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/radius.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/radius.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -40,7 +40,7 @@ $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/regle.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/regle.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/regle.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -45,7 +45,7 @@ $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('L', 'A4', 'fr', true, 'UTF-8', 10); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/svg.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/svg.php'); + include(dirname(__FILE__) . '/res/svg.php'); $content = ob_get_clean(); // convert into PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg_tiger.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/svg_tiger.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg_tiger.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -260,7 +260,7 @@ </page>'; // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('L', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg_tree.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/svg_tree.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg_tree.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -126,7 +126,7 @@ </page>'; // onvert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/ticket.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/ticket.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/ticket.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -43,7 +43,7 @@ </div> <h1>Billet soirée spécial HTML2PDF</h1> <b>Valable le <?php echo $date; ?> à 20h30</b><br> - <img src="./res/logo.gif" alt="logo" style="margin-top: 3mm; margin-left: 20mm"> + <img src="res/logo.gif" alt="logo" style="margin-top: 3mm; margin-left: 20mm"> </div> </td> </tr> @@ -83,7 +83,7 @@ $content = ob_get_clean(); // convert - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', 0); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/utf8.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/utf8.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/utf8.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -11,7 +11,7 @@ * it allow to display the result in the HTML format */ - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); // get the HTML $content = file_get_contents(dirname(__FILE__).'/../_tcpdf_'.HTML2PDF_USED_TCPDF_VERSION.'/cache/utf8test.txt'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/html2pdf.class.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/html2pdf.class.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/html2pdf.class.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -14,11 +14,11 @@ define('__CLASS_HTML2PDF__', '4.03'); define('HTML2PDF_USED_TCPDF_VERSION', '5.0.002'); - require_once(dirname(__FILE__).'/_class/exception.class.php'); - require_once(dirname(__FILE__).'/_class/locale.class.php'); - require_once(dirname(__FILE__).'/_class/myPdf.class.php'); - require_once(dirname(__FILE__).'/_class/parsingHtml.class.php'); - require_once(dirname(__FILE__).'/_class/parsingCss.class.php'); + require_once(dirname(__FILE__) . '/_class/exception.class.php'); + require_once(dirname(__FILE__) . '/_class/locale.class.php'); + require_once(dirname(__FILE__) . '/_class/myPdf.class.php'); + require_once(dirname(__FILE__) . '/_class/parsingHtml.class.php'); + require_once(dirname(__FILE__) . '/_class/parsingCss.class.php'); class HTML2PDF { Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/logo_large.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/logo_large.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/logo_small.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/logo_small.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/logo.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Copied: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/index.html (from rev 10336, XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/index.html) =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/main.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/main.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1,19 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/main.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/modinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/modinfo.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/modinfo.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1,22 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +define('_MI_PDF_NAME', 'Pdf'); +define('_MI_PDF_DSC', 'Support for pdf creation'); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/modinfo.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/core.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/core.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/core.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1,37 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +*/ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package pdf + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +/** + * Pdf core preloads + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + */ +class PdfCorePreload extends XoopsPreloadItem +{ + + static function eventCoreIncludeCommonEnd($args) + { + XoopsLoad::addMap(array('pdf' => dirname(dirname(__FILE__)) . '/class/pdf.php')); + } + +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/core.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Copied: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/xoops_version.php (from rev 10336, XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/xoops_version.php) =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/xoops_version.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/xoops_version.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1,71 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +*/ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package logger + * @author trabis <lus...@gm...>... [truncated message content] |