mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-06-01 05:40:47 +00:00
6.0.038 (2013-10-06)
- Bug #841 "Division by zero warning at writeHTML a <li> tag" was fixed.
This commit is contained in:
parent
df410b084d
commit
fff2d972d3
|
@ -1,3 +1,6 @@
|
||||||
|
6.0.038 (2013-10-06)
|
||||||
|
- Bug #841 "Division by zero warning at writeHTML a <li> tag" was fixed.
|
||||||
|
|
||||||
6.0.037 (2013-09-30)
|
6.0.037 (2013-09-30)
|
||||||
- Method getAllSpotColors() was added to return all spot colors.
|
- Method getAllSpotColors() was added to return all spot colors.
|
||||||
- Method colorRegistrationBar() was extended to automatically print all spot colors and support individual spot colors.
|
- Method colorRegistrationBar() was extended to automatically print all spot colors and support individual spot colors.
|
||||||
|
|
|
@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
|
||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
|
|
||||||
Name: TCPDF
|
Name: TCPDF
|
||||||
Version: 6.0.037
|
Version: 6.0.038
|
||||||
Release date: 2013-09-30
|
Release date: 2013-10-06
|
||||||
Author: Nicola Asuni
|
Author: Nicola Asuni
|
||||||
|
|
||||||
Copyright (c) 2002-2013:
|
Copyright (c) 2002-2013:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tecnick.com/tcpdf",
|
"name": "tecnick.com/tcpdf",
|
||||||
"version": "6.0.037",
|
"version": "6.0.038",
|
||||||
"homepage": "http://www.tcpdf.org/",
|
"homepage": "http://www.tcpdf.org/",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"description": "TCPDF is a PHP class for generating PDF documents.",
|
"description": "TCPDF is a PHP class for generating PDF documents.",
|
||||||
|
|
|
@ -55,7 +55,7 @@ class TCPDF_STATIC {
|
||||||
* Current TCPDF version.
|
* Current TCPDF version.
|
||||||
* @private static
|
* @private static
|
||||||
*/
|
*/
|
||||||
private static $tcpdf_version = '6.0.037';
|
private static $tcpdf_version = '6.0.038';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* String alias for total number of pages.
|
* String alias for total number of pages.
|
||||||
|
|
58
tcpdf.php
58
tcpdf.php
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
//============================================================+
|
//============================================================+
|
||||||
// File name : tcpdf.php
|
// File name : tcpdf.php
|
||||||
// Version : 6.0.037
|
// Version : 6.0.038
|
||||||
// Begin : 2002-08-03
|
// Begin : 2002-08-03
|
||||||
// Last Update : 2013-09-30
|
// Last Update : 2013-10-06
|
||||||
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
|
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
|
||||||
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
|
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
|
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
|
||||||
* @package com.tecnick.tcpdf
|
* @package com.tecnick.tcpdf
|
||||||
* @author Nicola Asuni
|
* @author Nicola Asuni
|
||||||
* @version 6.0.037
|
* @version 6.0.038
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// TCPDF configuration
|
// TCPDF configuration
|
||||||
|
@ -128,7 +128,7 @@ require_once(dirname(__FILE__).'/include/tcpdf_static.php');
|
||||||
* TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br>
|
* TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br>
|
||||||
* @package com.tecnick.tcpdf
|
* @package com.tecnick.tcpdf
|
||||||
* @brief PHP class for generating PDF documents without requiring external extensions.
|
* @brief PHP class for generating PDF documents without requiring external extensions.
|
||||||
* @version 6.0.037
|
* @version 6.0.038
|
||||||
* @author Nicola Asuni - info@tecnick.com
|
* @author Nicola Asuni - info@tecnick.com
|
||||||
*/
|
*/
|
||||||
class TCPDF {
|
class TCPDF {
|
||||||
|
@ -3656,7 +3656,7 @@ class TCPDF {
|
||||||
* Returns the array of spot colors.
|
* Returns the array of spot colors.
|
||||||
* @return (array) Spot colors array.
|
* @return (array) Spot colors array.
|
||||||
* @public
|
* @public
|
||||||
* @since 6.0.037 (2013-09-30)
|
* @since 6.0.038 (2013-09-30)
|
||||||
*/
|
*/
|
||||||
public function getAllSpotColors() {
|
public function getAllSpotColors() {
|
||||||
return $this->spot_colors;
|
return $this->spot_colors;
|
||||||
|
@ -11671,6 +11671,9 @@ class TCPDF {
|
||||||
* @since 4.9.019 (2010-04-26)
|
* @since 4.9.019 (2010-04-26)
|
||||||
*/
|
*/
|
||||||
protected function _outellipticalarc($xc, $yc, $rx, $ry, $xang=0, $angs=0, $angf=360, $pie=false, $nc=2, $startpoint=true, $ccw=true, $svg=false) {
|
protected function _outellipticalarc($xc, $yc, $rx, $ry, $xang=0, $angs=0, $angf=360, $pie=false, $nc=2, $startpoint=true, $ccw=true, $svg=false) {
|
||||||
|
if (($rx <= 0) OR ($ry < 0)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$k = $this->k;
|
$k = $this->k;
|
||||||
if ($nc < 2) {
|
if ($nc < 2) {
|
||||||
$nc = 2;
|
$nc = 2;
|
||||||
|
@ -14170,7 +14173,7 @@ class TCPDF {
|
||||||
* @param $y (float) ordinate of the registration mark center.
|
* @param $y (float) ordinate of the registration mark center.
|
||||||
* @param $r (float) radius of the crop mark.
|
* @param $r (float) radius of the crop mark.
|
||||||
* @author Nicola Asuni
|
* @author Nicola Asuni
|
||||||
* @since 6.0.037 (2013-09-30)
|
* @since 6.0.038 (2013-09-30)
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
public function registrationMarkCMYK($x, $y, $r) {
|
public function registrationMarkCMYK($x, $y, $r) {
|
||||||
|
@ -16290,6 +16293,8 @@ class TCPDF {
|
||||||
$html = preg_replace('/'.$this->re_space['p'].'+/'.$this->re_space['m'], chr(32), $html); // replace multiple spaces with a single space
|
$html = preg_replace('/'.$this->re_space['p'].'+/'.$this->re_space['m'], chr(32), $html); // replace multiple spaces with a single space
|
||||||
// trim string
|
// trim string
|
||||||
$html = $this->stringTrim($html);
|
$html = $this->stringTrim($html);
|
||||||
|
// fix br tag after li
|
||||||
|
$html = preg_replace('/<li><br([^\>]*)>/', '<li> <br\\1>', $html);
|
||||||
// fix first image tag alignment
|
// fix first image tag alignment
|
||||||
$html = preg_replace('/^<img/', '<span style="font-size:0"><br /></span> <img', $html, 1);
|
$html = preg_replace('/^<img/', '<span style="font-size:0"><br /></span> <img', $html, 1);
|
||||||
// pattern for generic tag
|
// pattern for generic tag
|
||||||
|
@ -17276,9 +17281,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
||||||
$pfontname = $curfontname;
|
$pfontname = $curfontname;
|
||||||
$pfontstyle = $curfontstyle;
|
$pfontstyle = $curfontstyle;
|
||||||
$pfontsize = $curfontsize;
|
$pfontsize = $curfontsize;
|
||||||
$fontname = isset($dom[$key]['fontname']) ? $dom[$key]['fontname'] : $curfontname;
|
$fontname = (isset($dom[$key]['fontname']) ? $dom[$key]['fontname'] : $curfontname);
|
||||||
$fontstyle = isset($dom[$key]['fontstyle']) ? $dom[$key]['fontstyle'] : $curfontstyle;
|
$fontstyle = (isset($dom[$key]['fontstyle']) ? $dom[$key]['fontstyle'] : $curfontstyle);
|
||||||
$fontsize = isset($dom[$key]['fontsize']) ? $dom[$key]['fontsize'] : $curfontsize;
|
$fontsize = (isset($dom[$key]['fontsize']) ? $dom[$key]['fontsize'] : $curfontsize);
|
||||||
$fontascent = $this->getFontAscent($fontname, $fontstyle, $fontsize);
|
$fontascent = $this->getFontAscent($fontname, $fontstyle, $fontsize);
|
||||||
$fontdescent = $this->getFontDescent($fontname, $fontstyle, $fontsize);
|
$fontdescent = $this->getFontDescent($fontname, $fontstyle, $fontsize);
|
||||||
if (($fontname != $curfontname) OR ($fontstyle != $curfontstyle) OR ($fontsize != $curfontsize)
|
if (($fontname != $curfontname) OR ($fontstyle != $curfontstyle) OR ($fontsize != $curfontsize)
|
||||||
|
@ -18128,7 +18133,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
||||||
$this->resetLastH();
|
$this->resetLastH();
|
||||||
$minstartliney = $this->y;
|
$minstartliney = $this->y;
|
||||||
$maxbottomliney = ($startliney + ($this->FontSize * $this->cell_height_ratio));
|
$maxbottomliney = ($startliney + ($this->FontSize * $this->cell_height_ratio));
|
||||||
$this->putHtmlListBullet($this->listnum, $this->lispacer, $pfontsize);
|
if (is_numeric($pfontsize) AND ($pfontsize > 0)) {
|
||||||
|
$this->putHtmlListBullet($this->listnum, $this->lispacer, $pfontsize);
|
||||||
|
}
|
||||||
$this->SetFont($curfontname, $curfontstyle, $curfontsize);
|
$this->SetFont($curfontname, $curfontstyle, $curfontsize);
|
||||||
$this->resetLastH();
|
$this->resetLastH();
|
||||||
if (is_numeric($pfontsize) AND ($pfontsize > 0) AND is_numeric($curfontsize) AND ($curfontsize > 0) AND ($pfontsize != $curfontsize)) {
|
if (is_numeric($pfontsize) AND ($pfontsize > 0) AND is_numeric($curfontsize) AND ($curfontsize > 0) AND ($pfontsize != $curfontsize)) {
|
||||||
|
@ -19928,32 +19935,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$symbol = strtolower($symbol);
|
$symbol = strtolower($symbol);
|
||||||
switch ($symbol) {
|
$valid_symbols = array('!', '#', 'disc', 'circle', 'square', '1', 'decimal', 'decimal-leading-zero', 'i', 'lower-roman', 'I', 'upper-roman', 'a', 'lower-alpha', 'lower-latin', 'A', 'upper-alpha', 'upper-latin', 'lower-greek');
|
||||||
case '!' :
|
if (in_array($symbol, $valid_symbols)) {
|
||||||
case '#' :
|
$this->lisymbol = $symbol;
|
||||||
case 'disc' :
|
} else {
|
||||||
case 'circle' :
|
$this->lisymbol = '';
|
||||||
case 'square' :
|
|
||||||
case '1':
|
|
||||||
case 'decimal':
|
|
||||||
case 'decimal-leading-zero':
|
|
||||||
case 'i':
|
|
||||||
case 'lower-roman':
|
|
||||||
case 'I':
|
|
||||||
case 'upper-roman':
|
|
||||||
case 'a':
|
|
||||||
case 'lower-alpha':
|
|
||||||
case 'lower-latin':
|
|
||||||
case 'A':
|
|
||||||
case 'upper-alpha':
|
|
||||||
case 'upper-latin':
|
|
||||||
case 'lower-greek': {
|
|
||||||
$this->lisymbol = $symbol;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
default : {
|
|
||||||
$this->lisymbol = '';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user