mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-11-25 13:57:33 +00:00
5.9.203 (2013-01-22)
- Horizontal position of radiobuttons and checkboxes was adjusted.
This commit is contained in:
parent
ce2f309281
commit
f7d525858a
@ -1,3 +1,6 @@
|
|||||||
|
5.9.203 (2013-01-22)
|
||||||
|
- Horizontal position of radiobuttons and checkboxes was adjusted.
|
||||||
|
|
||||||
5.9.202 (2012-12-16)
|
5.9.202 (2012-12-16)
|
||||||
- Vertical space problem after table was fixed.
|
- Vertical space problem after table was fixed.
|
||||||
|
|
||||||
|
@ -8,11 +8,11 @@ http://sourceforge.net/donate/index.php?group_id=128076
|
|||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
|
|
||||||
Name: TCPDF
|
Name: TCPDF
|
||||||
Version: 5.9.202
|
Version: 5.9.203
|
||||||
Release date: 2012-12-16
|
Release date: 2013-01-22
|
||||||
Author: Nicola Asuni
|
Author: Nicola Asuni
|
||||||
|
|
||||||
Copyright (c) 2002-2012:
|
Copyright (c) 2002-2013:
|
||||||
Nicola Asuni
|
Nicola Asuni
|
||||||
Tecnick.com LTD
|
Tecnick.com LTD
|
||||||
Manor Coach House, Church Hill
|
Manor Coach House, Church Hill
|
||||||
@ -68,7 +68,7 @@ Additional Documentation:
|
|||||||
http://www.tcpdf.org
|
http://www.tcpdf.org
|
||||||
|
|
||||||
License
|
License
|
||||||
Copyright (C) 2002-2012 Nicola Asuni - Tecnick.com LTD
|
Copyright (C) 2002-2013 Nicola Asuni - Tecnick.com LTD
|
||||||
|
|
||||||
TCPDF is free software: you can redistribute it and/or modify it
|
TCPDF is free software: you can redistribute it and/or modify it
|
||||||
under the terms of the GNU Lesser General Public License as
|
under the terms of the GNU Lesser General Public License as
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tecnick.com/tcpdf",
|
"name": "tecnick.com/tcpdf",
|
||||||
"version": "5.9.202",
|
"version": "5.9.203",
|
||||||
"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.",
|
||||||
|
25
tcpdf.php
25
tcpdf.php
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
//============================================================+
|
//============================================================+
|
||||||
// File name : tcpdf.php
|
// File name : tcpdf.php
|
||||||
// Version : 5.9.202
|
// Version : 5.9.203
|
||||||
// Begin : 2002-08-03
|
// Begin : 2002-08-03
|
||||||
// Last Update : 2012-12-16
|
// Last Update : 2013-01-22
|
||||||
// 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
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
// Copyright (C) 2002-2012 Nicola Asuni - Tecnick.com LTD
|
// Copyright (C) 2002-2013 Nicola Asuni - Tecnick.com LTD
|
||||||
//
|
//
|
||||||
// This file is part of TCPDF software library.
|
// This file is part of TCPDF software library.
|
||||||
//
|
//
|
||||||
@ -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.202
|
* @version 5.9.203
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// 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.202
|
* @version 5.9.203
|
||||||
* @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.202';
|
private $tcpdf_version = '5.9.203';
|
||||||
|
|
||||||
// Protected properties
|
// Protected properties
|
||||||
|
|
||||||
@ -17703,7 +17703,7 @@ class TCPDF {
|
|||||||
/**
|
/**
|
||||||
* Creates a RadioButton field.
|
* Creates a RadioButton field.
|
||||||
* @param $name (string) Field name.
|
* @param $name (string) Field name.
|
||||||
* @param $w (int) Width or the radio button.
|
* @param $w (int) Width of the radio button.
|
||||||
* @param $prop (array) Javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
|
* @param $prop (array) Javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
|
||||||
* @param $opt (array) Annotation parameters. Possible values are described on official PDF32000_2008 reference.
|
* @param $opt (array) Annotation parameters. Possible values are described on official PDF32000_2008 reference.
|
||||||
* @param $onvalue (string) Value to be returned if selected.
|
* @param $onvalue (string) Value to be returned if selected.
|
||||||
@ -17771,9 +17771,10 @@ class TCPDF {
|
|||||||
// build appearance stream
|
// build appearance stream
|
||||||
$popt['ap'] = array();
|
$popt['ap'] = array();
|
||||||
$popt['ap']['n'] = array();
|
$popt['ap']['n'] = array();
|
||||||
|
$fx = ((($w - $this->getAbsFontMeasure($tmpfont['cw'][108])) / 2) * $this->k);
|
||||||
$fy = (($w - ((($tmpfont['desc']['Ascent'] - $tmpfont['desc']['Descent']) * $this->FontSizePt / 1000) / $this->k)) * $this->k);
|
$fy = (($w - ((($tmpfont['desc']['Ascent'] - $tmpfont['desc']['Descent']) * $this->FontSizePt / 1000) / $this->k)) * $this->k);
|
||||||
$popt['ap']['n'][$onvalue] = sprintf('q %s BT /F%d %F Tf %F %F Td ('.chr(108).') Tj ET Q', $this->TextColor, $tmpfont['i'], $this->FontSizePt, 0, $fy);
|
$popt['ap']['n'][$onvalue] = sprintf('q %s BT /F%d %F Tf %F %F Td ('.chr(108).') Tj ET Q', $this->TextColor, $tmpfont['i'], $this->FontSizePt, $fx, $fy);
|
||||||
$popt['ap']['n']['Off'] = sprintf('q %s BT /F%d %F Tf %F %F Td ('.chr(109).') Tj ET Q', $this->TextColor, $tmpfont['i'], $this->FontSizePt, 0, $fy);
|
$popt['ap']['n']['Off'] = sprintf('q %s BT /F%d %F Tf %F %F Td ('.chr(109).') Tj ET Q', $this->TextColor, $tmpfont['i'], $this->FontSizePt, $fx, $fy);
|
||||||
if (!isset($popt['mk'])) {
|
if (!isset($popt['mk'])) {
|
||||||
$popt['mk'] = array();
|
$popt['mk'] = array();
|
||||||
}
|
}
|
||||||
@ -18025,10 +18026,10 @@ class TCPDF {
|
|||||||
// build appearance stream
|
// build appearance stream
|
||||||
$popt['ap'] = array();
|
$popt['ap'] = array();
|
||||||
$popt['ap']['n'] = array();
|
$popt['ap']['n'] = array();
|
||||||
$fy = ((($tmpfont['desc']['Ascent'] + $tmpfont['desc']['Descent']) * $this->FontSizePt) / (1000 * $this->k));
|
$fx = ((($w - $this->getAbsFontMeasure($tmpfont['cw'][110])) / 2) * $this->k);
|
||||||
$fy = (($w - ((($tmpfont['desc']['Ascent'] - $tmpfont['desc']['Descent']) * $this->FontSizePt / 1000) / $this->k)) * $this->k);
|
$fy = (($w - ((($tmpfont['desc']['Ascent'] - $tmpfont['desc']['Descent']) * $this->FontSizePt / 1000) / $this->k)) * $this->k);
|
||||||
$popt['ap']['n']['Yes'] = sprintf('q %s BT /F%d %F Tf %F %F Td ('.chr(110).') Tj ET Q', $this->TextColor, $tmpfont['i'], $this->FontSizePt, 0, $fy);
|
$popt['ap']['n']['Yes'] = sprintf('q %s BT /F%d %F Tf %F %F Td ('.chr(110).') Tj ET Q', $this->TextColor, $tmpfont['i'], $this->FontSizePt, $fx, $fy);
|
||||||
$popt['ap']['n']['Off'] = sprintf('q %s BT /F%d %F Tf %F %F Td ('.chr(111).') Tj ET Q', $this->TextColor, $tmpfont['i'], $this->FontSizePt, 0, $fy);
|
$popt['ap']['n']['Off'] = sprintf('q %s BT /F%d %F Tf %F %F Td ('.chr(111).') Tj ET Q', $this->TextColor, $tmpfont['i'], $this->FontSizePt, $fx, $fy);
|
||||||
// merge options
|
// merge options
|
||||||
$opt = array_merge($popt, $opt);
|
$opt = array_merge($popt, $opt);
|
||||||
// set remaining annotation data
|
// set remaining annotation data
|
||||||
|
Loading…
Reference in New Issue
Block a user