mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-11-22 21:05:10 +00:00
5.9.193 (2012-09-25)
- Support for named destinations on HTML links was added (i.e.: <a href="#destinationname">link to named destination</a>).
This commit is contained in:
parent
66e99bd328
commit
f2aa41dd82
@ -1,3 +1,6 @@
|
|||||||
|
5.9.193 (2012-09-25)
|
||||||
|
- Support for named destinations on HTML links was added (i.e.: <a href="#destinationname">link to named destination</a>).
|
||||||
|
|
||||||
5.9.192 (2012-09-24)
|
5.9.192 (2012-09-24)
|
||||||
- A problem on the releasing process was fixed.
|
- A problem on the releasing process was fixed.
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
|
|||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
|
|
||||||
Name: TCPDF
|
Name: TCPDF
|
||||||
Version: 5.9.192
|
Version: 5.9.193
|
||||||
Release date: 2012-09-24
|
Release date: 2012-09-25
|
||||||
Author: Nicola Asuni
|
Author: Nicola Asuni
|
||||||
|
|
||||||
Copyright (c) 2002-2012:
|
Copyright (c) 2002-2012:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tecnick.com/tcpdf",
|
"name": "tecnick.com/tcpdf",
|
||||||
"version": "5.9.192",
|
"version": "5.9.193",
|
||||||
"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.",
|
||||||
|
19
tcpdf.php
19
tcpdf.php
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
//============================================================+
|
//============================================================+
|
||||||
// File name : tcpdf.php
|
// File name : tcpdf.php
|
||||||
// Version : 5.9.192
|
// Version : 5.9.193
|
||||||
// Begin : 2002-08-03
|
// Begin : 2002-08-03
|
||||||
// Last Update : 2012-09-24
|
// Last Update : 2012-09-25
|
||||||
// Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - info@tecnick.com
|
// Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - info@tecnick.com
|
||||||
// License : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3
|
// License : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
@ -139,7 +139,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 5.9.192
|
* @version 5.9.193
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file.
|
// Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file.
|
||||||
@ -151,7 +151,7 @@ require_once(dirname(__FILE__).'/config/tcpdf_config.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 5.9.192
|
* @version 5.9.193
|
||||||
* @author Nicola Asuni - info@tecnick.com
|
* @author Nicola Asuni - info@tecnick.com
|
||||||
*/
|
*/
|
||||||
class TCPDF {
|
class TCPDF {
|
||||||
@ -162,7 +162,7 @@ class TCPDF {
|
|||||||
* Current TCPDF version.
|
* Current TCPDF version.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
private $tcpdf_version = '5.9.192';
|
private $tcpdf_version = '5.9.193';
|
||||||
|
|
||||||
// Protected properties
|
// Protected properties
|
||||||
|
|
||||||
@ -9797,8 +9797,13 @@ class TCPDF {
|
|||||||
}
|
}
|
||||||
case 'link': {
|
case 'link': {
|
||||||
if (is_string($pl['txt'])) {
|
if (is_string($pl['txt'])) {
|
||||||
|
if ($pl['txt'][0] == '#') {
|
||||||
|
// internal destination
|
||||||
|
$annots .= ' /Dest /'.$this->encodeNameObject(substr($pl['txt'], 1));
|
||||||
|
} else {
|
||||||
// external URI link
|
// external URI link
|
||||||
$annots .= ' /A <</S /URI /URI '.$this->_datastring($this->unhtmlentities($pl['txt']), $annot_obj_id).'>>';
|
$annots .= ' /A <</S /URI /URI '.$this->_datastring($this->unhtmlentities($pl['txt']), $annot_obj_id).'>>';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// internal link
|
// internal link
|
||||||
if (isset($this->links[$pl['txt']])) {
|
if (isset($this->links[$pl['txt']])) {
|
||||||
@ -13960,7 +13965,7 @@ class TCPDF {
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
public function addHtmlLink($url, $name, $fill=false, $firstline=false, $color='', $style=-1, $firstblock=false) {
|
public function addHtmlLink($url, $name, $fill=false, $firstline=false, $color='', $style=-1, $firstblock=false) {
|
||||||
if (!$this->empty_string($url) AND ($url{0} == '#')) {
|
if (!$this->empty_string($url) AND ($url[0] == '#') AND is_numeric($url[1])) {
|
||||||
// convert url to internal link
|
// convert url to internal link
|
||||||
$lnkdata = explode(',', $url);
|
$lnkdata = explode(',', $url);
|
||||||
if (isset($lnkdata[0])) {
|
if (isset($lnkdata[0])) {
|
||||||
@ -16766,7 +16771,7 @@ class TCPDF {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a javascript PDF string.
|
* Insert Named Destinations.
|
||||||
* @protected
|
* @protected
|
||||||
* @author Johannes Güntert, Nicola Asuni
|
* @author Johannes Güntert, Nicola Asuni
|
||||||
* @since 5.9.098 (2011-06-23)
|
* @since 5.9.098 (2011-06-23)
|
||||||
|
Loading…
Reference in New Issue
Block a user