mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-12-23 08:58:55 +00:00
6.0.013 (2013-04-)
- Add support for SVG dx and dy text/tspan attributes. - replace require() with require_once(). - fix some minor typos on documentation. - fix a problem when deleting all pages.
This commit is contained in:
parent
c7c8e26f67
commit
5a2f2197e0
@ -1,3 +1,9 @@
|
||||
6.0.013 (2013-04-)
|
||||
- Add support for SVG dx and dy text/tspan attributes.
|
||||
- replace require() with require_once().
|
||||
- fix some minor typos on documentation.
|
||||
- fix a problem when deleting all pages.
|
||||
|
||||
6.0.012 (2013-04-24)
|
||||
- An error condition in addHtmlLink() method was fixed (bug #799).
|
||||
|
||||
|
@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
|
||||
------------------------------------------------------------
|
||||
|
||||
Name: TCPDF
|
||||
Version: 6.0.012
|
||||
Release date: 2013-04-24
|
||||
Version: 6.0.013
|
||||
Release date: 2013-05-10
|
||||
Author: Nicola Asuni
|
||||
|
||||
Copyright (c) 2002-2013:
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tecnick.com/tcpdf",
|
||||
"version": "6.0.012",
|
||||
"version": "6.0.013",
|
||||
"homepage": "http://www.tcpdf.org/",
|
||||
"type": "library",
|
||||
"description": "TCPDF is a PHP class for generating PDF documents.",
|
||||
|
@ -55,7 +55,7 @@ class TCPDF_STATIC {
|
||||
* Current TCPDF version.
|
||||
* @private static
|
||||
*/
|
||||
private static $tcpdf_version = '6.0.012';
|
||||
private static $tcpdf_version = '6.0.013';
|
||||
|
||||
/**
|
||||
* String alias for total number of pages.
|
||||
|
30
tcpdf.php
30
tcpdf.php
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
//============================================================+
|
||||
// File name : tcpdf.php
|
||||
// Version : 6.0.012
|
||||
// Version : 6.0.013
|
||||
// Begin : 2002-08-03
|
||||
// Last Update : 2013-04-03
|
||||
// Last Update : 2013-05-10
|
||||
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
|
||||
// License : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3
|
||||
// -------------------------------------------------------------------
|
||||
@ -80,7 +80,7 @@
|
||||
// Denis Van Nuffelen for Dynamic Form.
|
||||
// Jacek Czekaj for multibyte justification
|
||||
// Anthony Ferrara for the reintroduction of legacy image methods.
|
||||
// Sourceforge user 1707880 (hucste) for line-trough mode.
|
||||
// Sourceforge user 1707880 (hucste) for line-through mode.
|
||||
// Larry Stanbery for page groups.
|
||||
// Martin Hall-May for transparency.
|
||||
// Aaron C. Spike for Polycurve method.
|
||||
@ -154,9 +154,9 @@ require_once(dirname(__FILE__).'/include/tcpdf_font_data.php');
|
||||
// TCPDF static font methods and data
|
||||
require_once(dirname(__FILE__).'/include/tcpdf_fonts.php');
|
||||
// TCPDF static color methods and data
|
||||
require(dirname(__FILE__).'/include/tcpdf_colors.php');
|
||||
require_once(dirname(__FILE__).'/include/tcpdf_colors.php');
|
||||
// TCPDF static image methods and data
|
||||
require(dirname(__FILE__).'/include/tcpdf_images.php');
|
||||
require_once(dirname(__FILE__).'/include/tcpdf_images.php');
|
||||
// TCPDF static methods and data
|
||||
require_once(dirname(__FILE__).'/include/tcpdf_static.php');
|
||||
|
||||
@ -901,7 +901,7 @@ class TCPDF {
|
||||
protected $n_js;
|
||||
|
||||
/**
|
||||
* line trough state
|
||||
* line through state
|
||||
* @protected
|
||||
* @since 2.8.000 (2008-03-19)
|
||||
*/
|
||||
@ -4013,7 +4013,7 @@ class TCPDF {
|
||||
* Returns the length of a string in user unit. A font must be selected.<br>
|
||||
* @param $s (string) The string whose length is to be computed
|
||||
* @param $fontname (string) Family font. It can be either a name defined by AddFont() or one of the standard families. It is also possible to pass an empty string, in that case, the current family is retained.
|
||||
* @param $fontstyle (string) Font style. Possible values are (case insensitive):<ul><li>empty string: regular</li><li>B: bold</li><li>I: italic</li><li>U: underline</li><li>D: line-trough</li><li>O: overline</li></ul> or any combination. The default value is regular.
|
||||
* @param $fontstyle (string) Font style. Possible values are (case insensitive):<ul><li>empty string: regular</li><li>B: bold</li><li>I: italic</li><li>U: underline</li><li>D: line-through</li><li>O: overline</li></ul> or any combination. The default value is regular.
|
||||
* @param $fontsize (float) Font size in points. The default value is the current size.
|
||||
* @param $getarray (boolean) if true returns an array of characters widths, if false returns the total length.
|
||||
* @return mixed int total string length or array of characted widths
|
||||
@ -4029,7 +4029,7 @@ class TCPDF {
|
||||
* Returns the string length of an array of chars in user unit or an array of characters widths. A font must be selected.<br>
|
||||
* @param $sa (string) The array of chars whose total length is to be computed
|
||||
* @param $fontname (string) Family font. It can be either a name defined by AddFont() or one of the standard families. It is also possible to pass an empty string, in that case, the current family is retained.
|
||||
* @param $fontstyle (string) Font style. Possible values are (case insensitive):<ul><li>empty string: regular</li><li>B: bold</li><li>I: italic</li><li>U: underline</li><li>D: line trough</li><li>O: overline</li></ul> or any combination. The default value is regular.
|
||||
* @param $fontstyle (string) Font style. Possible values are (case insensitive):<ul><li>empty string: regular</li><li>B: bold</li><li>I: italic</li><li>U: underline</li><li>D: line through</li><li>O: overline</li></ul> or any combination. The default value is regular.
|
||||
* @param $fontsize (float) Font size in points. The default value is the current size.
|
||||
* @param $getarray (boolean) if true returns an array of characters widths, if false returns the total length.
|
||||
* @return mixed int total string length or array of characted widths
|
||||
@ -4455,7 +4455,7 @@ class TCPDF {
|
||||
* If you just wish to change the current font size, it is simpler to call SetFontSize().
|
||||
* Note: for the standard fonts, the font metric files must be accessible. There are three possibilities for this:<ul><li>They are in the current directory (the one where the running script lies)</li><li>They are in one of the directories defined by the include_path parameter</li><li>They are in the directory defined by the K_PATH_FONTS constant</li></ul><br />
|
||||
* @param $family (string) Family font. It can be either a name defined by AddFont() or one of the standard Type1 families (case insensitive):<ul><li>times (Times-Roman)</li><li>timesb (Times-Bold)</li><li>timesi (Times-Italic)</li><li>timesbi (Times-BoldItalic)</li><li>helvetica (Helvetica)</li><li>helveticab (Helvetica-Bold)</li><li>helveticai (Helvetica-Oblique)</li><li>helveticabi (Helvetica-BoldOblique)</li><li>courier (Courier)</li><li>courierb (Courier-Bold)</li><li>courieri (Courier-Oblique)</li><li>courierbi (Courier-BoldOblique)</li><li>symbol (Symbol)</li><li>zapfdingbats (ZapfDingbats)</li></ul> It is also possible to pass an empty string. In that case, the current family is retained.
|
||||
* @param $style (string) Font style. Possible values are (case insensitive):<ul><li>empty string: regular</li><li>B: bold</li><li>I: italic</li><li>U: underline</li><li>D: line trough</li><li>O: overline</li></ul> or any combination. The default value is regular. Bold and italic styles do not apply to Symbol and ZapfDingbats basic fonts or other fonts when not defined.
|
||||
* @param $style (string) Font style. Possible values are (case insensitive):<ul><li>empty string: regular</li><li>B: bold</li><li>I: italic</li><li>U: underline</li><li>D: line through</li><li>O: overline</li></ul> or any combination. The default value is regular. Bold and italic styles do not apply to Symbol and ZapfDingbats basic fonts or other fonts when not defined.
|
||||
* @param $size (float) Font size in points. The default value is the current size. If no size has been specified since the beginning of the document, the value taken is 12
|
||||
* @param $fontfile (string) The font definition file. By default, the name is built from the family and style, in lower case with no spaces.
|
||||
* @param $subset (mixed) if true embedd only a subset of the font (stores only the information related to the used characters); if false embedd full font; if 'default' uses the default value set using setFontSubsetting(). This option is valid only for TrueTypeUnicode fonts. If you want to enable users to change the document, set this parameter to false. If you subset the font, the person who receives your PDF would need to have your same font in order to make changes to your PDF. The file size of the PDF would also be smaller because you are embedding only part of a font.
|
||||
@ -16508,7 +16508,7 @@ class TCPDF {
|
||||
// underline
|
||||
$dom[$key]['fontstyle'] .= 'U';
|
||||
} elseif ($dec{0} == 'l') {
|
||||
// line-trough
|
||||
// line-through
|
||||
$dom[$key]['fontstyle'] .= 'D';
|
||||
} elseif ($dec{0} == 'o') {
|
||||
// overline
|
||||
@ -21017,7 +21017,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
||||
--$newpage;
|
||||
return "this.addField(\'".$matches[1]."\',\'".$matches[2]."\',".$newpage."";'), $tmpjavascript);
|
||||
// return to last page
|
||||
$this->lastPage(true);
|
||||
if ($this->numpages > 0) {
|
||||
$this->lastPage(true);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -23911,6 +23913,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
||||
} else {
|
||||
$x = 0;
|
||||
}
|
||||
if (isset($attribs['dx'])) {
|
||||
$x += $this->getHTMLUnitToUnits($attribs['dx'], 0, $this->svgunit, false);
|
||||
}
|
||||
if (isset($attribs['y'])) {
|
||||
$y = $this->getHTMLUnitToUnits($attribs['y'], 0, $this->svgunit, false);
|
||||
} elseif ($name == 'tspan') {
|
||||
@ -23918,6 +23923,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
||||
} else {
|
||||
$y = 0;
|
||||
}
|
||||
if (isset($attribs['dy'])) {
|
||||
$y += $this->getHTMLUnitToUnits($attribs['dy'], 0, $this->svgunit, false);
|
||||
}
|
||||
$svgstyle['text-color'] = $svgstyle['fill'];
|
||||
$this->svgtext = '';
|
||||
if (isset($svgstyle['text-anchor'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user