32
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-11-26 06:17:33 +00:00
This commit is contained in:
nicolaasuni 2010-12-16 19:45:26 +01:00
parent 10a43f2623
commit a8b97f62be
5 changed files with 58 additions and 58 deletions

View File

@ -1,3 +1,6 @@
5.9.031 (2010-12-16)
- Source code documentation errors were fixed.
5.9.030 (2010-12-16) 5.9.030 (2010-12-16)
- Several source code documentation errors were fixed. - Several source code documentation errors were fixed.
- Source code style was changed for Doxygen. - Source code style was changed for Doxygen.

View File

@ -8,7 +8,7 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------ ------------------------------------------------------------
Name: TCPDF Name: TCPDF
Version: 5.9.030 Version: 5.9.031
Release date: 2010-12-16 Release date: 2010-12-16
Author: Nicola Asuni Author: Nicola Asuni

View File

@ -86,32 +86,31 @@ if (!defined('PDF417DEFS')) {
* PDF417 (ISO/IEC 15438:2006) is a 2-dimensional stacked bar code created by Symbol Technologies in 1991. * PDF417 (ISO/IEC 15438:2006) is a 2-dimensional stacked bar code created by Symbol Technologies in 1991.
* @name PDF417 * @name PDF417
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @brief Class to create PDF417 barcode arrays for TCPDF class.
* @author Nicola Asuni * @author Nicola Asuni
* @version 1.0.003 * @version 1.0.003
*/ */
class PDF417 { class PDF417 {
/** /**
* @var barcode array to be returned which is readable by TCPDF * Barcode array to be returned which is readable by TCPDF.
* @protected * @protected
*/ */
protected $barcode_array = array(); protected $barcode_array = array();
/** /**
* @var start pattern * Start pattern.
* @protected * @protected
*/ */
protected $start_pattern = '11111111010101000'; protected $start_pattern = '11111111010101000';
/** /**
* @var start pattern * Stop pattern.
* @protected * @protected
*/ */
protected $stop_pattern = '111111101000101001'; protected $stop_pattern = '111111101000101001';
/** /**
* @var Text Compaction Sub-Modes (values 0xFB - 0xFF are used for submode changers) * Array of text Compaction Sub-Modes (values 0xFB - 0xFF are used for submode changers).
* @protected * @protected
*/ */
protected $textsubmodes = array( protected $textsubmodes = array(
@ -122,7 +121,7 @@ class PDF417 {
); );
/** /**
* @var Switching codes for Text Compaction Sub-Modes * Array of switching codes for Text Compaction Sub-Modes.
* @protected * @protected
*/ */
protected $textlatch = array( protected $textlatch = array(
@ -133,7 +132,7 @@ class PDF417 {
); );
/** /**
* @var clusters of codewords (0, 3, 6)<br/> * Clusters of codewords (0, 3, 6)<br/>
* Values are hex equivalents of binary representation of bars (1 = bar, 0 = space).<br/> * Values are hex equivalents of binary representation of bars (1 = bar, 0 = space).<br/>
* The codewords numbered from 900 to 928 have special meaning, some enable to switch between modes in order to optimise the code:<ul> * The codewords numbered from 900 to 928 have special meaning, some enable to switch between modes in order to optimise the code:<ul>
* <li>900 : Switch to "Text" mode</li> * <li>900 : Switch to "Text" mode</li>
@ -439,7 +438,7 @@ class PDF417 {
); // end of $clusters array ); // end of $clusters array
/** /**
* @var Factors of the Reed-Solomon polynomial equations used for error correction; one sub array for each correction level (0-8) * Array of factors of the Reed-Solomon polynomial equations used for error correction; one sub array for each correction level (0-8).
* @protected * @protected
*/ */
protected $rsfactors = array( protected $rsfactors = array(
@ -526,7 +525,7 @@ class PDF417 {
* @param $code (string) code to represent using PDF417 * @param $code (string) code to represent using PDF417
* @param $ecl (int) error correction level (0-8); default -1 = automatic correction level * @param $ecl (int) error correction level (0-8); default -1 = automatic correction level
* @param $aspectratio (float) the width to height of the symbol (excluding quiet zones) * @param $aspectratio (float) the width to height of the symbol (excluding quiet zones)
* òparam array $macro information for macro block * @param $macro (array) information for macro block
* @public * @public
*/ */
public function __construct($code, $ecl=-1, $aspectratio=2, $macro=array()) { public function __construct($code, $ecl=-1, $aspectratio=2, $macro=array()) {

View File

@ -1,7 +1,7 @@
<?php <?php
//============================================================+ //============================================================+
// File name : qrcode.php // File name : qrcode.php
// Version : 1.0.008 // Version : 1.0.009
// Begin : 2010-03-22 // Begin : 2010-03-22
// Last Update : 2010-12-16 // Last Update : 2010-12-16
// Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
@ -75,7 +75,7 @@
* *
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @author Nicola Asuni * @author Nicola Asuni
* @version 1.0.008 * @version 1.0.009
*/ */
// definitions // definitions
@ -285,48 +285,48 @@ if (!function_exists('str_split')) {
* @name QRcode * @name QRcode
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @author Nicola Asuni * @author Nicola Asuni
* @version 1.0.008 * @version 1.0.009
*/ */
class QRcode { class QRcode {
/** /**
* @var barcode array to be returned which is readable by TCPDF * Barcode array to be returned which is readable by TCPDF.
* @protected * @protected
*/ */
protected $barcode_array = array(); protected $barcode_array = array();
/** /**
* @var QR code version. Size of QRcode is defined as version. Version is from 1 to 40. Version 1 is 21*21 matrix. And 4 modules increases whenever 1 version increases. So version 40 is 177*177 matrix. * QR code version. Size of QRcode is defined as version. Version is from 1 to 40. Version 1 is 21*21 matrix. And 4 modules increases whenever 1 version increases. So version 40 is 177*177 matrix.
* @protected * @protected
*/ */
protected $version = 0; protected $version = 0;
/** /**
* @var Levels of error correction. See definitions for possible values. * Levels of error correction. See definitions for possible values.
* @protected * @protected
*/ */
protected $level = QR_ECLEVEL_L; protected $level = QR_ECLEVEL_L;
/** /**
* @var Encoding mode * Encoding mode.
* @protected * @protected
*/ */
protected $hint = QR_MODE_8B; protected $hint = QR_MODE_8B;
/** /**
* @var if true the input string will be converted to uppercase * Boolean flag, if true the input string will be converted to uppercase.
* @protected * @protected
*/ */
protected $casesensitive = true; protected $casesensitive = true;
/** /**
* @var structured QR code (not supported yet) * Structured QR code (not supported yet).
* @protected * @protected
*/ */
protected $structured = 0; protected $structured = 0;
/** /**
* @var mask data * Mask data.
* @protected * @protected
*/ */
protected $data; protected $data;
@ -334,37 +334,37 @@ class QRcode {
// FrameFiller // FrameFiller
/** /**
* @var width * Width.
* @protected * @protected
*/ */
protected $width; protected $width;
/** /**
* @var frame * Frame.
* @protected * @protected
*/ */
protected $frame; protected $frame;
/** /**
* @var X position of bit * X position of bit.
* @protected * @protected
*/ */
protected $x; protected $x;
/** /**
* @var Y position of bit * Y position of bit.
* @protected * @protected
*/ */
protected $y; protected $y;
/** /**
* @var direction * Direction.
* @protected * @protected
*/ */
protected $dir; protected $dir;
/** /**
* @var single bit * Single bit value.
* @protected * @protected
*/ */
protected $bit; protected $bit;
@ -372,49 +372,49 @@ class QRcode {
// ---- QRrawcode ---- // ---- QRrawcode ----
/** /**
* @var data code * Data code.
* @protected * @protected
*/ */
protected $datacode = array(); protected $datacode = array();
/** /**
* @var error correction code * Error correction code.
* @protected * @protected
*/ */
protected $ecccode = array(); protected $ecccode = array();
/** /**
* @var blocks * Blocks.
* @protected * @protected
*/ */
protected $blocks; protected $blocks;
/** /**
* @var Reed-Solomon blocks * Reed-Solomon blocks.
* @protected * @protected
*/ */
protected $rsblocks = array(); //of RSblock protected $rsblocks = array(); //of RSblock
/** /**
* @var counter * Counter.
* @protected * @protected
*/ */
protected $count; protected $count;
/** /**
* @var data length * Data length.
* @protected * @protected
*/ */
protected $dataLength; protected $dataLength;
/** /**
* @var error correction length * Error correction length.
* @protected * @protected
*/ */
protected $eccLength; protected $eccLength;
/** /**
* @var b1 * Value b1.
* @protected * @protected
*/ */
protected $b1; protected $b1;
@ -422,7 +422,7 @@ class QRcode {
// ---- QRmask ---- // ---- QRmask ----
/** /**
* @var run length * Run length.
* @protected * @protected
*/ */
protected $runLength = array(); protected $runLength = array();
@ -430,13 +430,13 @@ class QRcode {
// ---- QRsplit ---- // ---- QRsplit ----
/** /**
* @var input data string * Input data string.
* @protected * @protected
*/ */
protected $dataStr = ''; protected $dataStr = '';
/** /**
* @var input items * Input items.
* @protected * @protected
*/ */
protected $items; protected $items;
@ -444,19 +444,19 @@ class QRcode {
// Reed-Solomon items // Reed-Solomon items
/** /**
* @var Reed-Solomon items * Reed-Solomon items.
* @protected * @protected
*/ */
protected $rsitems = array(); protected $rsitems = array();
/** /**
* @var array of frames * Array of frames.
* @protected * @protected
*/ */
protected $frames = array(); protected $frames = array();
/** /**
* @var alphabet-numeric convesion table * Alphabet-numeric convesion table.
* @protected * @protected
*/ */
protected $anTable = array( protected $anTable = array(
@ -471,7 +471,7 @@ class QRcode {
); );
/** /**
* @var array Table of the capacity of symbols * Array Table of the capacity of symbols.
* See Table 1 (pp.13) and Table 12-16 (pp.30-36), JIS X0510:2004. * See Table 1 (pp.13) and Table 12-16 (pp.30-36), JIS X0510:2004.
* @protected * @protected
*/ */
@ -520,7 +520,7 @@ class QRcode {
); );
/** /**
* @var array Length indicator * Array Length indicator.
* @protected * @protected
*/ */
protected $lengthTableBits = array( protected $lengthTableBits = array(
@ -531,7 +531,7 @@ class QRcode {
); );
/** /**
* @var array Table of the error correction code (Reed-Solomon block) * Array Table of the error correction code (Reed-Solomon block).
* See Table 12-16 (pp.30-36), JIS X0510:2004. * See Table 12-16 (pp.30-36), JIS X0510:2004.
* @protected * @protected
*/ */
@ -580,7 +580,7 @@ class QRcode {
); );
/** /**
* @var array Positions of alignment patterns. * Array Positions of alignment patterns.
* This array includes only the second and the third position of the alignment patterns. Rest of them can be calculated from the distance between them. * This array includes only the second and the third position of the alignment patterns. Rest of them can be calculated from the distance between them.
* See Table 1 in Appendix E (pp.71) of JIS X0510:2004. * See Table 1 in Appendix E (pp.71) of JIS X0510:2004.
* @protected * @protected
@ -598,7 +598,7 @@ class QRcode {
); );
/** /**
* @var array Version information pattern (BCH coded). * Array Version information pattern (BCH coded).
* See Table 1 in Appendix D (pp.68) of JIS X0510:2004. * See Table 1 in Appendix D (pp.68) of JIS X0510:2004.
* size: [QRSPEC_VERSION_MAX - 6] * size: [QRSPEC_VERSION_MAX - 6]
* @protected * @protected
@ -612,7 +612,7 @@ class QRcode {
); );
/** /**
* @var array Format information * Array Format information
* @protected * @protected
*/ */
protected $formatInfo = array( protected $formatInfo = array(
@ -1685,7 +1685,7 @@ class QRcode {
/** /**
* Append data to an input object. * Append data to an input object.
* The data is copied and appended to the input object. * The data is copied and appended to the input object.
* @param array items input items * @param $items (arrray) input items
* @param $mode (int) encoding mode. * @param $mode (int) encoding mode.
* @param $size (int) size of data (byte). * @param $size (int) size of data (byte).
* @param $data (array) array of input data. * @param $data (array) array of input data.
@ -1852,7 +1852,7 @@ class QRcode {
* Validate the input data. * Validate the input data.
* @param $mode (int) encoding mode. * @param $mode (int) encoding mode.
* @param $size (int) size of data (byte). * @param $size (int) size of data (byte).
* @param array data data to validate * @param $data (array) data to validate
* @return boolean true in case of valid data, false otherwise * @return boolean true in case of valid data, false otherwise
*/ */
protected function check($mode, $size, $data) { protected function check($mode, $size, $data) {
@ -2081,7 +2081,7 @@ class QRcode {
/** /**
* mergeBitStream * mergeBitStream
* @param $bstream (array) * @param $items (array) items
* @return array bitstream * @return array bitstream
*/ */
protected function mergeBitStream($items) { protected function mergeBitStream($items) {
@ -2221,7 +2221,7 @@ class QRcode {
/** /**
* Convert bitstream to bytes * Convert bitstream to bytes
* @param $bitstream (array) original bitstream * @param $bstream (array) original bitstream
* @return array of bytes * @return array of bytes
*/ */
protected function bitstreamToByte($bstream) { protected function bitstreamToByte($bstream) {
@ -2407,7 +2407,6 @@ class QRcode {
/** /**
* Put an alignment marker. * Put an alignment marker.
* @param $frame (array) frame * @param $frame (array) frame
* @param $width (int) width
* @param $ox (int) X center coordinate of the pattern * @param $ox (int) X center coordinate of the pattern
* @param $oy (int) Y center coordinate of the pattern * @param $oy (int) Y center coordinate of the pattern
* @return array frame * @return array frame
@ -2431,7 +2430,7 @@ class QRcode {
/** /**
* Put an alignment pattern. * Put an alignment pattern.
* @param $version (int) version * @param $version (int) version
* @param $fram (array) frame * @param $frame (array) frame
* @param $width (int) width * @param $width (int) width
* @return array frame * @return array frame
*/ */
@ -2501,7 +2500,6 @@ class QRcode {
/** /**
* Put a finder pattern. * Put a finder pattern.
* @param $frame (array) frame * @param $frame (array) frame
* @param $width (int) width
* @param $ox (int) X center coordinate of the pattern * @param $ox (int) X center coordinate of the pattern
* @param $oy (int) Y center coordinate of the pattern * @param $oy (int) Y center coordinate of the pattern
* @return array frame * @return array frame
@ -2719,7 +2717,7 @@ class QRcode {
/** /**
* modnn * modnn
* @param array RS values * @param $rs (array) RS values
* @param $x (int) X position * @param $x (int) X position
* @return int X osition * @return int X osition
*/ */

View File

@ -1,7 +1,7 @@
<?php <?php
//============================================================+ //============================================================+
// File name : tcpdf.php // File name : tcpdf.php
// Version : 5.9.030 // Version : 5.9.031
// Begin : 2002-08-03 // Begin : 2002-08-03
// Last Update : 2010-12-16 // Last Update : 2010-12-16
// Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
@ -133,7 +133,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.030 * @version 5.9.031
*/ */
/** /**
@ -148,7 +148,7 @@ require_once(dirname(__FILE__).'/config/tcpdf_config.php');
* @name TCPDF * @name TCPDF
* @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.030 * @version 5.9.031
* @author Nicola Asuni - info@tecnick.com * @author Nicola Asuni - info@tecnick.com
*/ */
class TCPDF { class TCPDF {
@ -159,7 +159,7 @@ class TCPDF {
* Current TCPDF version. * Current TCPDF version.
* @private * @private
*/ */
private $tcpdf_version = '5.9.030'; private $tcpdf_version = '5.9.031';
// Protected properties // Protected properties