diff --git a/2dbarcodes.php b/2dbarcodes.php
index 8b73857..be5f322 100644
--- a/2dbarcodes.php
+++ b/2dbarcodes.php
@@ -3,7 +3,7 @@
// File name : 2dbarcodes.php
// Version : 1.0.007
// Begin : 2009-04-07
-// Last Update : 2010-08-08
+// 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
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@@ -35,11 +35,7 @@
/**
* PHP class to creates array representations for 2D barcodes to be used with TCPDF.
* @package com.tecnick.tcpdf
- * @abstract Functions for generating string representation of 2D barcodes.
* @author Nicola Asuni
- * @copyright 2009-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
- * @link http://www.tcpdf.org
- * @license http://www.gnu.org/copyleft/lesser.html LGPL
* @version 1.0.007
*/
@@ -49,14 +45,12 @@
* @package com.tecnick.tcpdf
* @version 1.0.007
* @author Nicola Asuni
- * @link http://www.tcpdf.org
- * @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
class TCPDF2DBarcode {
/**
- * @var array representation of barcode.
- * @access protected
+ * Array representation of barcode.
+ * @protected
*/
protected $barcode_array = false;
@@ -67,8 +61,8 @@ class TCPDF2DBarcode {
*
$arrcode['num_rows'] required number of rows
*
$arrcode['num_cols'] required number of columns
*
$arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)
- * @param string $code code to print
- * @param string $type type of barcode:
RAW: raw mode - comma-separad list of array rows
RAW2: raw mode - array rows are surrounded by square parenthesis.
QRCODE : QR-CODE Low error correction
QRCODE,L : QR-CODE Low error correction
QRCODE,M : QR-CODE Medium error correction
QRCODE,Q : QR-CODE Better error correction
QRCODE,H : QR-CODE Best error correction
PDF417 : PDF417 (ISO/IEC 15438:2006)
PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".
+ * @param $code (string) code to print
+ * @param $type (string) type of barcode:
RAW: raw mode - comma-separad list of array rows
RAW2: raw mode - array rows are surrounded by square parenthesis.
QRCODE : QR-CODE Low error correction
QRCODE,L : QR-CODE Low error correction
QRCODE,M : QR-CODE Medium error correction
QRCODE,Q : QR-CODE Better error correction
QRCODE,H : QR-CODE Best error correction
PDF417 : PDF417 (ISO/IEC 15438:2006)
PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".
*/
public function __construct($code, $type) {
$this->setBarcode($code, $type);
@@ -84,8 +78,8 @@ class TCPDF2DBarcode {
/**
* Set the barcode.
- * @param string $code code to print
- * @param string $type type of barcode:
RAW: raw mode - comma-separad list of array rows
RAW2: raw mode - array rows are surrounded by square parenthesis.
QRCODE : QR-CODE Low error correction
QRCODE,L : QR-CODE Low error correction
QRCODE,M : QR-CODE Medium error correction
QRCODE,Q : QR-CODE Better error correction
QRCODE,H : QR-CODE Best error correction
PDF417 : PDF417 (ISO/IEC 15438:2006)
PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".
+ * @param $code (string) code to print
+ * @param $type (string) type of barcode:
RAW: raw mode - comma-separad list of array rows
RAW2: raw mode - array rows are surrounded by square parenthesis.
QRCODE : QR-CODE Low error correction
QRCODE,L : QR-CODE Low error correction
QRCODE,M : QR-CODE Medium error correction
QRCODE,Q : QR-CODE Better error correction
QRCODE,H : QR-CODE Best error correction
PDF417 : PDF417 (ISO/IEC 15438:2006)
PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".
* @return array
*/
public function setBarcode($code, $type) {
diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT
index 31e8d76..6565e0f 100755
--- a/CHANGELOG.TXT
+++ b/CHANGELOG.TXT
@@ -1,3 +1,8 @@
+5.9.030 (2010-12-16)
+ - Several source code documentation errors were fixed.
+ - Source code style was changed for Doxygen.
+ - Source code documentation was moved online to http://www.tcpdf.org
+
5.9.029 (2010-12-04)
- The $fitbox parameter on Image() method was extended to specify image alignment inside the box (check the example n. 9).
diff --git a/README.TXT b/README.TXT
index d98ee28..fef1bf6 100755
--- a/README.TXT
+++ b/README.TXT
@@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
-Version: 5.9.029
-Release date: 2010-12-04
+Version: 5.9.030
+Release date: 2010-12-16
Author: Nicola Asuni
Copyright (c) 2002-2010:
@@ -61,6 +61,7 @@ Installation (full instructions on http: www.tcpdf.org):
Source Code Documentation:
doc/index.html
+ http://www.tcpdf.org/doc/
For Additional Documentation:
http: www.tcpdf.org
diff --git a/barcodes.php b/barcodes.php
index 4efb7a4..dc00f5c 100755
--- a/barcodes.php
+++ b/barcodes.php
@@ -1,9 +1,9 @@
* @name TCPDFBarcode
* @package com.tecnick.tcpdf
- * @version 1.0.011
+ * @version 1.0.012
* @author Nicola Asuni
- * @link http://www.tcpdf.org
- * @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
class TCPDFBarcode {
/**
- * @var array representation of barcode.
- * @access protected
+ * Array representation of barcode.
+ * @protected
*/
protected $barcode_array;
@@ -71,8 +65,8 @@ class TCPDFBarcode {
*
$arrcode['bcode'][$k]['w'] bar width in units.
*
$arrcode['bcode'][$k]['h'] bar height in units.
*
$arrcode['bcode'][$k]['p'] bar top position (0 = top, 1 = middle)
- * @param string $code code to print
- * @param string $type type of barcode:
RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)
KIX : KIX (Klant index - Customer index)
IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200
CODABAR : CODABAR
CODE11 : CODE 11
PHARMA : PHARMACODE
PHARMA2T : PHARMACODE TWO-TRACKS
*/
public function __construct($code, $type) {
$this->setBarcode($code, $type);
@@ -88,8 +82,8 @@ class TCPDFBarcode {
/**
* Set the barcode.
- * @param string $code code to print
- * @param string $type type of barcode:
RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)
KIX : KIX (Klant index - Customer index)
IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200
CODABAR : CODABAR
CODE11 : CODE 11
PHARMA : PHARMACODE
PHARMA2T : PHARMACODE TWO-TRACKS
* @return array
*/
public function setBarcode($code, $type) {
@@ -222,10 +216,11 @@ class TCPDFBarcode {
/**
* CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.
* General-purpose code in very wide use world-wide
- * @param string $code code to represent.
- * @param boolean $checksum if true add a checksum to the code
+ * @param $code (string) code to represent.
+ * @param $extended (boolean) if true uses the extended mode.
+ * @param $checksum (boolean) if true add a checksum to the code.
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_code39($code, $extended=false, $checksum=false) {
$chr['0'] = '111221211';
@@ -317,9 +312,9 @@ class TCPDFBarcode {
/**
* Encode a string to be used for CODE 39 Extended mode.
- * @param string $code code to represent.
+ * @param $code (string) code to represent.
* @return encoded string.
- * @access protected
+ * @protected
*/
protected function encode_code39_ext($code) {
$encode = array(
@@ -368,9 +363,9 @@ class TCPDFBarcode {
/**
* Calculate CODE 39 checksum (modulo 43).
- * @param string $code code to represent.
+ * @param $code (string) code to represent.
* @return char checksum.
- * @access protected
+ * @protected
*/
protected function checksum_code39($code) {
$chars = array(
@@ -391,10 +386,9 @@ class TCPDFBarcode {
/**
* CODE 93 - USS-93
* Compact code similar to Code 39
- * @param string $code code to represent.
- * @param boolean $checksum if true add a checksum to the code
+ * @param $code (string) code to represent.
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_code93($code) {
$chr['0'] = '131112';
@@ -520,9 +514,9 @@ class TCPDFBarcode {
/**
* Calculate CODE 93 checksum (modulo 47).
- * @param string $code code to represent.
+ * @param $code (string) code to represent.
* @return string checksum code.
- * @access protected
+ * @protected
*/
protected function checksum_code93($code) {
$chars = array(
@@ -565,9 +559,9 @@ class TCPDFBarcode {
/**
* Checksum for standard 2 of 5 barcodes.
- * @param string $code code to process.
+ * @param $code (string) code to process.
* @return int checksum.
- * @access protected
+ * @protected
*/
protected function checksum_s25($code) {
$len = strlen($code);
@@ -590,10 +584,10 @@ class TCPDFBarcode {
* MSI.
* Variation of Plessey code, with similar applications
* Contains digits (0 to 9) and encodes the data only in the width of bars.
- * @param string $code code to represent.
- * @param boolean $checksum if true add a checksum to the code (modulo 11)
+ * @param $code (string) code to represent.
+ * @param $checksum (boolean) if true add a checksum to the code (modulo 11)
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_msi($code, $checksum=false) {
$chr['0'] = '100100100100';
@@ -649,10 +643,10 @@ class TCPDFBarcode {
* Standard 2 of 5 barcodes.
* Used in airline ticket marking, photofinishing
* Contains digits (0 to 9) and encodes the data only in the width of bars.
- * @param string $code code to represent.
- * @param boolean $checksum if true add a checksum to the code
+ * @param $code (string) code to represent.
+ * @param $checksum (boolean) if true add a checksum to the code
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_s25($code, $checksum=false) {
$chr['0'] = '10101110111010';
@@ -689,11 +683,12 @@ class TCPDFBarcode {
}
/**
- * Convert binary barcode sequence to TCPDF barcode array
- * @param string $seq barcode as binary sequence
+ * Convert binary barcode sequence to TCPDF barcode array.
+ * @param $seq (string) barcode as binary sequence.
+ * @param $bararray (array) barcode array.
* òparam array $bararray TCPDF barcode array to fill up
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function binseq_to_array($seq, $bararray) {
$len = strlen($seq);
@@ -720,10 +715,10 @@ class TCPDFBarcode {
* Interleaved 2 of 5 barcodes.
* Compact numeric code, widely used in industry, air cargo
* Contains digits (0 to 9) and encodes the data in the width of both bars and spaces.
- * @param string $code code to represent.
- * @param boolean $checksum if true add a checksum to the code
+ * @param $code (string) code to represent.
+ * @param $checksum (boolean) if true add a checksum to the code
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_i25($code, $checksum=false) {
$chr['0'] = '11221';
@@ -784,10 +779,10 @@ class TCPDFBarcode {
/**
* C128 barcodes.
* Very capable code, excellent density, high reliability; in very wide use world-wide
- * @param string $code code to represent.
- * @param string $type barcode type: A, B or C
+ * @param $code (string) code to represent.
+ * @param $type (string) barcode type: A, B or C
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_c128($code, $type='B') {
$chr = array(
@@ -980,10 +975,10 @@ class TCPDFBarcode {
* EAN13: European Article Numbering international retail product code
* UPC-A: Universal product code seen on almost all retail products in the USA and Canada
* UPC-E: Short version of UPC symbol
- * @param string $code code to represent.
- * @param string $len barcode type: 6 = UPC-E, 8 = EAN8, 13 = EAN13, 12 = UPC-A
+ * @param $code (string) code to represent.
+ * @param $len (string) barcode type: 6 = UPC-E, 8 = EAN8, 13 = EAN13, 12 = UPC-A
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_eanupc($code, $len=13) {
$upce = false;
@@ -1173,10 +1168,10 @@ class TCPDFBarcode {
* UPC-Based Extentions
* 2-Digit Ext.: Used to indicate magazines and newspaper issue numbers
* 5-Digit Ext.: Used to mark suggested retail price of books
- * @param string $code code to represent.
- * @param string $len barcode type: 2 = 2-Digit, 5 = 5-Digit
+ * @param $code (string) code to represent.
+ * @param $len (string) barcode type: 2 = 2-Digit, 5 = 5-Digit
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_eanext($code, $len=5) {
//Padding
@@ -1248,10 +1243,10 @@ class TCPDFBarcode {
/**
* POSTNET and PLANET barcodes.
* Used by U.S. Postal Service for automated mail sorting
- * @param string $code zip code to represent. Must be a string containing a zip code of the form DDDDD or DDDDD-DDDD.
- * @param boolean $planet if true print the PLANET barcode, otherwise print POSTNET
+ * @param $code (string) zip code to represent. Must be a string containing a zip code of the form DDDDD or DDDDD-DDDD.
+ * @param $planet (boolean) if true print the PLANET barcode, otherwise print POSTNET
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_postnet($code, $planet=false) {
// bar lenght
@@ -1321,10 +1316,10 @@ class TCPDFBarcode {
* RMS4CC - CBC - KIX
* RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) - KIX (Klant index - Customer index)
* RM4SCC is the name of the barcode symbology used by the Royal Mail for its Cleanmail service.
- * @param string $code code to print
- * @param boolean $kix if true prints the KIX variation (doesn't use the start and end symbols, and the checksum) - in this case the house number must be sufficed with an X and placed at the end of the code.
+ * @param $code (string) code to print
+ * @param $kix (boolean) if true prints the KIX variation (doesn't use the start and end symbols, and the checksum) - in this case the house number must be sufficed with an X and placed at the end of the code.
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_rms4cc($code, $kix=false) {
$notkix = !$kix;
@@ -1473,9 +1468,9 @@ class TCPDFBarcode {
/**
* CODABAR barcodes.
* Older code often used in library systems, sometimes in blood banks
- * @param string $code code to represent.
+ * @param $code (string) code to represent.
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_codabar($code) {
$chr = array(
@@ -1529,9 +1524,9 @@ class TCPDFBarcode {
/**
* CODE11 barcodes.
* Used primarily for labeling telecommunications equipment
- * @param string $code code to represent.
+ * @param $code (string) code to represent.
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_code11($code) {
$chr = array(
@@ -1621,9 +1616,9 @@ class TCPDFBarcode {
/**
* Pharmacode
* Contains digits (0 to 9)
- * @param string $code code to represent.
+ * @param $code (string) code to represent.
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_pharmacode($code) {
$seq = '';
@@ -1647,9 +1642,9 @@ class TCPDFBarcode {
/**
* Pharmacode two-track
* Contains digits (0 to 9)
- * @param string $code code to represent.
+ * @param $code (string) code to represent.
* @return array barcode representation.
- * @access protected
+ * @protected
*/
protected function barcode_pharmacode2t($code) {
$seq = '';
@@ -1710,9 +1705,9 @@ class TCPDFBarcode {
* (requires PHP bcmath extension)
* Intelligent Mail barcode is a 65-bar code for use on mail in the United States.
* The fields are described as follows:
The Barcode Identifier shall be assigned by USPS to encode the presort identification that is currently printed in human readable form on the optional endorsement line (OEL) as well as for future USPS use. This shall be two digits, with the second digit in the range of 0–4. The allowable encoding ranges shall be 00–04, 10–14, 20–24, 30–34, 40–44, 50–54, 60–64, 70–74, 80–84, and 90–94.
The Service Type Identifier shall be assigned by USPS for any combination of services requested on the mailpiece. The allowable encoding range shall be 000http://it2.php.net/manual/en/function.dechex.php–999. Each 3-digit value shall correspond to a particular mail class with a particular combination of service(s). Each service program, such as OneCode Confirm and OneCode ACS, shall provide the list of Service Type Identifier values.
The Mailer or Customer Identifier shall be assigned by USPS as a unique, 6 or 9 digit number that identifies a business entity. The allowable encoding range for the 6 digit Mailer ID shall be 000000- 899999, while the allowable encoding range for the 9 digit Mailer ID shall be 900000000-999999999.
The Serial or Sequence Number shall be assigned by the mailer for uniquely identifying and tracking mailpieces. The allowable encoding range shall be 000000000–999999999 when used with a 6 digit Mailer ID and 000000-999999 when used with a 9 digit Mailer ID. e. The Delivery Point ZIP Code shall be assigned by the mailer for routing the mailpiece. This shall replace POSTNET for routing the mailpiece to its final delivery point. The length may be 0, 5, 9, or 11 digits. The allowable encoding ranges shall be no ZIP Code, 00000–99999, 000000000–999999999, and 00000000000–99999999999.
.
- */
- protected function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) {
- foreach ($this->rsitems as $rs) {
- if (($rs['pad'] != $pad) OR ($rs['nroots'] != $nroots) OR ($rs['mm'] != $symsize)
- OR ($rs['gfpoly'] != $gfpoly) OR ($rs['fcr'] != $fcr) OR ($rs['prim'] != $prim)) {
- continue;
+ $v = $vinf;
+ for ($y=0; $y<6; ++$y) {
+ for ($x=0; $x<3; ++$x) {
+ $frame[$y][$x+($width - 11)] = chr(0x88 | ($v & 1));
+ $v = $v >> 1;
}
- return $rs;
}
- $rs = $this->init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad);
- array_unshift($this->rsitems, $rs);
- return $rs;
}
+ // and a little bit...
+ $frame[$width - 8][8] = "\x81";
+ return $frame;
+ }
- // - - - - - - - - - - - - - - - - - - - - - - - - -
-
- // QRrsItem
-
- /**
- * modnn
- * @param array RS values
- * @param int $x X position
- * @return int X osition
- */
- protected function modnn($rs, $x) {
- while ($x >= $rs['nn']) {
- $x -= $rs['nn'];
- $x = ($x >> $rs['mm']) + ($x & $rs['nn']);
- }
- return $x;
+ /**
+ * Set new frame for the specified version.
+ * @param $version (int) version
+ * @return Array of unsigned char.
+ */
+ protected function newFrame($version) {
+ if (($version < 1) OR ($version > QRSPEC_VERSION_MAX)) {
+ return NULL;
}
+ if (!isset($this->frames[$version])) {
+ $this->frames[$version] = $this->createFrame($version);
+ }
+ if (is_null($this->frames[$version])) {
+ return NULL;
+ }
+ return $this->frames[$version];
+ }
- /**
- * Initialize a Reed-Solomon codec and returns an array of values.
- * @param int $symsize symbol size, bits
- * @param int $gfpoly Field generator polynomial coefficients
- * @param int $fcr first root of RS code generator polynomial, index form
- * @param int $prim primitive element to generate polynomial roots
- * @param int $nroots RS code generator polynomial degree (number of roots)
- * @param int $pad padding bytes at front of shortened block
- * @return array Array of RS values:
mm = Bits per symbol;
nn = Symbols per block;
alpha_to = log lookup table array;
index_of = Antilog lookup table array;
genpoly = Generator polynomial array;
nroots = Number of generator;
roots = number of parity symbols;
fcr = First consecutive root, index form;
prim = Primitive element, index form;
iprim = prim-th root of 1, index form;
pad = Padding bytes in shortened block;
gfpoly
.
- */
- protected function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) {
- // Based on Reed solomon encoder by Phil Karn, KA9Q (GNU-LGPLv2)
- $rs = null;
- // Check parameter ranges
- if (($symsize < 0) OR ($symsize > 8)) {
- return $rs;
- }
- if (($fcr < 0) OR ($fcr >= (1<<$symsize))) {
- return $rs;
- }
- if (($prim <= 0) OR ($prim >= (1<<$symsize))) {
- return $rs;
- }
- if (($nroots < 0) OR ($nroots >= (1<<$symsize))) {
- return $rs;
- }
- if (($pad < 0) OR ($pad >= ((1<<$symsize) -1 - $nroots))) {
- return $rs;
- }
- $rs = array();
- $rs['mm'] = $symsize;
- $rs['nn'] = (1 << $symsize) - 1;
- $rs['pad'] = $pad;
- $rs['alpha_to'] = array_fill(0, ($rs['nn'] + 1), 0);
- $rs['index_of'] = array_fill(0, ($rs['nn'] + 1), 0);
- // PHP style macro replacement ;)
- $NN =& $rs['nn'];
- $A0 =& $NN;
- // Generate Galois field lookup tables
- $rs['index_of'][0] = $A0; // log(zero) = -inf
- $rs['alpha_to'][$A0] = 0; // alpha**-inf = 0
- $sr = 1;
- for ($i=0; $i<$rs['nn']; ++$i) {
- $rs['index_of'][$sr] = $i;
- $rs['alpha_to'][$i] = $sr;
- $sr <<= 1;
- if ($sr & (1 << $symsize)) {
- $sr ^= $gfpoly;
- }
- $sr &= $rs['nn'];
- }
- if ($sr != 1) {
- // field generator polynomial is not primitive!
- return NULL;
- }
- // Form RS code generator polynomial from its roots
- $rs['genpoly'] = array_fill(0, ($nroots + 1), 0);
- $rs['fcr'] = $fcr;
- $rs['prim'] = $prim;
- $rs['nroots'] = $nroots;
- $rs['gfpoly'] = $gfpoly;
- // Find prim-th root of 1, used in decoding
- for ($iprim=1; ($iprim % $prim) != 0; $iprim += $rs['nn']) {
- ; // intentional empty-body loop!
- }
- $rs['iprim'] = (int)($iprim / $prim);
- $rs['genpoly'][0] = 1;
- for ($i = 0,$root=$fcr*$prim; $i < $nroots; $i++, $root += $prim) {
- $rs['genpoly'][$i+1] = 1;
- // Multiply rs->genpoly[] by @**(root + x)
- for ($j = $i; $j > 0; --$j) {
- if ($rs['genpoly'][$j] != 0) {
- $rs['genpoly'][$j] = $rs['genpoly'][$j-1] ^ $rs['alpha_to'][$this->modnn($rs, $rs['index_of'][$rs['genpoly'][$j]] + $root)];
- } else {
- $rs['genpoly'][$j] = $rs['genpoly'][$j-1];
- }
- }
- // rs->genpoly[0] can never be zero
- $rs['genpoly'][0] = $rs['alpha_to'][$this->modnn($rs, $rs['index_of'][$rs['genpoly'][0]] + $root)];
- }
- // convert rs->genpoly[] to index form for quicker encoding
- for ($i = 0; $i <= $nroots; ++$i) {
- $rs['genpoly'][$i] = $rs['index_of'][$rs['genpoly'][$i]];
+ /**
+ * Return block number 0
+ * @param $spec (array)
+ * @return int value
+ */
+ protected function rsBlockNum($spec) {
+ return ($spec[0] + $spec[3]);
+ }
+
+ /**
+ * Return block number 1
+ * @param $spec (array)
+ * @return int value
+ */
+ protected function rsBlockNum1($spec) {
+ return $spec[0];
+ }
+
+ /**
+ * Return data codes 1
+ * @param $spec (array)
+ * @return int value
+ */
+ protected function rsDataCodes1($spec) {
+ return $spec[1];
+ }
+
+ /**
+ * Return ecc codes 1
+ * @param $spec (array)
+ * @return int value
+ */
+ protected function rsEccCodes1($spec) {
+ return $spec[2];
+ }
+
+ /**
+ * Return block number 2
+ * @param $spec (array)
+ * @return int value
+ */
+ protected function rsBlockNum2($spec) {
+ return $spec[3];
+ }
+
+ /**
+ * Return data codes 2
+ * @param $spec (array)
+ * @return int value
+ */
+ protected function rsDataCodes2($spec) {
+ return $spec[4];
+ }
+
+ /**
+ * Return ecc codes 2
+ * @param $spec (array)
+ * @return int value
+ */
+ protected function rsEccCodes2($spec) {
+ return $spec[2];
+ }
+
+ /**
+ * Return data length
+ * @param $spec (array)
+ * @return int value
+ */
+ protected function rsDataLength($spec) {
+ return ($spec[0] * $spec[1]) + ($spec[3] * $spec[4]);
+ }
+
+ /**
+ * Return ecc length
+ * @param $spec (array)
+ * @return int value
+ */
+ protected function rsEccLength($spec) {
+ return ($spec[0] + $spec[3]) * $spec[2];
+ }
+
+ // - - - - - - - - - - - - - - - - - - - - - - - - -
+
+ // QRrs
+
+ /**
+ * Initialize a Reed-Solomon codec and add it to existing rsitems
+ * @param $symsize (int) symbol size, bits
+ * @param $gfpoly (int) Field generator polynomial coefficients
+ * @param $fcr (int) first root of RS code generator polynomial, index form
+ * @param $prim (int) primitive element to generate polynomial roots
+ * @param $nroots (int) RS code generator polynomial degree (number of roots)
+ * @param $pad (int) padding bytes at front of shortened block
+ * @return array Array of RS values:
mm = Bits per symbol;
nn = Symbols per block;
alpha_to = log lookup table array;
index_of = Antilog lookup table array;
genpoly = Generator polynomial array;
nroots = Number of generator;
roots = number of parity symbols;
fcr = First consecutive root, index form;
prim = Primitive element, index form;
iprim = prim-th root of 1, index form;
pad = Padding bytes in shortened block;
gfpoly
.
+ */
+ protected function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) {
+ foreach ($this->rsitems as $rs) {
+ if (($rs['pad'] != $pad) OR ($rs['nroots'] != $nroots) OR ($rs['mm'] != $symsize)
+ OR ($rs['gfpoly'] != $gfpoly) OR ($rs['fcr'] != $fcr) OR ($rs['prim'] != $prim)) {
+ continue;
}
return $rs;
}
+ $rs = $this->init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad);
+ array_unshift($this->rsitems, $rs);
+ return $rs;
+ }
- /**
- * Encode a Reed-Solomon codec and returns the parity array
- * @param array $rs RS values
- * @param array $data data
- * @param array $parity parity
- * @return parity array
- */
- protected function encode_rs_char($rs, $data, $parity) {
- $MM =& $rs['mm']; // bits per symbol
- $NN =& $rs['nn']; // the total number of symbols in a RS block
- $ALPHA_TO =& $rs['alpha_to']; // the address of an array of NN elements to convert Galois field elements in index (log) form to polynomial form
- $INDEX_OF =& $rs['index_of']; // the address of an array of NN elements to convert Galois field elements in polynomial form to index (log) form
- $GENPOLY =& $rs['genpoly']; // an array of NROOTS+1 elements containing the generator polynomial in index form
- $NROOTS =& $rs['nroots']; // the number of roots in the RS code generator polynomial, which is the same as the number of parity symbols in a block
- $FCR =& $rs['fcr']; // first consecutive root, index form
- $PRIM =& $rs['prim']; // primitive element, index form
- $IPRIM =& $rs['iprim']; // prim-th root of 1, index form
- $PAD =& $rs['pad']; // the number of pad symbols in a block
- $A0 =& $NN;
- $parity = array_fill(0, $NROOTS, 0);
- for ($i=0; $i < ($NN - $NROOTS - $PAD); $i++) {
- $feedback = $INDEX_OF[$data[$i] ^ $parity[0]];
- if ($feedback != $A0) {
- // feedback term is non-zero
- // This line is unnecessary when GENPOLY[NROOTS] is unity, as it must
- // always be for the polynomials constructed by init_rs()
- $feedback = $this->modnn($rs, $NN - $GENPOLY[$NROOTS] + $feedback);
- for ($j=1; $j < $NROOTS; ++$j) {
- $parity[$j] ^= $ALPHA_TO[$this->modnn($rs, $feedback + $GENPOLY[($NROOTS - $j)])];
- }
- }
- // Shift
- array_shift($parity);
- if ($feedback != $A0) {
- array_push($parity, $ALPHA_TO[$this->modnn($rs, $feedback + $GENPOLY[0])]);
+ // - - - - - - - - - - - - - - - - - - - - - - - - -
+
+ // QRrsItem
+
+ /**
+ * modnn
+ * @param array RS values
+ * @param $x (int) X position
+ * @return int X osition
+ */
+ protected function modnn($rs, $x) {
+ while ($x >= $rs['nn']) {
+ $x -= $rs['nn'];
+ $x = ($x >> $rs['mm']) + ($x & $rs['nn']);
+ }
+ return $x;
+ }
+
+ /**
+ * Initialize a Reed-Solomon codec and returns an array of values.
+ * @param $symsize (int) symbol size, bits
+ * @param $gfpoly (int) Field generator polynomial coefficients
+ * @param $fcr (int) first root of RS code generator polynomial, index form
+ * @param $prim (int) primitive element to generate polynomial roots
+ * @param $nroots (int) RS code generator polynomial degree (number of roots)
+ * @param $pad (int) padding bytes at front of shortened block
+ * @return array Array of RS values:
mm = Bits per symbol;
nn = Symbols per block;
alpha_to = log lookup table array;
index_of = Antilog lookup table array;
genpoly = Generator polynomial array;
nroots = Number of generator;
roots = number of parity symbols;
fcr = First consecutive root, index form;
prim = Primitive element, index form;
iprim = prim-th root of 1, index form;
pad = Padding bytes in shortened block;
gfpoly
.
+ */
+ protected function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) {
+ // Based on Reed solomon encoder by Phil Karn, KA9Q (GNU-LGPLv2)
+ $rs = null;
+ // Check parameter ranges
+ if (($symsize < 0) OR ($symsize > 8)) {
+ return $rs;
+ }
+ if (($fcr < 0) OR ($fcr >= (1<<$symsize))) {
+ return $rs;
+ }
+ if (($prim <= 0) OR ($prim >= (1<<$symsize))) {
+ return $rs;
+ }
+ if (($nroots < 0) OR ($nroots >= (1<<$symsize))) {
+ return $rs;
+ }
+ if (($pad < 0) OR ($pad >= ((1<<$symsize) -1 - $nroots))) {
+ return $rs;
+ }
+ $rs = array();
+ $rs['mm'] = $symsize;
+ $rs['nn'] = (1 << $symsize) - 1;
+ $rs['pad'] = $pad;
+ $rs['alpha_to'] = array_fill(0, ($rs['nn'] + 1), 0);
+ $rs['index_of'] = array_fill(0, ($rs['nn'] + 1), 0);
+ // PHP style macro replacement ;)
+ $NN =& $rs['nn'];
+ $A0 =& $NN;
+ // Generate Galois field lookup tables
+ $rs['index_of'][0] = $A0; // log(zero) = -inf
+ $rs['alpha_to'][$A0] = 0; // alpha**-inf = 0
+ $sr = 1;
+ for ($i=0; $i<$rs['nn']; ++$i) {
+ $rs['index_of'][$sr] = $i;
+ $rs['alpha_to'][$i] = $sr;
+ $sr <<= 1;
+ if ($sr & (1 << $symsize)) {
+ $sr ^= $gfpoly;
+ }
+ $sr &= $rs['nn'];
+ }
+ if ($sr != 1) {
+ // field generator polynomial is not primitive!
+ return NULL;
+ }
+ // Form RS code generator polynomial from its roots
+ $rs['genpoly'] = array_fill(0, ($nroots + 1), 0);
+ $rs['fcr'] = $fcr;
+ $rs['prim'] = $prim;
+ $rs['nroots'] = $nroots;
+ $rs['gfpoly'] = $gfpoly;
+ // Find prim-th root of 1, used in decoding
+ for ($iprim=1; ($iprim % $prim) != 0; $iprim += $rs['nn']) {
+ ; // intentional empty-body loop!
+ }
+ $rs['iprim'] = (int)($iprim / $prim);
+ $rs['genpoly'][0] = 1;
+ for ($i = 0,$root=$fcr*$prim; $i < $nroots; $i++, $root += $prim) {
+ $rs['genpoly'][$i+1] = 1;
+ // Multiply rs->genpoly[] by @**(root + x)
+ for ($j = $i; $j > 0; --$j) {
+ if ($rs['genpoly'][$j] != 0) {
+ $rs['genpoly'][$j] = $rs['genpoly'][$j-1] ^ $rs['alpha_to'][$this->modnn($rs, $rs['index_of'][$rs['genpoly'][$j]] + $root)];
} else {
- array_push($parity, 0);
+ $rs['genpoly'][$j] = $rs['genpoly'][$j-1];
}
}
- return $parity;
+ // rs->genpoly[0] can never be zero
+ $rs['genpoly'][0] = $rs['alpha_to'][$this->modnn($rs, $rs['index_of'][$rs['genpoly'][0]] + $root)];
}
+ // convert rs->genpoly[] to index form for quicker encoding
+ for ($i = 0; $i <= $nroots; ++$i) {
+ $rs['genpoly'][$i] = $rs['index_of'][$rs['genpoly'][$i]];
+ }
+ return $rs;
+ }
- } // end QRcode class
+ /**
+ * Encode a Reed-Solomon codec and returns the parity array
+ * @param $rs (array) RS values
+ * @param $data (array) data
+ * @param $parity (array) parity
+ * @return parity array
+ */
+ protected function encode_rs_char($rs, $data, $parity) {
+ $MM =& $rs['mm']; // bits per symbol
+ $NN =& $rs['nn']; // the total number of symbols in a RS block
+ $ALPHA_TO =& $rs['alpha_to']; // the address of an array of NN elements to convert Galois field elements in index (log) form to polynomial form
+ $INDEX_OF =& $rs['index_of']; // the address of an array of NN elements to convert Galois field elements in polynomial form to index (log) form
+ $GENPOLY =& $rs['genpoly']; // an array of NROOTS+1 elements containing the generator polynomial in index form
+ $NROOTS =& $rs['nroots']; // the number of roots in the RS code generator polynomial, which is the same as the number of parity symbols in a block
+ $FCR =& $rs['fcr']; // first consecutive root, index form
+ $PRIM =& $rs['prim']; // primitive element, index form
+ $IPRIM =& $rs['iprim']; // prim-th root of 1, index form
+ $PAD =& $rs['pad']; // the number of pad symbols in a block
+ $A0 =& $NN;
+ $parity = array_fill(0, $NROOTS, 0);
+ for ($i=0; $i < ($NN - $NROOTS - $PAD); $i++) {
+ $feedback = $INDEX_OF[$data[$i] ^ $parity[0]];
+ if ($feedback != $A0) {
+ // feedback term is non-zero
+ // This line is unnecessary when GENPOLY[NROOTS] is unity, as it must
+ // always be for the polynomials constructed by init_rs()
+ $feedback = $this->modnn($rs, $NN - $GENPOLY[$NROOTS] + $feedback);
+ for ($j=1; $j < $NROOTS; ++$j) {
+ $parity[$j] ^= $ALPHA_TO[$this->modnn($rs, $feedback + $GENPOLY[($NROOTS - $j)])];
+ }
+ }
+ // Shift
+ array_shift($parity);
+ if ($feedback != $A0) {
+ array_push($parity, $ALPHA_TO[$this->modnn($rs, $feedback + $GENPOLY[0])]);
+ } else {
+ array_push($parity, 0);
+ }
+ }
+ return $parity;
+ }
+
+} // end QRcode class
-} // END OF "class_exists QRcode"
//============================================================+
// END OF FILE
//============================================================+
diff --git a/spotcolors.php b/spotcolors.php
index 231079d..27976ff 100644
--- a/spotcolors.php
+++ b/spotcolors.php
@@ -3,7 +3,7 @@
// File name : spotcolors.php
// Version : 1.0.000
// Begin : 2010-11-11
-// Last Update : 2010-11-25
+// 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
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@@ -34,10 +34,7 @@
/**
* Arrays of Spot Colors for TCPDF library
* @author Nicola Asuni
- * @copyright 2002-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @package com.tecnick.tcpdf
- * @link http://www.tcpdf.org
- * @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 5.9.012 (2010-11-11)
*/
diff --git a/tcpdf.php b/tcpdf.php
index 5c191cc..61251ec 100755
--- a/tcpdf.php
+++ b/tcpdf.php
@@ -1,9 +1,9 @@
* Tools to encode your unicode fonts are on fonts/utils directory.
* @package com.tecnick.tcpdf
- * @abstract Class for generating PDF files on-the-fly without requiring external extensions.
* @author Nicola Asuni
- * @copyright 2002-2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
- * @link http://www.tcpdf.org
- * @license http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3 + YOU CAN'T REMOVE ANY TCPDF COPYRIGHT NOTICE OR LINK FROM THE GENERATED PDF DOCUMENTS.
- * @version 5.9.029
+ * @version 5.9.030
*/
/**
@@ -147,616 +143,615 @@
require_once(dirname(__FILE__).'/config/tcpdf_config.php');
/**
-* This is a PHP class for generating PDF documents without requiring external extensions.
+* PHP class for generating PDF documents without requiring external extensions.
* 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.
* @name TCPDF
* @package com.tecnick.tcpdf
-* @version 5.9.029
+* @brief PHP class for generating PDF documents without requiring external extensions.
+* @version 5.9.030
* @author Nicola Asuni - info@tecnick.com
-* @link http://www.tcpdf.org
-* @license http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3 + YOU CAN'T REMOVE ANY TCPDF COPYRIGHT NOTICE OR LINK FROM THE GENERATED PDF DOCUMENTS.
*/
class TCPDF {
// private properties
/**
- * @var current TCPDF version
- * @access private
+ * Current TCPDF version.
+ * @private
*/
- private $tcpdf_version = '5.9.029';
+ private $tcpdf_version = '5.9.030';
// Protected properties
/**
- * @var current page number
- * @access protected
+ * Current page number.
+ * @protected
*/
protected $page;
/**
- * @var current object number
- * @access protected
+ * Current object number.
+ * @protected
*/
protected $n;
/**
- * @var array of object offsets
- * @access protected
+ * Array of object offsets.
+ * @protected
*/
protected $offsets;
/**
- * @var buffer holding in-memory PDF
- * @access protected
+ * Buffer holding in-memory PDF.
+ * @protected
*/
protected $buffer;
/**
- * @var array containing pages
- * @access protected
+ * Array containing pages.
+ * @protected
*/
protected $pages = array();
/**
- * @var current document state
- * @access protected
+ * Current document state.
+ * @protected
*/
protected $state;
/**
- * @var compression flag
- * @access protected
+ * Compression flag.
+ * @protected
*/
protected $compress;
/**
- * @var current page orientation (P = Portrait, L = Landscape)
- * @access protected
+ * Current page orientation (P = Portrait, L = Landscape).
+ * @protected
*/
protected $CurOrientation;
/**
- * @var Page dimensions
- * @access protected
+ * Page dimensions.
+ * @protected
*/
protected $pagedim = array();
/**
- * @var scale factor (number of points in user unit)
- * @access protected
+ * Scale factor (number of points in user unit).
+ * @protected
*/
protected $k;
/**
- * @var width of page format in points
- * @access protected
+ * Width of page format in points.
+ * @protected
*/
protected $fwPt;
/**
- * @var height of page format in points
- * @access protected
+ * Height of page format in points.
+ * @protected
*/
protected $fhPt;
/**
- * @var current width of page in points
- * @access protected
+ * Current width of page in points.
+ * @protected
*/
protected $wPt;
/**
- * @var current height of page in points
- * @access protected
+ * Current height of page in points.
+ * @protected
*/
protected $hPt;
/**
- * @var current width of page in user unit
- * @access protected
+ * Current width of page in user unit.
+ * @protected
*/
protected $w;
/**
- * @var current height of page in user unit
- * @access protected
+ * Current height of page in user unit.
+ * @protected
*/
protected $h;
/**
- * @var left margin
- * @access protected
+ * Left margin.
+ * @protected
*/
protected $lMargin;
/**
- * @var top margin
- * @access protected
+ * Top margin.
+ * @protected
*/
protected $tMargin;
/**
- * @var right margin
- * @access protected
+ * Right margin.
+ * @protected
*/
protected $rMargin;
/**
- * @var page break margin
- * @access protected
+ * Page break margin.
+ * @protected
*/
protected $bMargin;
/**
- * @var array of cell internal paddings ('T' => top, 'R' => right, 'B' => bottom, 'L' => left)
+ * Array of cell internal paddings ('T' => top, 'R' => right, 'B' => bottom, 'L' => left).
* @since 5.9.000 (2010-10-03)
- * @access protected
+ * @protected
*/
protected $cell_padding = array('T' => 0, 'R' => 0, 'B' => 0, 'L' => 0);
/**
- * @var array of cell margins ('T' => top, 'R' => right, 'B' => bottom, 'L' => left)
+ * Array of cell margins ('T' => top, 'R' => right, 'B' => bottom, 'L' => left).
* @since 5.9.000 (2010-10-04)
- * @access protected
+ * @protected
*/
protected $cell_margin = array('T' => 0, 'R' => 0, 'B' => 0, 'L' => 0);
/**
- * @var current horizontal position in user unit for cell positioning
- * @access protected
+ * Current horizontal position in user unit for cell positioning.
+ * @protected
*/
protected $x;
/**
- * @var current vertical position in user unit for cell positioning
- * @access protected
+ * Current vertical position in user unit for cell positioning.
+ * @protected
*/
protected $y;
/**
- * @var height of last cell printed
- * @access protected
+ * Height of last cell printed.
+ * @protected
*/
protected $lasth;
/**
- * @var line width in user unit
- * @access protected
+ * Line width in user unit.
+ * @protected
*/
protected $LineWidth;
/**
- * @var array of standard font names
- * @access protected
+ * Array of standard font names.
+ * @protected
*/
protected $CoreFonts;
/**
- * @var array of used fonts
- * @access protected
+ * Array of used fonts.
+ * @protected
*/
protected $fonts = array();
/**
- * @var array of font files
- * @access protected
+ * Array of font files.
+ * @protected
*/
protected $FontFiles = array();
/**
- * @var array of encoding differences
- * @access protected
+ * Array of encoding differences.
+ * @protected
*/
protected $diffs = array();
/**
- * @var array of used images
- * @access protected
+ * Array of used images.
+ * @protected
*/
protected $images = array();
/**
- * @var array of Annotations in pages
- * @access protected
+ * Array of Annotations in pages.
+ * @protected
*/
protected $PageAnnots = array();
/**
- * @var array of internal links
- * @access protected
+ * Array of internal links.
+ * @protected
*/
protected $links = array();
/**
- * @var current font family
- * @access protected
+ * Current font family.
+ * @protected
*/
protected $FontFamily;
/**
- * @var current font style
- * @access protected
+ * Current font style.
+ * @protected
*/
protected $FontStyle;
/**
- * @var current font ascent (distance between font top and baseline)
- * @access protected
+ * Current font ascent (distance between font top and baseline).
+ * @protected
* @since 2.8.000 (2007-03-29)
*/
protected $FontAscent;
/**
- * @var current font descent (distance between font bottom and baseline)
- * @access protected
+ * Current font descent (distance between font bottom and baseline).
+ * @protected
* @since 2.8.000 (2007-03-29)
*/
protected $FontDescent;
/**
- * @var underlining flag
- * @access protected
+ * Underlining flag.
+ * @protected
*/
protected $underline;
/**
- * @var overlining flag
- * @access protected
+ * Overlining flag.
+ * @protected
*/
protected $overline;
/**
- * @var current font info
- * @access protected
+ * Current font info.
+ * @protected
*/
protected $CurrentFont;
/**
- * @var current font size in points
- * @access protected
+ * Current font size in points.
+ * @protected
*/
protected $FontSizePt;
/**
- * @var current font size in user unit
- * @access protected
+ * Current font size in user unit.
+ * @protected
*/
protected $FontSize;
/**
- * @var commands for drawing color
- * @access protected
+ * Commands for drawing color.
+ * @protected
*/
protected $DrawColor;
/**
- * @var commands for filling color
- * @access protected
+ * Commands for filling color.
+ * @protected
*/
protected $FillColor;
/**
- * @var commands for text color
- * @access protected
+ * Commands for text color.
+ * @protected
*/
protected $TextColor;
/**
- * @var indicates whether fill and text colors are different
- * @access protected
+ * Indicates whether fill and text colors are different.
+ * @protected
*/
protected $ColorFlag;
/**
- * @var automatic page breaking
- * @access protected
+ * Automatic page breaking.
+ * @protected
*/
protected $AutoPageBreak;
/**
- * @var threshold used to trigger page breaks
- * @access protected
+ * Threshold used to trigger page breaks.
+ * @protected
*/
protected $PageBreakTrigger;
/**
- * @var flag set when processing footer
- * @access protected
+ * Flag set when processing footer.
+ * @protected
*/
protected $InFooter = false;
/**
- * @var zoom display mode
- * @access protected
+ * Zoom display mode.
+ * @protected
*/
protected $ZoomMode;
/**
- * @var layout display mode
- * @access protected
+ * Layout display mode.
+ * @protected
*/
protected $LayoutMode;
/**
- * @var if true set the document information dictionary in Unicode.
- * @access protected
+ * If true set the document information dictionary in Unicode.
+ * @protected
*/
protected $docinfounicode = true;
/**
- * @var title
- * @access protected
+ * Document title.
+ * @protected
*/
protected $title = '';
/**
- * @var subject
- * @access protected
+ * Document subject.
+ * @protected
*/
protected $subject = '';
/**
- * @var author
- * @access protected
+ * Document author.
+ * @protected
*/
protected $author = '';
/**
- * @var keywords
- * @access protected
+ * Document keywords.
+ * @protected
*/
protected $keywords = '';
/**
- * @var creator
- * @access protected
+ * Document creator.
+ * @protected
*/
protected $creator = '';
/**
- * @var alias for total number of pages
- * @access protected
+ * String alias for total number of pages.
+ * @protected
*/
protected $AliasNbPages = '{nb}';
/**
- * @var alias for page number
- * @access protected
+ * String alias for page number.
+ * @protected
*/
protected $AliasNumPage = '{pnb}';
/**
- * @var right-bottom corner X coordinate of inserted image
+ * The right-bottom (or left-bottom for RTL) corner X coordinate of last inserted image.
* @since 2002-07-31
* @author Nicola Asuni
- * @access protected
+ * @protected
*/
protected $img_rb_x;
/**
- * @var right-bottom corner Y coordinate of inserted image
+ * The right-bottom corner Y coordinate of last inserted image.
* @since 2002-07-31
* @author Nicola Asuni
- * @access protected
+ * @protected
*/
protected $img_rb_y;
/**
- * @var adjusting factor to convert pixels to user units.
+ * Adjusting factor to convert pixels to user units.
* @since 2004-06-14
* @author Nicola Asuni
- * @access protected
+ * @protected
*/
protected $imgscale = 1;
/**
- * @var boolean set to true when the input text is unicode (require unicode fonts)
+ * Boolean flag set to true when the input text is unicode (require unicode fonts).
* @since 2005-01-02
* @author Nicola Asuni
- * @access protected
+ * @protected
*/
protected $isunicode = false;
/**
- * @var object containing unicode data
+ * Object containing unicode data.
* @since 5.9.004 (2010-10-18)
* @author Nicola Asuni
- * @access protected
+ * @protected
*/
protected $unicode;
/**
- * @var PDF version
+ * PDF version.
* @since 1.5.3
- * @access protected
+ * @protected
*/
protected $PDFVersion = '1.7';
/**
- * @var Minimum distance between header and top page margin.
- * @access protected
+ * Minimum distance between header and top page margin.
+ * @protected
*/
protected $header_margin;
/**
- * @var Minimum distance between footer and bottom page margin.
- * @access protected
+ * Minimum distance between footer and bottom page margin.
+ * @protected
*/
protected $footer_margin;
/**
- * @var original left margin value
- * @access protected
+ * Original left margin value.
+ * @protected
* @since 1.53.0.TC013
*/
protected $original_lMargin;
/**
- * @var original right margin value
- * @access protected
+ * Original right margin value.
+ * @protected
* @since 1.53.0.TC013
*/
protected $original_rMargin;
/**
- * @var Header font.
- * @access protected
+ * Default font used on page header.
+ * @protected
*/
protected $header_font;
/**
- * @var Footer font.
- * @access protected
+ * Default font used on page footer.
+ * @protected
*/
protected $footer_font;
/**
- * @var Language templates.
- * @access protected
+ * Language templates.
+ * @protected
*/
protected $l;
/**
- * @var Barcode to print on page footer (only if set).
- * @access protected
+ * Barcode to print on page footer (only if set).
+ * @protected
*/
protected $barcode = false;
/**
- * @var If true prints header
- * @access protected
+ * Boolean flag to print/hide page header.
+ * @protected
*/
protected $print_header = true;
/**
- * @var If true prints footer.
- * @access protected
+ * Boolean flag to print/hide page footer.
+ * @protected
*/
protected $print_footer = true;
/**
- * @var Header image logo.
- * @access protected
+ * Header image logo.
+ * @protected
*/
protected $header_logo = '';
/**
- * @var Header image logo width in mm.
- * @access protected
+ * Width of header image logo in user units.
+ * @protected
*/
protected $header_logo_width = 30;
/**
- * @var String to print as title on document header.
- * @access protected
+ * Title to be printed on default page header.
+ * @protected
*/
protected $header_title = '';
/**
- * @var String to print on document header.
- * @access protected
+ * String to pring on page header after title.
+ * @protected
*/
protected $header_string = '';
/**
- * @var Default number of columns for html table.
- * @access protected
+ * Default number of columns for html table.
+ * @protected
*/
protected $default_table_columns = 4;
// variables for html parser
/**
- * @var HTML PARSER: array to store current link and rendering styles.
- * @access protected
+ * HTML PARSER: array to store current link and rendering styles.
+ * @protected
*/
protected $HREF = array();
/**
- * @var store a list of available fonts on filesystem.
- * @access protected
+ * List of available fonts on filesystem.
+ * @protected
*/
protected $fontlist = array();
/**
- * @var current foreground color
- * @access protected
+ * Current foreground color.
+ * @protected
*/
protected $fgcolor;
/**
- * @var HTML PARSER: array of boolean values, true in case of ordered list (OL), false otherwise.
- * @access protected
+ * HTML PARSER: array of boolean values, true in case of ordered list (OL), false otherwise.
+ * @protected
*/
protected $listordered = array();
/**
- * @var HTML PARSER: array count list items on nested lists.
- * @access protected
+ * HTML PARSER: array count list items on nested lists.
+ * @protected
*/
protected $listcount = array();
/**
- * @var HTML PARSER: current list nesting level.
- * @access protected
+ * HTML PARSER: current list nesting level.
+ * @protected
*/
protected $listnum = 0;
/**
- * @var HTML PARSER: indent amount for lists.
- * @access protected
+ * HTML PARSER: indent amount for lists.
+ * @protected
*/
protected $listindent = 0;
/**
- * @var HTML PARSER: current list indententation level.
- * @access protected
+ * HTML PARSER: current list indententation level.
+ * @protected
*/
protected $listindentlevel = 0;
/**
- * @var current background color
- * @access protected
+ * Current background color.
+ * @protected
*/
protected $bgcolor;
/**
- * @var Store temporary font size in points.
- * @access protected
+ * Temporary font size in points.
+ * @protected
*/
protected $tempfontsize = 10;
/**
- * @var spacer for LI tags.
- * @access protected
+ * Spacer string for LI tags.
+ * @protected
*/
protected $lispacer = '';
/**
- * @var default encoding
- * @access protected
+ * Default encoding.
+ * @protected
* @since 1.53.0.TC010
*/
protected $encoding = 'UTF-8';
/**
- * @var PHP internal encoding
- * @access protected
+ * PHP internal encoding.
+ * @protected
* @since 1.53.0.TC016
*/
protected $internal_encoding;
/**
- * @var indicates if the document language is Right-To-Left
- * @access protected
+ * Boolean flag to indicate if the document language is Right-To-Left.
+ * @protected
* @since 2.0.000
*/
protected $rtl = false;
/**
- * @var used to force RTL or LTR string inversion
- * @access protected
+ * Boolean flag used to force RTL or LTR string direction.
+ * @protected
* @since 2.0.000
*/
protected $tmprtl = false;
@@ -764,42 +759,42 @@ class TCPDF {
// --- Variables used for document encryption:
/**
- * Indicates whether document is protected
- * @access protected
+ * IBoolean flag indicating whether document is protected.
+ * @protected
* @since 2.0.000 (2008-01-02)
*/
protected $encrypted;
/**
- * Array containing encryption settings
- * @access protected
+ * Array containing encryption settings.
+ * @protected
* @since 5.0.005 (2010-05-11)
*/
protected $encryptdata = array();
/**
- * last RC4 key encrypted (cached for optimisation)
- * @access protected
+ * Last RC4 key encrypted (cached for optimisation).
+ * @protected
* @since 2.0.000 (2008-01-02)
*/
protected $last_enc_key;
/**
- * last RC4 computed key
- * @access protected
+ * Last RC4 computed key.
+ * @protected
* @since 2.0.000 (2008-01-02)
*/
protected $last_enc_key_c;
/**
- * Encryption padding
- * @access protected
+ * Encryption padding string.
+ * @protected
*/
protected $enc_padding = "\x28\xBF\x4E\x5E\x4E\x75\x8A\x41\x64\x00\x4E\x56\xFF\xFA\x01\x08\x2E\x2E\x00\xB6\xD0\x68\x3E\x80\x2F\x0C\xA9\xFE\x64\x53\x69\x7A";
/**
- * File ID (used on trailer)
- * @access protected
+ * File ID (used on document trailer).
+ * @protected
* @since 5.0.005 (2010-05-12)
*/
protected $file_id;
@@ -807,15 +802,15 @@ class TCPDF {
// --- bookmark ---
/**
- * Outlines for bookmark
- * @access protected
+ * Outlines for bookmark.
+ * @protected
* @since 2.1.002 (2008-02-12)
*/
protected $outlines = array();
/**
- * Outline root for bookmark
- * @access protected
+ * Outline root for bookmark.
+ * @protected
* @since 2.1.002 (2008-02-12)
*/
protected $OutlineRoot;
@@ -823,307 +818,302 @@ class TCPDF {
// --- javascript and form ---
/**
- * javascript code
- * @access protected
+ * Javascript code.
+ * @protected
* @since 2.1.002 (2008-02-12)
*/
protected $javascript = '';
/**
- * javascript counter
- * @access protected
+ * Javascript counter.
+ * @protected
* @since 2.1.002 (2008-02-12)
*/
protected $n_js;
/**
* line trough state
- * @access protected
+ * @protected
* @since 2.8.000 (2008-03-19)
*/
protected $linethrough;
/**
* Array with additional document-wide usage rights for the document.
- * @access protected
+ * @protected
* @since 5.8.014 (2010-08-23)
*/
protected $ur = array();
/**
- * Dot Per Inch Document Resolution (do not change)
- * @access protected
+ * DPI (Dot Per Inch) Document Resolution (do not change).
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected $dpi = 72;
/**
- * Array of page numbers were a new page group was started
- * @access protected
+ * Array of page numbers were a new page group was started.
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected $newpagegroup = array();
/**
- * Contains the number of pages of the groups
- * @access protected
+ * Contains the number of pages of the groups.
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected $pagegroups;
/**
- * Contains the alias of the current page group
- * @access protected
+ * Contains the alias of the current page group.
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected $currpagegroup;
/**
* Restrict the rendering of some elements to screen or printout.
- * @access protected
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected $visibility = 'all';
/**
* Print visibility.
- * @access protected
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected $n_ocg_print;
/**
* View visibility.
- * @access protected
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected $n_ocg_view;
/**
* Array of transparency objects and parameters.
- * @access protected
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected $extgstates;
/**
- * Set the default JPEG compression quality (1-100)
- * @access protected
+ * Set the default JPEG compression quality (1-100).
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected $jpeg_quality;
/**
* Default cell height ratio.
- * @access protected
+ * @protected
* @since 3.0.014 (2008-05-23)
*/
protected $cell_height_ratio = K_CELL_HEIGHT_RATIO;
/**
* PDF viewer preferences.
- * @access protected
+ * @protected
* @since 3.1.000 (2008-06-09)
*/
protected $viewer_preferences;
/**
* A name object specifying how the document should be displayed when opened.
- * @access protected
+ * @protected
* @since 3.1.000 (2008-06-09)
*/
protected $PageMode;
/**
* Array for storing gradient information.
- * @access protected
+ * @protected
* @since 3.1.000 (2008-06-09)
*/
protected $gradients = array();
/**
- * Array used to store positions inside the pages buffer.
- * keys are the page numbers
- * @access protected
+ * Array used to store positions inside the pages buffer (keys are the page numbers).
+ * @protected
* @since 3.2.000 (2008-06-26)
*/
protected $intmrk = array();
/**
- * Array used to store positions inside the pages buffer.
- * keys are the page numbers
- * @access protected
+ * Array used to store positions inside the pages buffer (keys are the page numbers).
+ * @protected
* @since 5.7.000 (2010-08-03)
*/
protected $bordermrk = array();
/**
- * Array used to store page positions to track empty pages.
- * keys are the page numbers
- * @access protected
+ * Array used to store page positions to track empty pages (keys are the page numbers).
+ * @protected
* @since 5.8.007 (2010-08-18)
*/
protected $emptypagemrk = array();
/**
- * Array used to store content positions inside the pages buffer.
- * keys are the page numbers
- * @access protected
+ * Array used to store content positions inside the pages buffer (keys are the page numbers).
+ * @protected
* @since 4.6.021 (2009-07-20)
*/
protected $cntmrk = array();
/**
* Array used to store footer positions of each page.
- * @access protected
+ * @protected
* @since 3.2.000 (2008-07-01)
*/
protected $footerpos = array();
/**
* Array used to store footer length of each page.
- * @access protected
+ * @protected
* @since 4.0.014 (2008-07-29)
*/
protected $footerlen = array();
/**
- * True if a newline is created.
- * @access protected
+ * Boolean flag to indicate if a new line is created.
+ * @protected
* @since 3.2.000 (2008-07-01)
*/
protected $newline = true;
/**
- * End position of the latest inserted line
- * @access protected
+ * End position of the latest inserted line.
+ * @protected
* @since 3.2.000 (2008-07-01)
*/
protected $endlinex = 0;
/**
- * PDF string for last line width
- * @access protected
+ * PDF string for width value of the last line.
+ * @protected
* @since 4.0.006 (2008-07-16)
*/
protected $linestyleWidth = '';
/**
- * PDF string for last line width
- * @access protected
+ * PDF string for CAP value of the last line.
+ * @protected
* @since 4.0.006 (2008-07-16)
*/
protected $linestyleCap = '0 J';
/**
- * PDF string for last line width
- * @access protected
+ * PDF string for join value of the last line.
+ * @protected
* @since 4.0.006 (2008-07-16)
*/
protected $linestyleJoin = '0 j';
/**
- * PDF string for last line width
- * @access protected
+ * PDF string for dash value of the last line.
+ * @protected
* @since 4.0.006 (2008-07-16)
*/
protected $linestyleDash = '[] 0 d';
/**
- * True if marked-content sequence is open
- * @access protected
+ * Boolean flag to indicate if marked-content sequence is open.
+ * @protected
* @since 4.0.013 (2008-07-28)
*/
protected $openMarkedContent = false;
/**
- * Count the latest inserted vertical spaces on HTML
- * @access protected
+ * Count the latest inserted vertical spaces on HTML.
+ * @protected
* @since 4.0.021 (2008-08-24)
*/
protected $htmlvspace = 0;
/**
- * Array of Spot colors
- * @access protected
+ * Array of Spot colors.
+ * @protected
* @since 4.0.024 (2008-09-12)
*/
protected $spot_colors = array();
/**
- * Symbol used for HTML unordered list items
- * @access protected
+ * Symbol used for HTML unordered list items.
+ * @protected
* @since 4.0.028 (2008-09-26)
*/
protected $lisymbol = '';
/**
- * String used to mark the beginning and end of EPS image blocks
- * @access protected
+ * String used to mark the beginning and end of EPS image blocks.
+ * @protected
* @since 4.1.000 (2008-10-18)
*/
protected $epsmarker = 'x#!#EPS#!#x';
/**
- * Array of transformation matrix
- * @access protected
+ * Array of transformation matrix.
+ * @protected
* @since 4.2.000 (2008-10-29)
*/
protected $transfmatrix = array();
/**
- * Current key for transformation matrix
- * @access protected
+ * Current key for transformation matrix.
+ * @protected
* @since 4.8.005 (2009-09-17)
*/
protected $transfmatrix_key = 0;
/**
- * Booklet mode for double-sided pages
- * @access protected
+ * Booklet mode for double-sided pages.
+ * @protected
* @since 4.2.000 (2008-10-29)
*/
protected $booklet = false;
/**
- * Epsilon value used for float calculations
- * @access protected
+ * Epsilon value used for float calculations.
+ * @protected
* @since 4.2.000 (2008-10-29)
*/
protected $feps = 0.005;
/**
- * Array used for custom vertical spaces for HTML tags
- * @access protected
+ * Array used for custom vertical spaces for HTML tags.
+ * @protected
* @since 4.2.001 (2008-10-30)
*/
protected $tagvspaces = array();
/**
- * @var HTML PARSER: custom indent amount for lists.
- * Negative value means disabled.
- * @access protected
+ * HTML PARSER: custom indent amount for lists. Negative value means disabled.
+ * @protected
* @since 4.2.007 (2008-11-12)
*/
protected $customlistindent = -1;
/**
- * @var if true keeps the border open for the cell sides that cross the page.
- * @access protected
+ * Boolean flag to indicate if the border of the cell sides that cross the page should be removed.
+ * @protected
* @since 4.2.010 (2008-11-14)
*/
protected $opencell = true;
/**
- * @var array of files to embedd
- * @access protected
+ * Array of files to embedd.
+ * @protected
* @since 4.4.000 (2008-12-07)
*/
protected $embeddedfiles = array();
/**
- * @var boolean true when inside html pre tag
- * @access protected
+ * Boolean flag to indicate if we are inside a PRE tag.
+ * @protected
* @since 4.4.001 (2008-12-08)
*/
protected $premode = false;
@@ -1131,560 +1121,560 @@ class TCPDF {
/**
* Array used to store positions of graphics transformation blocks inside the page buffer.
* keys are the page numbers
- * @access protected
+ * @protected
* @since 4.4.002 (2008-12-09)
*/
protected $transfmrk = array();
/**
- * Default color for html links
- * @access protected
+ * Default color for html links.
+ * @protected
* @since 4.4.003 (2008-12-09)
*/
protected $htmlLinkColorArray = array(0, 0, 255);
/**
- * Default font style to add to html links
- * @access protected
+ * Default font style to add to html links.
+ * @protected
* @since 4.4.003 (2008-12-09)
*/
protected $htmlLinkFontStyle = 'U';
/**
* Counts the number of pages.
- * @access protected
+ * @protected
* @since 4.5.000 (2008-12-31)
*/
protected $numpages = 0;
/**
* Array containing page lengths in bytes.
- * @access protected
+ * @protected
* @since 4.5.000 (2008-12-31)
*/
protected $pagelen = array();
/**
* Counts the number of pages.
- * @access protected
+ * @protected
* @since 4.5.000 (2008-12-31)
*/
protected $numimages = 0;
/**
* Store the image keys.
- * @access protected
+ * @protected
* @since 4.5.000 (2008-12-31)
*/
protected $imagekeys = array();
/**
* Length of the buffer in bytes.
- * @access protected
+ * @protected
* @since 4.5.000 (2008-12-31)
*/
protected $bufferlen = 0;
/**
* If true enables disk caching.
- * @access protected
+ * @protected
* @since 4.5.000 (2008-12-31)
*/
protected $diskcache = false;
/**
* Counts the number of fonts.
- * @access protected
+ * @protected
* @since 4.5.000 (2009-01-02)
*/
protected $numfonts = 0;
/**
* Store the font keys.
- * @access protected
+ * @protected
* @since 4.5.000 (2009-01-02)
*/
protected $fontkeys = array();
/**
* Store the font object IDs.
- * @access protected
+ * @protected
* @since 4.8.001 (2009-09-09)
*/
protected $font_obj_ids = array();
/**
* Store the fage status (true when opened, false when closed).
- * @access protected
+ * @protected
* @since 4.5.000 (2009-01-02)
*/
protected $pageopen = array();
/**
- * Default monospaced font
- * @access protected
+ * Default monospace font.
+ * @protected
* @since 4.5.025 (2009-03-10)
*/
protected $default_monospaced_font = 'courier';
/**
- * Used to store a cloned copy of the current class object
- * @access protected
+ * Cloned copy of the current class object.
+ * @protected
* @since 4.5.029 (2009-03-19)
*/
protected $objcopy;
/**
- * Array used to store the lengths of cache files
- * @access protected
+ * Array used to store the lengths of cache files.
+ * @protected
* @since 4.5.029 (2009-03-19)
*/
protected $cache_file_length = array();
/**
- * Table header content to be repeated on each new page
- * @access protected
+ * Table header content to be repeated on each new page.
+ * @protected
* @since 4.5.030 (2009-03-20)
*/
protected $thead = '';
/**
* Margins used for table header.
- * @access protected
+ * @protected
* @since 4.5.030 (2009-03-20)
*/
protected $theadMargins = array();
/**
* Cache array for UTF8StringToArray() method.
- * @access protected
+ * @protected
* @since 4.5.037 (2009-04-07)
*/
protected $cache_UTF8StringToArray = array();
/**
* Maximum size of cache array used for UTF8StringToArray() method.
- * @access protected
+ * @protected
* @since 4.5.037 (2009-04-07)
*/
protected $cache_maxsize_UTF8StringToArray = 8;
/**
* Current size of cache array used for UTF8StringToArray() method.
- * @access protected
+ * @protected
* @since 4.5.037 (2009-04-07)
*/
protected $cache_size_UTF8StringToArray = 0;
/**
- * If true enables document signing
- * @access protected
+ * Boolean flag to enable document digital signature.
+ * @protected
* @since 4.6.005 (2009-04-24)
*/
protected $sign = false;
/**
- * Signature data
- * @access protected
+ * Digital signature data.
+ * @protected
* @since 4.6.005 (2009-04-24)
*/
protected $signature_data = array();
/**
- * Signature max length
- * @access protected
+ * Digital signature max length.
+ * @protected
* @since 4.6.005 (2009-04-24)
*/
protected $signature_max_length = 11742;
/**
- * data for signature appearance
- * @access protected
+ * Data for digital signature appearance.
+ * @protected
* @since 5.3.011 (2010-06-16)
*/
protected $signature_appearance = array('page' => 1, 'rect' => '0 0 0 0');
/**
- * Regular expression used to find blank characters used for word-wrapping.
- * @access protected
+ * Regular expression used to find blank characters (required for word-wrapping).
+ * @protected
* @since 4.6.006 (2009-04-28)
*/
protected $re_spaces = '/[^\S\xa0]/';
/**
- * Array of parts $re_spaces
- * @access protected
+ * Array of $re_spaces parts.
+ * @protected
* @since 5.5.011 (2010-07-09)
*/
protected $re_space = array('p' => '[^\S\xa0]', 'm' => '');
/**
- * Signature object ID
- * @access protected
+ * Digital signature object ID.
+ * @protected
* @since 4.6.022 (2009-06-23)
*/
protected $sig_obj_id = 0;
/**
- * ByteRange placemark used during signature process.
- * @access protected
+ * ByteRange placemark used during digital signature process.
+ * @protected
* @since 4.6.028 (2009-08-25)
*/
protected $byterange_string = '/ByteRange[0 ********** ********** **********]';
/**
- * Placemark used during signature process.
- * @access protected
+ * Placemark used during digital signature process.
+ * @protected
* @since 4.6.028 (2009-08-25)
*/
protected $sig_annot_ref = '***SIGANNREF*** 0 R';
/**
- * ID of page objects
- * @access protected
+ * ID of page objects.
+ * @protected
* @since 4.7.000 (2009-08-29)
*/
protected $page_obj_id = array();
/**
- * List of form annotations IDs
- * @access protected
+ * List of form annotations IDs.
+ * @protected
* @since 4.8.000 (2009-09-07)
*/
protected $form_obj_id = array();
/**
* Deafult Javascript field properties. Possible values are described on official Javascript for Acrobat API reference. Annotation options can be directly specified using the 'aopt' entry.
- * @access protected
+ * @protected
* @since 4.8.000 (2009-09-07)
*/
protected $default_form_prop = array('lineWidth'=>1, 'borderStyle'=>'solid', 'fillColor'=>array(255, 255, 255), 'strokeColor'=>array(128, 128, 128));
/**
- * Javascript objects array
- * @access protected
+ * Javascript objects array.
+ * @protected
* @since 4.8.000 (2009-09-07)
*/
protected $js_objects = array();
/**
- * Current form action (used during XHTML rendering)
- * @access protected
+ * Current form action (used during XHTML rendering).
+ * @protected
* @since 4.8.000 (2009-09-07)
*/
protected $form_action = '';
/**
- * Current form encryption type (used during XHTML rendering)
- * @access protected
+ * Current form encryption type (used during XHTML rendering).
+ * @protected
* @since 4.8.000 (2009-09-07)
*/
protected $form_enctype = 'application/x-www-form-urlencoded';
/**
* Current method to submit forms.
- * @access protected
+ * @protected
* @since 4.8.000 (2009-09-07)
*/
protected $form_mode = 'post';
/**
* List of fonts used on form fields (fontname => fontkey).
- * @access protected
+ * @protected
* @since 4.8.001 (2009-09-09)
*/
protected $annotation_fonts = array();
/**
* List of radio buttons parent objects.
- * @access protected
+ * @protected
* @since 4.8.001 (2009-09-09)
*/
protected $radiobutton_groups = array();
/**
- * List of radio group objects IDs
- * @access protected
+ * List of radio group objects IDs.
+ * @protected
* @since 4.8.001 (2009-09-09)
*/
protected $radio_groups = array();
/**
- * Text indentation value (used for text-indent CSS attribute)
- * @access protected
+ * Text indentation value (used for text-indent CSS attribute).
+ * @protected
* @since 4.8.006 (2009-09-23)
*/
protected $textindent = 0;
/**
* Store page number when startTransaction() is called.
- * @access protected
+ * @protected
* @since 4.8.006 (2009-09-23)
*/
protected $start_transaction_page = 0;
/**
* Store Y position when startTransaction() is called.
- * @access protected
+ * @protected
* @since 4.9.001 (2010-03-28)
*/
protected $start_transaction_y = 0;
/**
- * True when we are printing the thead section on a new page
- * @access protected
+ * True when we are printing the thead section on a new page.
+ * @protected
* @since 4.8.027 (2010-01-25)
*/
protected $inthead = false;
/**
- * Array of column measures (width, space, starting Y position)
- * @access protected
+ * Array of column measures (width, space, starting Y position).
+ * @protected
* @since 4.9.001 (2010-03-28)
*/
protected $columns = array();
/**
- * Number of colums
- * @access protected
+ * Number of colums.
+ * @protected
* @since 4.9.001 (2010-03-28)
*/
protected $num_columns = 1;
/**
- * Current column number
- * @access protected
+ * Current column number.
+ * @protected
* @since 4.9.001 (2010-03-28)
*/
protected $current_column = 0;
/**
- * Starting page for columns
- * @access protected
+ * Starting page for columns.
+ * @protected
* @since 4.9.001 (2010-03-28)
*/
protected $column_start_page = 0;
/**
- * Maximum page and column selected
- * @access protected
+ * Maximum page and column selected.
+ * @protected
* @since 5.8.000 (2010-08-11)
*/
protected $maxselcol = array('page' => 0, 'column' => 0);
/**
- * Array of: X difference between table cell x start and starting page margin, cellspacing, cellpadding
- * @access protected
+ * Array of: X difference between table cell x start and starting page margin, cellspacing, cellpadding.
+ * @protected
* @since 5.8.000 (2010-08-11)
*/
protected $colxshift = array('x' => 0, 's' => array('H' => 0, 'V' => 0), 'p' => array('L' => 0, 'T' => 0, 'R' => 0, 'B' => 0));
/**
* Text rendering mode: 0 = Fill text; 1 = Stroke text; 2 = Fill, then stroke text; 3 = Neither fill nor stroke text (invisible); 4 = Fill text and add to path for clipping; 5 = Stroke text and add to path for clipping; 6 = Fill, then stroke text and add to path for clipping; 7 = Add text to path for clipping.
- * @access protected
+ * @protected
* @since 4.9.008 (2010-04-03)
*/
protected $textrendermode = 0;
/**
- * Text stroke width in doc units
- * @access protected
+ * Text stroke width in doc units.
+ * @protected
* @since 4.9.008 (2010-04-03)
*/
protected $textstrokewidth = 0;
/**
- * @var current stroke color
- * @access protected
+ * Current stroke color.
+ * @protected
* @since 4.9.008 (2010-04-03)
*/
protected $strokecolor;
/**
- * @var default unit of measure for document
- * @access protected
+ * Default unit of measure for document.
+ * @protected
* @since 5.0.000 (2010-04-22)
*/
protected $pdfunit = 'mm';
/**
- * @var true when we are on TOC (Table Of Content) page
- * @access protected
+ * Boolean flag true when we are on TOC (Table Of Content) page.
+ * @protected
*/
protected $tocpage = false;
/**
- * @var If true convert vector images (SVG, EPS) to raster image using GD or ImageMagick library.
- * @access protected
+ * Boolean flag: if true convert vector images (SVG, EPS) to raster image using GD or ImageMagick library.
+ * @protected
* @since 5.0.000 (2010-04-26)
*/
protected $rasterize_vector_images = false;
/**
- * @var If true enables font subsetting by default
- * @access protected
+ * Boolean flag: if true enables font subsetting by default.
+ * @protected
* @since 5.3.002 (2010-06-07)
*/
protected $font_subsetting = true;
/**
- * @var Array of default graphic settings
- * @access protected
+ * Array of default graphic settings.
+ * @protected
* @since 5.5.008 (2010-07-02)
*/
protected $default_graphic_vars = array();
/**
- * @var Array of XObjects
- * @access protected
+ * Array of XObjects.
+ * @protected
* @since 5.8.014 (2010-08-23)
*/
protected $xobjects = array();
/**
- * @var boolean true when we are inside an XObject
- * @access protected
+ * Boolean value true when we are inside an XObject.
+ * @protected
* @since 5.8.017 (2010-08-24)
*/
protected $inxobj = false;
/**
- * @var current XObject ID
- * @access protected
+ * Current XObject ID.
+ * @protected
* @since 5.8.017 (2010-08-24)
*/
protected $xobjid = '';
/**
- * @var percentage of character stretching
- * @access protected
+ * Percentage of character stretching.
+ * @protected
* @since 5.9.000 (2010-09-29)
*/
protected $font_stretching = 100;
/**
- * @var increases or decreases the space between characters in a text by the specified amount (tracking/kerning).
- * @access protected
+ * Increases or decreases the space between characters in a text by the specified amount (tracking/kerning).
+ * @protected
* @since 5.9.000 (2010-09-29)
*/
protected $font_spacing = 0;
/**
- * @var array of no-write regions
+ * Array of no-write regions.
* ('page' => page number or empy for current page, 'xt' => X top, 'yt' => Y top, 'xb' => X bottom, 'yb' => Y bottom, 'side' => page side 'L' = left or 'R' = right)
- * @access protected
+ * @protected
* @since 5.9.003 (2010-10-14)
*/
protected $page_regions = array();
/**
- * @var array containing HTML color names and values
- * @access protected
+ * Array containing HTML color names and values.
+ * @protected
* @since 5.9.004 (2010-10-18)
*/
protected $webcolor = array();
/**
- * @var array containing spot color names and values
- * @access protected
+ * Array containing spot color names and values.
+ * @protected
* @since 5.9.012 (2010-11-11)
*/
protected $spotcolor = array();
/**
- * @var directory used for the last SVG image
- * @access protected
+ * Directory used for the last SVG image.
+ * @protected
* @since 5.0.000 (2010-05-05)
*/
protected $svgdir = '';
/**
- * @var Deafult unit of measure for SVG
- * @access protected
+ * Deafult unit of measure for SVG.
+ * @protected
* @since 5.0.000 (2010-05-02)
*/
protected $svgunit = 'px';
/**
- * @var array of SVG gradients
- * @access protected
+ * Array of SVG gradients.
+ * @protected
* @since 5.0.000 (2010-05-02)
*/
protected $svggradients = array();
/**
- * @var ID of last SVG gradient
- * @access protected
+ * ID of last SVG gradient.
+ * @protected
* @since 5.0.000 (2010-05-02)
*/
protected $svggradientid = 0;
/**
- * @var true when in SVG defs group
- * @access protected
+ * Boolean value true when in SVG defs group.
+ * @protected
* @since 5.0.000 (2010-05-02)
*/
protected $svgdefsmode = false;
/**
- * @var array of SVG defs
- * @access protected
+ * Array of SVG defs.
+ * @protected
* @since 5.0.000 (2010-05-02)
*/
protected $svgdefs = array();
/**
- * @var true when in SVG clipPath tag
- * @access protected
+ * Boolean value true when in SVG clipPath tag.
+ * @protected
* @since 5.0.000 (2010-04-26)
*/
protected $svgclipmode = false;
/**
- * @var array of SVG clipPath commands
- * @access protected
+ * Array of SVG clipPath commands.
+ * @protected
* @since 5.0.000 (2010-05-02)
*/
protected $svgclippaths = array();
/**
- * @var array of SVG clipPath tranformation matrix
- * @access protected
+ * Array of SVG clipPath tranformation matrix.
+ * @protected
* @since 5.8.022 (2010-08-31)
*/
protected $svgcliptm = array();
/**
- * @var ID of last SVG clipPath
- * @access protected
+ * ID of last SVG clipPath.
+ * @protected
* @since 5.0.000 (2010-05-02)
*/
protected $svgclipid = 0;
/**
- * @var svg text
- * @access protected
+ * SVG text.
+ * @protected
* @since 5.0.000 (2010-05-02)
*/
protected $svgtext = '';
/**
- * @var svg text properties
- * @access protected
+ * SVG text properties.
+ * @protected
* @since 5.8.013 (2010-08-23)
*/
protected $svgtextmode = array();
/**
- * @var array of hinheritable SVG properties
- * @access protected
+ * Array of hinheritable SVG properties.
+ * @protected
* @since 5.0.000 (2010-05-02)
*/
protected $svginheritprop = array('clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cursor', 'direction', 'fill', 'fill-opacity', 'fill-rule', 'font', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'image-rendering', 'kerning', 'letter-spacing', 'marker', 'marker-end', 'marker-mid', 'marker-start', 'pointer-events', 'shape-rendering', 'stroke', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-rendering', 'visibility', 'word-spacing', 'writing-mode');
/**
- * @var array of SVG properties
- * @access protected
+ * Array of SVG properties.
+ * @protected
* @since 5.0.000 (2010-05-02)
*/
protected $svgstyles = array(array(
@@ -1760,13 +1750,13 @@ class TCPDF {
/**
* This is the class constructor.
* It allows to set up the page format, the orientation and the measure unit used in all the methods (except for the font sizes).
- * @param string $orientation page orientation. Possible values are (case insensitive):
P or Portrait (default)
L or Landscape
'' (empty string) for automatic orientation
- * @param string $unit User measure unit. Possible values are:
pt: point
mm: millimeter (default)
cm: centimeter
in: inch
A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit.
- * @param mixed $format The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
- * @param boolean $unicode TRUE means that the input text is unicode (default = true)
- * @param boolean $diskcache if TRUE reduce the RAM memory usage by caching temporary data on filesystem (slower).
- * @param String $encoding charset encoding; default is UTF-8
- * @access public
+ * @param $orientation (string) page orientation. Possible values are (case insensitive):
P or Portrait (default)
L or Landscape
'' (empty string) for automatic orientation
+ * @param $unit (string) User measure unit. Possible values are:
pt: point
mm: millimeter (default)
cm: centimeter
in: inch
A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit.
+ * @param $format (mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
+ * @param $unicode (boolean) TRUE means that the input text is unicode (default = true)
+ * @param $diskcache (boolean) if TRUE reduce the RAM memory usage by caching temporary data on filesystem (slower).
+ * @param $encoding (string) charset encoding; default is UTF-8
+ * @public
* @see getPageSizeFromFormat(), setPageFormat()
*/
public function __construct($orientation='P', $unit='mm', $format='A4', $unicode=true, $encoding='UTF-8', $diskcache=false) {
@@ -1914,7 +1904,7 @@ class TCPDF {
/**
* Default destructor.
- * @access public
+ * @public
* @since 1.53.0.TC016
*/
public function __destruct() {
@@ -1929,7 +1919,7 @@ class TCPDF {
/**
* Return the current TCPDF version.
* @return TCPDF version string
- * @access public
+ * @public
* @since 5.9.012 (2010-11-10)
*/
public function getTCPDFVersion() {
@@ -1938,8 +1928,8 @@ class TCPDF {
/**
* Set the units of measure for the document.
- * @param string $unit User measure unit. Possible values are:
pt: point
mm: millimeter (default)
cm: centimeter
in: inch
A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit.
- * @access public
+ * @param $unit (string) User measure unit. Possible values are:
pt: point
mm: millimeter (default)
cm: centimeter
in: inch
A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit.
+ * @public
* @since 3.0.015 (2008-06-06)
*/
public function setPageUnit($unit) {
@@ -1981,7 +1971,7 @@ class TCPDF {
/**
* Get page dimensions from format name.
- * @param mixed $format The format name. It can be:
+ * @param $format (mixed) The format name. It can be:
*
ISO 216 A Series + 2 SIS 014711 extensions
*
A0 (841x1189 mm ; 33.11x46.81 in)
*
A1 (594x841 mm ; 23.39x33.11 in)
@@ -2290,7 +2280,7 @@ class TCPDF {
*
FR_POT (310x400 mm ; 12.20x15.75 in)
*
* @return array containing page width and height in points
- * @access public
+ * @public
* @since 5.0.010 (2010-05-17)
*/
public function getPageSizeFromFormat($format) {
@@ -2649,7 +2639,7 @@ class TCPDF {
/**
* Change the format of the current page
- * @param mixed $format The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() documentation or an array of two numners (width, height) or an array containing the following measures and options:
+ * @param $format (mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() documentation or an array of two numners (width, height) or an array containing the following measures and options:
*
['format'] = page format name (one of the above);
*
['Rotate'] : The number of degrees by which the page shall be rotated clockwise when displayed or printed. The value shall be a multiple of 90.
*
['PZ'] : The page's preferred zoom (magnification) factor.
@@ -2693,12 +2683,12 @@ class TCPDF {
*
['trans']['SS'] : (Fly transition style only) The starting or ending scale at which the changes shall be drawn. If M specifies an inward transition, the scale of the changes drawn shall progress from SS to 1.0 over the course of the transition. If M specifies an outward transition, the scale of the changes drawn shall progress from 1.0 to SS over the course of the transition. Default: 1.0.
*
['trans']['B'] : (Fly transition style only) If true, the area that shall be flown in is rectangular and opaque. Default: false.
*
- * @param string $orientation page orientation. Possible values are (case insensitive):
+ * @param $orientation (string) page orientation. Possible values are (case insensitive):
'MediaBox' : the boundaries of the physical medium on which the page shall be displayed or printed;
'CropBox' : the visible region of default user space;
'BleedBox' : the region to which the contents of the page shall be clipped when output in a production environment;
'TrimBox' : the intended dimensions of the finished page after trimming;
'ArtBox' : the page's meaningful content (including potential white space).
- * @param float $llx lower-left x coordinate in user units
- * @param float $lly lower-left y coordinate in user units
- * @param float $urx upper-right x coordinate in user units
- * @param float $ury upper-right y coordinate in user units
- * @param boolean $points if true uses user units as unit of measure, otherwise uses PDF points
- * @access public
+ * @param $page (int) page number
+ * @param $type (string) valid values are:
'MediaBox' : the boundaries of the physical medium on which the page shall be displayed or printed;
'CropBox' : the visible region of default user space;
'BleedBox' : the region to which the contents of the page shall be clipped when output in a production environment;
'TrimBox' : the intended dimensions of the finished page after trimming;
'ArtBox' : the page's meaningful content (including potential white space).
+ * @param $llx (float) lower-left x coordinate in user units
+ * @param $lly (float) lower-left y coordinate in user units
+ * @param $urx (float) upper-right x coordinate in user units
+ * @param $ury (float) upper-right y coordinate in user units
+ * @param $points (boolean) if true uses user units as unit of measure, otherwise uses PDF points
+ * @public
* @since 5.0.010 (2010-05-17)
*/
public function setPageBoxes($page, $type, $llx, $lly, $urx, $ury, $points=false) {
@@ -2842,8 +2832,8 @@ class TCPDF {
/**
* Swap X and Y coordinates of page boxes (change page boxes orientation).
- * @param int $page page number
- * @access protected
+ * @param $page (int) page number
+ * @protected
* @since 5.0.010 (2010-05-17)
*/
protected function swapPageBoxCoordinates($page) {
@@ -2863,10 +2853,10 @@ class TCPDF {
/**
* Set page orientation.
- * @param string $orientation page orientation. Possible values are (case insensitive):
P or Portrait (default)
L or Landscape
'' (empty string) for automatic orientation
- * @param boolean $autopagebreak Boolean indicating if auto-page-break mode should be on or off.
- * @param float $bottommargin bottom margin of the page.
- * @access public
+ * @param $orientation (string) page orientation. Possible values are (case insensitive):
P or Portrait (default)
L or Landscape
'' (empty string) for automatic orientation
+ * @param $autopagebreak (boolean) Boolean indicating if auto-page-break mode should be on or off.
+ * @param $bottommargin (float) bottom margin of the page.
+ * @public
* @since 3.0.015 (2008-06-06)
*/
public function setPageOrientation($orientation, $autopagebreak='', $bottommargin='') {
@@ -2959,19 +2949,19 @@ class TCPDF {
/**
* Set regular expression to detect withespaces or word separators.
- * The pattern delimiter must be the forward-slash character '/'.
+ * The pattern delimiter must be the forward-slash character "/".
* Some example patterns are:
*
- * Non-Unicode or missing PCRE unicode support: '/[^\S\xa0]/'
- * Unicode and PCRE unicode support: '/[^\S\P{Z}\xa0]/u'
- * Unicode and PCRE unicode support in Chinese mode: '/[^\S\P{Z}\P{Lo}\xa0]/u'
- * if PCRE unicode support is turned ON (\P is the negate class of \p):
- * \p{Z} or \p{Separator}: any kind of Unicode whitespace or invisible separator.
- * \p{Lo} or \p{Other_Letter}: a Unicode letter or ideograph that does not have lowercase and uppercase variants.
- * \p{Lo} is needed for Chinese characters because are packed next to each other without spaces in between.
+ * Non-Unicode or missing PCRE unicode support: "/[^\S\xa0]/"
+ * Unicode and PCRE unicode support: "/[^\S\P{Z}\xa0]/u"
+ * Unicode and PCRE unicode support in Chinese mode: "/[^\S\P{Z}\P{Lo}\xa0]/u"
+ * if PCRE unicode support is turned ON ("\P" is the negate class of "\p"):
+ * "\p{Z}" or "\p{Separator}": any kind of Unicode whitespace or invisible separator.
+ * "\p{Lo}" or "\p{Other_Letter}": a Unicode letter or ideograph that does not have lowercase and uppercase variants.
+ * "\p{Lo}" is needed for Chinese characters because are packed next to each other without spaces in between.
*
- * @param string $re regular expression (leave empty for default).
- * @access public
+ * @param $re (string) regular expression (leave empty for default).
+ * @public
* @since 4.6.016 (2009-06-15)
*/
public function setSpacesRE($re='/[^\S\xa0]/') {
@@ -2994,9 +2984,9 @@ class TCPDF {
/**
* Enable or disable Right-To-Left language mode
- * @param Boolean $enable if true enable Right-To-Left language mode.
- * @param Boolean $resetx if true reset the X position on direction change.
- * @access public
+ * @param $enable (Boolean) if true enable Right-To-Left language mode.
+ * @param $resetx (Boolean) if true reset the X position on direction change.
+ * @public
* @since 2.0.000 (2008-01-03)
*/
public function setRTL($enable, $resetx=true) {
@@ -3012,7 +3002,7 @@ class TCPDF {
/**
* Return the RTL status
* @return boolean
- * @access public
+ * @public
* @since 4.0.012 (2008-07-24)
*/
public function getRTL() {
@@ -3021,8 +3011,8 @@ class TCPDF {
/**
* Force temporary RTL language direction
- * @param mixed $mode can be false, 'L' for LTR or 'R' for RTL
- * @access public
+ * @param $mode (mixed) can be false, 'L' for LTR or 'R' for RTL
+ * @public
* @since 2.1.000 (2008-01-09)
*/
public function setTempRTL($mode) {
@@ -3054,7 +3044,7 @@ class TCPDF {
/**
* Return the current temporary RTL status
* @return boolean
- * @access public
+ * @public
* @since 4.8.014 (2009-11-04)
*/
public function isRTLTextDir() {
@@ -3063,9 +3053,9 @@ class TCPDF {
/**
* Set the last cell height.
- * @param float $h cell height.
+ * @param $h (float) cell height.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 1.53.0.TC034
*/
public function setLastH($h) {
@@ -3074,7 +3064,7 @@ class TCPDF {
/**
* Reset the last cell height.
- * @access public
+ * @public
* @since 5.9.000 (2010-10-03)
*/
public function resetLastH() {
@@ -3084,7 +3074,7 @@ class TCPDF {
/**
* Get the last cell height.
* @return last cell height
- * @access public
+ * @public
* @since 4.0.017 (2008-08-05)
*/
public function getLastH() {
@@ -3093,9 +3083,9 @@ class TCPDF {
/**
* Set the adjusting factor to convert pixels to user units.
- * @param float $scale adjusting factor to convert pixels to user units.
+ * @param $scale (float) adjusting factor to convert pixels to user units.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 1.5.2
*/
public function setImageScale($scale) {
@@ -3106,7 +3096,7 @@ class TCPDF {
* Returns the adjusting factor to convert pixels to user units.
* @return float adjusting factor to convert pixels to user units.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 1.5.2
*/
public function getImageScale() {
@@ -3116,10 +3106,10 @@ class TCPDF {
/**
* Returns an array of page dimensions:
*
$this->pagedim[$this->page]['w'] = page width in points
$this->pagedim[$this->page]['h'] = height in points
$this->pagedim[$this->page]['wk'] = page width in user units
$this->pagedim[$this->page]['hk'] = page height in user units
$this->pagedim[$this->page]['tm'] = top margin
$this->pagedim[$this->page]['bm'] = bottom margin
$this->pagedim[$this->page]['lm'] = left margin
$this->pagedim[$this->page]['rm'] = right margin
$this->pagedim[$this->page]['pb'] = auto page break
$this->pagedim[$this->page]['olm'] = original left margin
$this->pagedim[$this->page]['orm'] = original right margin
$this->pagedim[$this->page]['Rotate'] = The number of degrees by which the page shall be rotated clockwise when displayed or printed. The value shall be a multiple of 90.
$this->pagedim[$this->page]['PZ'] = The page's preferred zoom (magnification) factor.
$this->pagedim[$this->page]['trans'] : the style and duration of the visual transition to use when moving from another page to the given page during a presentation
$this->pagedim[$this->page]['trans']['Dur'] = The page's display duration (also called its advance timing): the maximum length of time, in seconds, that the page shall be displayed during presentations before the viewer application shall automatically advance to the next page.
$this->pagedim[$this->page]['trans']['D'] = The duration of the transition effect, in seconds.
$this->pagedim[$this->page]['trans']['Dm'] = (Split and Blinds transition styles only) The dimension in which the specified transition effect shall occur: H = Horizontal, V = Vertical. Default value: H.
$this->pagedim[$this->page]['trans']['M'] = (Split, Box and Fly transition styles only) The direction of motion for the specified transition effect: I = Inward from the edges of the page, O = Outward from the center of the pageDefault value: I.
$this->pagedim[$this->page]['trans']['Di'] = (Wipe, Glitter, Fly, Cover, Uncover and Push transition styles only) The direction in which the specified transition effect shall moves, expressed in degrees counterclockwise starting from a left-to-right direction. If the value is a number, it shall be one of: 0 = Left to right, 90 = Bottom to top (Wipe only), 180 = Right to left (Wipe only), 270 = Top to bottom, 315 = Top-left to bottom-right (Glitter only). If the value is a name, it shall be None, which is relevant only for the Fly transition when the value of SS is not 1.0. Default value: 0.
$this->pagedim[$this->page]['trans']['SS'] = (Fly transition style only) The starting or ending scale at which the changes shall be drawn. If M specifies an inward transition, the scale of the changes drawn shall progress from SS to 1.0 over the course of the transition. If M specifies an outward transition, the scale of the changes drawn shall progress from 1.0 to SS over the course of the transition. Default: 1.0.
$this->pagedim[$this->page]['trans']['B'] = (Fly transition style only) If true, the area that shall be flown in is rectangular and opaque. Default: false.
$this->pagedim[$this->page]['MediaBox'] : the boundaries of the physical medium on which the page shall be displayed or printed
$this->pagedim[$this->page]['MediaBox']['llx'] = lower-left x coordinate in points
$this->pagedim[$this->page]['MediaBox']['lly'] = lower-left y coordinate in points
$this->pagedim[$this->page]['MediaBox']['urx'] = upper-right x coordinate in points
$this->pagedim[$this->page]['MediaBox']['ury'] = upper-right y coordinate in points
$this->pagedim[$this->page]['CropBox'] : the visible region of default user space
$this->pagedim[$this->page]['CropBox']['llx'] = lower-left x coordinate in points
$this->pagedim[$this->page]['CropBox']['lly'] = lower-left y coordinate in points
$this->pagedim[$this->page]['CropBox']['urx'] = upper-right x coordinate in points
$this->pagedim[$this->page]['CropBox']['ury'] = upper-right y coordinate in points
$this->pagedim[$this->page]['BleedBox'] : the region to which the contents of the page shall be clipped when output in a production environment
$this->pagedim[$this->page]['BleedBox']['llx'] = lower-left x coordinate in points
$this->pagedim[$this->page]['BleedBox']['lly'] = lower-left y coordinate in points
$this->pagedim[$this->page]['BleedBox']['urx'] = upper-right x coordinate in points
$this->pagedim[$this->page]['BleedBox']['ury'] = upper-right y coordinate in points
$this->pagedim[$this->page]['TrimBox'] : the intended dimensions of the finished page after trimming
$this->pagedim[$this->page]['TrimBox']['llx'] = lower-left x coordinate in points
$this->pagedim[$this->page]['TrimBox']['lly'] = lower-left y coordinate in points
$this->pagedim[$this->page]['TrimBox']['urx'] = upper-right x coordinate in points
$this->pagedim[$this->page]['TrimBox']['ury'] = upper-right y coordinate in points
$this->pagedim[$this->page]['ArtBox'] : the extent of the page's meaningful content
$this->pagedim[$this->page]['ArtBox']['llx'] = lower-left x coordinate in points
$this->pagedim[$this->page]['ArtBox']['lly'] = lower-left y coordinate in points
$this->pagedim[$this->page]['ArtBox']['urx'] = upper-right x coordinate in points
$this->pagedim[$this->page]['ArtBox']['ury'] = upper-right y coordinate in points
- * @param int $pagenum page number (empty = current page)
+ * @param $pagenum (int) page number (empty = current page)
* @return array of page dimensions.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 4.5.027 (2009-03-16)
*/
public function getPageDimensions($pagenum='') {
@@ -3131,10 +3121,10 @@ class TCPDF {
/**
* Returns the page width in units.
- * @param int $pagenum page number (empty = current page)
+ * @param $pagenum (int) page number (empty = current page)
* @return int page width.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 1.5.2
* @see getPageDimensions()
*/
@@ -3147,10 +3137,10 @@ class TCPDF {
/**
* Returns the page height in units.
- * @param int $pagenum page number (empty = current page)
+ * @param $pagenum (int) page number (empty = current page)
* @return int page height.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 1.5.2
* @see getPageDimensions()
*/
@@ -3163,10 +3153,10 @@ class TCPDF {
/**
* Returns the page break margin.
- * @param int $pagenum page number (empty = current page)
+ * @param $pagenum (int) page number (empty = current page)
* @return int page break margin.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 1.5.2
* @see getPageDimensions()
*/
@@ -3181,7 +3171,7 @@ class TCPDF {
* Returns the scale factor (number of points in user unit).
* @return int scale factor.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 1.5.2
*/
public function getScaleFactor() {
@@ -3190,11 +3180,11 @@ class TCPDF {
/**
* Defines the left, top and right margins.
- * @param float $left Left margin.
- * @param float $top Top margin.
- * @param float $right Right margin. Default value is the left one.
- * @param boolean $keepmargins if true overwrites the default page margins
- * @access public
+ * @param $left (float) Left margin.
+ * @param $top (float) Top margin.
+ * @param $right (float) Right margin. Default value is the left one.
+ * @param $keepmargins (boolean) if true overwrites the default page margins
+ * @public
* @since 1.0
* @see SetLeftMargin(), SetTopMargin(), SetRightMargin(), SetAutoPageBreak()
*/
@@ -3215,8 +3205,8 @@ class TCPDF {
/**
* Defines the left margin. The method can be called before creating the first page. If the current abscissa gets out of page, it is brought back to the margin.
- * @param float $margin The margin.
- * @access public
+ * @param $margin (float) The margin.
+ * @public
* @since 1.4
* @see SetTopMargin(), SetRightMargin(), SetAutoPageBreak(), SetMargins()
*/
@@ -3230,8 +3220,8 @@ class TCPDF {
/**
* Defines the top margin. The method can be called before creating the first page.
- * @param float $margin The margin.
- * @access public
+ * @param $margin (float) The margin.
+ * @public
* @since 1.5
* @see SetLeftMargin(), SetRightMargin(), SetAutoPageBreak(), SetMargins()
*/
@@ -3245,8 +3235,8 @@ class TCPDF {
/**
* Defines the right margin. The method can be called before creating the first page.
- * @param float $margin The margin.
- * @access public
+ * @param $margin (float) The margin.
+ * @public
* @since 1.5
* @see SetLeftMargin(), SetTopMargin(), SetAutoPageBreak(), SetMargins()
*/
@@ -3259,8 +3249,8 @@ class TCPDF {
/**
* Set the same internal Cell padding for top, right, bottom, left-
- * @param float $pad internal padding.
- * @access public
+ * @param $pad (float) internal padding.
+ * @public
* @since 2.1.000 (2008-01-09)
* @see getCellPaddings(), setCellPaddings()
*/
@@ -3275,11 +3265,11 @@ class TCPDF {
/**
* Set the internal Cell paddings.
- * @param float $left left padding
- * @param float $top top padding
- * @param float $right right padding
- * @param float $bottom bottom padding
- * @access public
+ * @param $left (float) left padding
+ * @param $top (float) top padding
+ * @param $right (float) right padding
+ * @param $bottom (float) bottom padding
+ * @public
* @since 5.9.000 (2010-10-03)
* @see getCellPaddings(), SetCellPadding()
*/
@@ -3301,7 +3291,7 @@ class TCPDF {
/**
* Get the internal Cell padding array.
* @return array of padding values
- * @access public
+ * @public
* @since 5.9.000 (2010-10-03)
* @see setCellPaddings(), SetCellPadding()
*/
@@ -3311,11 +3301,11 @@ class TCPDF {
/**
* Set the internal Cell margins.
- * @param float $left left margin
- * @param float $top top margin
- * @param float $right right margin
- * @param float $bottom bottom margin
- * @access public
+ * @param $left (float) left margin
+ * @param $top (float) top margin
+ * @param $right (float) right margin
+ * @param $bottom (float) bottom margin
+ * @public
* @since 5.9.000 (2010-10-03)
* @see getCellMargins()
*/
@@ -3337,7 +3327,7 @@ class TCPDF {
/**
* Get the internal Cell margin array.
* @return array of margin values
- * @access public
+ * @public
* @since 5.9.000 (2010-10-03)
* @see setCellMargins()
*/
@@ -3347,9 +3337,9 @@ class TCPDF {
/**
* Adjust the internal Cell padding array to take account of the line width.
- * @param mixed $brd Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
+ * @param $brd (mixed) Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
* @return array of adjustments
- * @access public
+ * @public
* @since 5.9.000 (2010-10-03)
*/
protected function adjustCellPadding($brd=0) {
@@ -3421,9 +3411,9 @@ class TCPDF {
/**
* Enables or disables the automatic page breaking mode. When enabling, the second parameter is the distance from the bottom of the page that defines the triggering limit. By default, the mode is on and the margin is 2 cm.
- * @param boolean $auto Boolean indicating if mode should be on or off.
- * @param float $margin Distance from the bottom of the page.
- * @access public
+ * @param $auto (boolean) Boolean indicating if mode should be on or off.
+ * @param $margin (float) Distance from the bottom of the page.
+ * @public
* @since 1.0
* @see Cell(), MultiCell(), AcceptPageBreak()
*/
@@ -3435,10 +3425,10 @@ class TCPDF {
/**
* Defines the way the document is to be displayed by the viewer.
- * @param mixed $zoom The zoom to use. It can be one of the following string values or a number indicating the zooming factor to use.
fullpage: displays the entire page on screen
fullwidth: uses maximum width of window
real: uses real size (equivalent to 100% zoom)
default: uses viewer default mode
- * @param string $layout The page layout. Possible values are:
SinglePage Display one page at a time
OneColumn Display the pages in one column
TwoColumnLeft Display the pages in two columns, with odd-numbered pages on the left
TwoColumnRight Display the pages in two columns, with odd-numbered pages on the right
TwoPageLeft (PDF 1.5) Display the pages two at a time, with odd-numbered pages on the left
TwoPageRight (PDF 1.5) Display the pages two at a time, with odd-numbered pages on the right
- * @param string $mode A name object specifying how the document should be displayed when opened:
UseNone Neither document outline nor thumbnail images visible
UseOutlines Document outline visible
UseThumbs Thumbnail images visible
FullScreen Full-screen mode, with no menu bar, window controls, or any other window visible
UseOC (PDF 1.5) Optional content group panel visible
- * @access public
+ * @param $zoom (mixed) The zoom to use. It can be one of the following string values or a number indicating the zooming factor to use.
fullpage: displays the entire page on screen
fullwidth: uses maximum width of window
real: uses real size (equivalent to 100% zoom)
default: uses viewer default mode
+ * @param $layout (string) The page layout. Possible values are:
SinglePage Display one page at a time
OneColumn Display the pages in one column
TwoColumnLeft Display the pages in two columns, with odd-numbered pages on the left
TwoColumnRight Display the pages in two columns, with odd-numbered pages on the right
TwoPageLeft (PDF 1.5) Display the pages two at a time, with odd-numbered pages on the left
TwoPageRight (PDF 1.5) Display the pages two at a time, with odd-numbered pages on the right
+ * @param $mode (string) A name object specifying how the document should be displayed when opened:
UseNone Neither document outline nor thumbnail images visible
UseOutlines Document outline visible
UseThumbs Thumbnail images visible
FullScreen Full-screen mode, with no menu bar, window controls, or any other window visible
UseOC (PDF 1.5) Optional content group panel visible
+ * @public
* @since 1.2
*/
public function SetDisplayMode($zoom, $layout='SinglePage', $mode='UseNone') {
@@ -3514,8 +3504,8 @@ class TCPDF {
/**
* Activates or deactivates page compression. When activated, the internal representation of each page is compressed, which leads to a compression ratio of about 2 for the resulting document. Compression is on by default.
* Note: the Zlib extension is required for this feature. If not present, compression will be turned off.
- * @param boolean $compress Boolean indicating if compression must be enabled.
- * @access public
+ * @param $compress (boolean) Boolean indicating if compression must be enabled.
+ * @public
* @since 1.4
*/
public function SetCompression($compress) {
@@ -3529,9 +3519,9 @@ class TCPDF {
/**
* Turn on/off Unicode mode for document information dictionary (meta tags).
* This has effect only when unicode mode is set to false.
- * @param boolean $uni if true set the meta information in Unicode
- * @access public
+ * @param $unicode (boolean) if true set the meta information in Unicode
* @since 5.9.027 (2010-12-01)
+ * @public
*/
public function SetDocInfoUnicode($unicode=true) {
$this->docinfounicode = $unicode ? true : false;
@@ -3539,8 +3529,8 @@ class TCPDF {
/**
* Defines the title of the document.
- * @param string $title The title.
- * @access public
+ * @param $title (string) The title.
+ * @public
* @since 1.2
* @see SetAuthor(), SetCreator(), SetKeywords(), SetSubject()
*/
@@ -3550,8 +3540,8 @@ class TCPDF {
/**
* Defines the subject of the document.
- * @param string $subject The subject.
- * @access public
+ * @param $subject (string) The subject.
+ * @public
* @since 1.2
* @see SetAuthor(), SetCreator(), SetKeywords(), SetTitle()
*/
@@ -3561,8 +3551,8 @@ class TCPDF {
/**
* Defines the author of the document.
- * @param string $author The name of the author.
- * @access public
+ * @param $author (string) The name of the author.
+ * @public
* @since 1.2
* @see SetCreator(), SetKeywords(), SetSubject(), SetTitle()
*/
@@ -3572,8 +3562,8 @@ class TCPDF {
/**
* Associates keywords with the document, generally in the form 'keyword1 keyword2 ...'.
- * @param string $keywords The list of keywords.
- * @access public
+ * @param $keywords (string) The list of keywords.
+ * @public
* @since 1.2
* @see SetAuthor(), SetCreator(), SetSubject(), SetTitle()
*/
@@ -3583,8 +3573,8 @@ class TCPDF {
/**
* Defines the creator of the document. This is typically the name of the application that generates the PDF.
- * @param string $creator The name of the creator.
- * @access public
+ * @param $creator (string) The name of the creator.
+ * @public
* @since 1.2
* @see SetAuthor(), SetKeywords(), SetSubject(), SetTitle()
*/
@@ -3595,8 +3585,8 @@ class TCPDF {
/**
* This method is automatically called in case of fatal error; it simply outputs the message and halts the execution. An inherited class may override it to customize the error handling but should always halt the script, or the resulting document would probably be invalid.
* 2004-06-11 :: Nicola Asuni : changed bold tag with strong
- * @param string $msg The error message
- * @access public
+ * @param $msg (string) The error message
+ * @public
* @since 1.0
*/
public function Error($msg) {
@@ -3610,7 +3600,7 @@ class TCPDF {
* This method begins the generation of the PDF document.
* It is not necessary to call it explicitly because AddPage() does it automatically.
* Note: no page is created by this method
- * @access public
+ * @public
* @since 1.0
* @see AddPage(), Close()
*/
@@ -3622,7 +3612,7 @@ class TCPDF {
* Terminates the PDF document.
* It is not necessary to call this method explicitly because Output() does it automatically.
* If the document contains no page, AddPage() is called to prevent from getting an invalid document.
- * @access public
+ * @public
* @since 1.0
* @see Open(), Output()
*/
@@ -3660,9 +3650,9 @@ class TCPDF {
/**
* Move pointer at the specified document page and update page dimensions.
- * @param int $pnum page number (1 ... numpages)
- * @param boolean $resetmargins if true reset left, right, top margins and Y position.
- * @access public
+ * @param $pnum (int) page number (1 ... numpages)
+ * @param $resetmargins (boolean) if true reset left, right, top margins and Y position.
+ * @public
* @since 2.1.000 (2008-01-07)
* @see getPage(), lastpage(), getNumPages()
*/
@@ -3708,8 +3698,8 @@ class TCPDF {
/**
* Reset pointer to the last document page.
- * @param boolean $resetmargins if true reset left, right, top margins and Y position.
- * @access public
+ * @param $resetmargins (boolean) if true reset left, right, top margins and Y position.
+ * @public
* @since 2.0.000 (2008-01-04)
* @see setPage(), getPage(), getNumPages()
*/
@@ -3720,7 +3710,7 @@ class TCPDF {
/**
* Get current document page number.
* @return int page number
- * @access public
+ * @public
* @since 2.1.000 (2008-01-07)
* @see setPage(), lastpage(), getNumPages()
*/
@@ -3731,7 +3721,7 @@ class TCPDF {
/**
* Get the total number of insered pages.
* @return int number of pages
- * @access public
+ * @public
* @since 2.1.000 (2008-01-07)
* @see setPage(), getPage(), lastpage()
*/
@@ -3741,9 +3731,10 @@ class TCPDF {
/**
* Adds a new TOC (Table Of Content) page to the document.
- * @param string $orientation page orientation.
- * @param boolean $keepmargins if true overwrites the default page margins with the current margins
- * @access public
+ * @param $orientation (string) page orientation.
+ * @param $format (mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
+ * @param $keepmargins (boolean) if true overwrites the default page margins with the current margins
+ * @public
* @since 5.0.001 (2010-05-06)
* @see AddPage(), startPage(), endPage(), endTOCPage()
*/
@@ -3753,7 +3744,7 @@ class TCPDF {
/**
* Terminate the current TOC (Table Of Content) page
- * @access public
+ * @public
* @since 5.0.001 (2010-05-06)
* @see AddPage(), startPage(), endPage(), addTOCPage()
*/
@@ -3764,11 +3755,11 @@ class TCPDF {
/**
* Adds a new page to the document. If a page is already present, the Footer() method is called first to output the footer (if enabled). Then the page is added, the current position set to the top-left corner according to the left and top margins (or top-right if in RTL mode), and Header() is called to display the header (if enabled).
* The origin of the coordinate system is at the top-left corner (or top-right for RTL) and increasing ordinates go downwards.
- * @param string $orientation page orientation. Possible values are (case insensitive):
P or PORTRAIT (default)
L or LANDSCAPE
- * @param mixed $format The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
- * @param boolean $keepmargins if true overwrites the default page margins with the current margins
- * @param boolean $tocpage if true set the tocpage state to true (the added page will be used to display Table Of Content).
- * @access public
+ * @param $orientation (string) page orientation. Possible values are (case insensitive):
P or PORTRAIT (default)
L or LANDSCAPE
+ * @param $format (mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
+ * @param $keepmargins (boolean) if true overwrites the default page margins with the current margins
+ * @param $tocpage (boolean) if true set the tocpage state to true (the added page will be used to display Table Of Content).
+ * @public
* @since 1.0
* @see startPage(), endPage(), addTOCPage(), endTOCPage(), getPageSizeFromFormat(), setPageFormat()
*/
@@ -3791,8 +3782,8 @@ class TCPDF {
/**
* Terminate the current page
- * @param boolean $tocpage if true set the tocpage state to false (end the page used to display Table Of Content).
- * @access public
+ * @param $tocpage (boolean) if true set the tocpage state to false (end the page used to display Table Of Content).
+ * @public
* @since 4.2.010 (2008-11-14)
* @see AddPage(), startPage(), addTOCPage(), endTOCPage()
*/
@@ -3817,11 +3808,12 @@ class TCPDF {
/**
* Starts a new page to the document. The page must be closed using the endPage() function.
* The origin of the coordinate system is at the top-left corner and increasing ordinates go downwards.
- * @param string $orientation page orientation. Possible values are (case insensitive):
P or PORTRAIT (default)
L or LANDSCAPE
- * @param mixed $format The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
- * @access public
+ * @param $orientation (string) page orientation. Possible values are (case insensitive):
P or PORTRAIT (default)
L or LANDSCAPE
+ * @param $format (mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
+ * @param $tocpage (boolean) if true the page is designated to contain the Table-Of-Content.
* @since 4.2.010 (2008-11-14)
* @see AddPage(), endPage(), addTOCPage(), endTOCPage(), getPageSizeFromFormat(), setPageFormat()
+ * @public
*/
public function startPage($orientation='', $format='', $tocpage=false) {
if ($tocpage) {
@@ -3866,7 +3858,7 @@ class TCPDF {
* Borders and fills are always created after content and inserted on the position marked by this method.
* This function must be called after calling Image() function for a background image.
* Background images must be always inserted before calling Multicell() or WriteHTMLCell() or WriteHTML() functions.
- * @access public
+ * @public
* @since 4.0.016 (2008-07-30)
*/
public function setPageMark() {
@@ -3878,8 +3870,8 @@ class TCPDF {
/**
* Set start-writing mark on selected page.
* Borders and fills are always created after content and inserted on the position marked by this method.
- * @param int $page page number (default is the current page)
- * @access protected
+ * @param $page (int) page number (default is the current page)
+ * @protected
* @since 4.6.021 (2009-07-20)
*/
protected function setContentMark($page=0) {
@@ -3895,11 +3887,11 @@ class TCPDF {
/**
* Set header data.
- * @param string $ln header image logo
- * @param string $lw header image logo width in mm
- * @param string $ht string to print as title on document header
- * @param string $hs string to print on document header
- * @access public
+ * @param $ln (string) header image logo
+ * @param $lw (string) header image logo width in mm
+ * @param $ht (string) string to print as title on document header
+ * @param $hs (string) string to print on document header
+ * @public
*/
public function setHeaderData($ln='', $lw=0, $ht='', $hs='') {
$this->header_logo = $ln;
@@ -3912,7 +3904,7 @@ class TCPDF {
* Returns header data:
*
$ret['logo'] = logo image
$ret['logo_width'] = width of the image logo in user units
$ret['title'] = header title
$ret['string'] = header description string
* @return array()
- * @access public
+ * @public
* @since 4.0.012 (2008-07-24)
*/
public function getHeaderData() {
@@ -3927,8 +3919,8 @@ class TCPDF {
/**
* Set header margin.
* (minimum distance between header and top page margin)
- * @param int $hm distance in user units
- * @access public
+ * @param $hm (int) distance in user units
+ * @public
*/
public function setHeaderMargin($hm=10) {
$this->header_margin = $hm;
@@ -3938,7 +3930,7 @@ class TCPDF {
* Returns header margin in user units.
* @return float
* @since 4.0.012 (2008-07-24)
- * @access public
+ * @public
*/
public function getHeaderMargin() {
return $this->header_margin;
@@ -3947,8 +3939,8 @@ class TCPDF {
/**
* Set footer margin.
* (minimum distance between footer and bottom page margin)
- * @param int $fm distance in user units
- * @access public
+ * @param $fm (int) distance in user units
+ * @public
*/
public function setFooterMargin($fm=10) {
$this->footer_margin = $fm;
@@ -3958,15 +3950,15 @@ class TCPDF {
* Returns footer margin in user units.
* @return float
* @since 4.0.012 (2008-07-24)
- * @access public
+ * @public
*/
public function getFooterMargin() {
return $this->footer_margin;
}
/**
* Set a flag to print page header.
- * @param boolean $val set to true to print the page header (default), false otherwise.
- * @access public
+ * @param $val (boolean) set to true to print the page header (default), false otherwise.
+ * @public
*/
public function setPrintHeader($val=true) {
$this->print_header = $val;
@@ -3974,8 +3966,8 @@ class TCPDF {
/**
* Set a flag to print page footer.
- * @param boolean $value set to true to print the page footer (default), false otherwise.
- * @access public
+ * @param $val (boolean) set to true to print the page footer (default), false otherwise.
+ * @public
*/
public function setPrintFooter($val=true) {
$this->print_footer = $val;
@@ -3984,7 +3976,7 @@ class TCPDF {
/**
* Return the right-bottom (or left-bottom for RTL) corner X coordinate of last inserted image
* @return float
- * @access public
+ * @public
*/
public function getImageRBX() {
return $this->img_rb_x;
@@ -3993,7 +3985,7 @@ class TCPDF {
/**
* Return the right-bottom (or left-bottom for RTL) corner Y coordinate of last inserted image
* @return float
- * @access public
+ * @public
*/
public function getImageRBY() {
return $this->img_rb_y;
@@ -4002,7 +3994,7 @@ class TCPDF {
/**
* This method is used to render the page header.
* It is automatically called by AddPage() and could be overwritten in your own inherited class.
- * @access public
+ * @public
*/
public function Header() {
$ormargins = $this->getOriginalMargins();
@@ -4051,7 +4043,7 @@ class TCPDF {
/**
* This method is used to render the page footer.
* It is automatically called by AddPage() and could be overwritten in your own inherited class.
- * @access public
+ * @public
*/
public function Footer() {
$cur_y = $this->GetY();
@@ -4097,7 +4089,7 @@ class TCPDF {
/**
* This method is used to render the page header.
- * @access protected
+ * @protected
* @since 4.0.012 (2008-07-24)
*/
protected function setHeader() {
@@ -4134,7 +4126,7 @@ class TCPDF {
/**
* This method is used to render the page footer.
- * @access protected
+ * @protected
* @since 4.0.012 (2008-07-24)
*/
protected function setFooter() {
@@ -4185,7 +4177,7 @@ class TCPDF {
/**
* This method is used to render the table header on new page (if any).
- * @access protected
+ * @protected
* @since 4.5.030 (2009-03-25)
*/
protected function setTableHeader() {
@@ -4230,7 +4222,7 @@ class TCPDF {
/**
* Returns the current page number.
* @return int page number
- * @access public
+ * @public
* @since 1.0
* @see AliasNbPages(), getAliasNbPages()
*/
@@ -4242,11 +4234,12 @@ class TCPDF {
* Defines a new spot color.
* It can be expressed in RGB components or gray scale.
* The method can be called before the first page is created and the value is retained from page to page.
- * @param int $c Cyan color for CMYK. Value between 0 and 100
- * @param int $m Magenta color for CMYK. Value between 0 and 100
- * @param int $y Yellow color for CMYK. Value between 0 and 100
- * @param int $k Key (Black) color for CMYK. Value between 0 and 100
- * @access public
+ * @param $name (string) name of the spot color
+ * @param $c (int) Cyan color for CMYK. Value between 0 and 100
+ * @param $m (int) Magenta color for CMYK. Value between 0 and 100
+ * @param $y (int) Yellow color for CMYK. Value between 0 and 100
+ * @param $k (int) Key (Black) color for CMYK. Value between 0 and 100
+ * @public
* @since 4.0.024 (2008-09-12)
* @see SetDrawSpotColor(), SetFillSpotColor(), SetTextSpotColor()
*/
@@ -4266,10 +4259,10 @@ class TCPDF {
* Defines the color used for all drawing operations (lines, rectangles and cell borders).
* It can be expressed in RGB, CMYK or GRAY SCALE components.
* The method can be called before the first page is created and the value is retained from page to page.
- * @param array $color array of colors
- * @param boolean $ret if true do not send the PDF command.
+ * @param $color (array) array of colors
+ * @param $ret (boolean) if true do not send the PDF command.
* @return string the PDF command
- * @access public
+ * @public
* @since 3.1.000 (2008-06-11)
* @see SetDrawColor()
*/
@@ -4290,14 +4283,14 @@ class TCPDF {
/**
* Defines the color used for all drawing operations (lines, rectangles and cell borders). It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
- * @param int $col1 GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
- * @param int $col2 GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
- * @param int $col3 BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
- * @param int $col4 KEY (BLACK) color for CMYK (0-100).
- * @param boolean $ret if true do not send the command.
- * @param string $name spot color name (if any)
+ * @param $col1 (int) GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
+ * @param $col2 (int) GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
+ * @param $col3 (int) BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
+ * @param $col4 (int) KEY (BLACK) color for CMYK (0-100).
+ * @param $ret (boolean) if true do not send the command.
+ * @param $name (string) spot color name (if any)
* @return string the PDF command
- * @access public
+ * @public
* @since 1.3
* @see SetDrawColorArray(), SetFillColor(), SetTextColor(), Line(), Rect(), Cell(), MultiCell()
*/
@@ -4345,9 +4338,9 @@ class TCPDF {
/**
* Defines the spot color used for all drawing operations (lines, rectangles and cell borders).
- * @param string $name name of the spot color
- * @param int $tint the intensity of the color (from 0 to 100 ; 100 = full intensity by default).
- * @access public
+ * @param $name (string) name of the spot color
+ * @param $tint (int) the intensity of the color (from 0 to 100 ; 100 = full intensity by default).
+ * @public
* @since 4.0.024 (2008-09-12)
* @see AddSpotColor(), SetFillSpotColor(), SetTextSpotColor()
*/
@@ -4366,9 +4359,9 @@ class TCPDF {
* Defines the color used for all filling operations (filled rectangles and cell backgrounds).
* It can be expressed in RGB, CMYK or GRAY SCALE components.
* The method can be called before the first page is created and the value is retained from page to page.
- * @param array $color array of colors
- * @param boolean $ret if true do not send the PDF command.
- * @access public
+ * @param $color (array) array of colors
+ * @param $ret (boolean) if true do not send the PDF command.
+ * @public
* @since 3.1.000 (2008-6-11)
* @see SetFillColor()
*/
@@ -4388,14 +4381,14 @@ class TCPDF {
/**
* Defines the color used for all filling operations (filled rectangles and cell backgrounds). It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
- * @param int $col1 GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
- * @param int $col2 GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
- * @param int $col3 BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
- * @param int $col4 KEY (BLACK) color for CMYK (0-100).
- * @param boolean $ret if true do not send the command.
- * @param string $name spot color name (if any)
+ * @param $col1 (int) GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
+ * @param $col2 (int) GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
+ * @param $col3 (int) BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
+ * @param $col4 (int) KEY (BLACK) color for CMYK (0-100).
+ * @param $ret (boolean) if true do not send the command.
+ * @param $name (string) spot color name (if any)
* @return string the PDF command
- * @access public
+ * @public
* @since 1.3
* @see SetFillColorArray(), SetDrawColor(), SetTextColor(), Rect(), Cell(), MultiCell()
*/
@@ -4444,9 +4437,9 @@ class TCPDF {
/**
* Defines the spot color used for all filling operations (filled rectangles and cell backgrounds).
- * @param string $name name of the spot color
- * @param int $tint the intensity of the color (from 0 to 100 ; 100 = full intensity by default).
- * @access public
+ * @param $name (string) name of the spot color
+ * @param $tint (int) the intensity of the color (from 0 to 100 ; 100 = full intensity by default).
+ * @public
* @since 4.0.024 (2008-09-12)
* @see AddSpotColor(), SetDrawSpotColor(), SetTextSpotColor()
*/
@@ -4465,9 +4458,9 @@ class TCPDF {
/**
* Defines the color used for text. It can be expressed in RGB components or gray scale.
* The method can be called before the first page is created and the value is retained from page to page.
- * @param array $color array of colors
- * @param boolean $ret if true do not send the PDF command.
- * @access public
+ * @param $color (array) array of colors
+ * @param $ret (boolean) if true do not send the PDF command.
+ * @public
* @since 3.1.000 (2008-6-11)
* @see SetFillColor()
*/
@@ -4487,13 +4480,13 @@ class TCPDF {
/**
* Defines the color used for text. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
- * @param int $col1 GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
- * @param int $col2 GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
- * @param int $col3 BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
- * @param int $col4 KEY (BLACK) color for CMYK (0-100).
- * @param boolean $ret if true do not send the command.
- * @param string $name spot color name (if any)
- * @access public
+ * @param $col1 (int) GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
+ * @param $col2 (int) GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
+ * @param $col3 (int) BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
+ * @param $col4 (int) KEY (BLACK) color for CMYK (0-100).
+ * @param $ret (boolean) if true do not send the command.
+ * @param $name (string) spot color name (if any)
+ * @public
* @since 1.3
* @see SetTextColorArray(), SetDrawColor(), SetFillColor(), Text(), Cell(), MultiCell()
*/
@@ -4535,9 +4528,9 @@ class TCPDF {
/**
* Defines the spot color used for text.
- * @param string $name name of the spot color
- * @param int $tint the intensity of the color (from 0 to 100 ; 100 = full intensity by default).
- * @access public
+ * @param $name (string) name of the spot color
+ * @param $tint (int) the intensity of the color (from 0 to 100 ; 100 = full intensity by default).
+ * @public
* @since 4.0.024 (2008-09-12)
* @see AddSpotColor(), SetDrawSpotColor(), SetFillSpotColor()
*/
@@ -4555,14 +4548,14 @@ class TCPDF {
/**
* Returns the length of a string in user unit. A font must be selected.
- * @param string $s The string whose length is to be computed
- * @param string $fontname 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 string $fontstyle Font style. Possible values are (case insensitive):
empty string: regular
B: bold
I: italic
U: underline
D: line-trough
O: overline
or any combination. The default value is regular.
- * @param float $fontsize Font size in points. The default value is the current size.
- * @param boolean $getarray if true returns an array of characters widths, if false returns the total length.
+ * @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):
empty string: regular
B: bold
I: italic
U: underline
D: line-trough
O: overline
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
* @author Nicola Asuni
- * @access public
+ * @public
* @since 1.2
*/
public function GetStringWidth($s, $fontname='', $fontstyle='', $fontsize=0, $getarray=false) {
@@ -4571,14 +4564,14 @@ 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.
- * @param string $sa The array of chars whose total length is to be computed
- * @param string $fontname 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 string $fontstyle Font style. Possible values are (case insensitive):
empty string: regular
B: bold
I: italic
U: underline
D: line trough
O: overline
or any combination. The default value is regular.
- * @param float $fontsize Font size in points. The default value is the current size.
- * @param boolean $getarray if true returns an array of characters widths, if false returns the total length.
+ * @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):
empty string: regular
B: bold
I: italic
U: underline
D: line trough
O: overline
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
* @author Nicola Asuni
- * @access public
+ * @public
* @since 2.4.000 (2008-03-06)
*/
public function GetArrStringWidth($sa, $fontname='', $fontstyle='', $fontsize=0, $getarray=false) {
@@ -4611,11 +4604,11 @@ class TCPDF {
/**
* Returns the length of the char in user unit for the current font considering current stretching and spacing (tracking/kerning).
- * @param int $char The char code whose length is to be returned
- * @param boolean $notlast set to false for the latest character on string, true otherwise (default)
+ * @param $char (int) The char code whose length is to be returned
+ * @param $notlast (boolean) set to false for the latest character on string, true otherwise (default)
* @return float char width
* @author Nicola Asuni
- * @access public
+ * @public
* @since 2.4.000 (2008-03-06)
*/
public function GetCharWidth($char, $notlast=true) {
@@ -4634,10 +4627,10 @@ class TCPDF {
/**
* Returns the length of the char in user unit for the current font.
- * @param int $char The char code whose length is to be returned
+ * @param $char (int) The char code whose length is to be returned
* @return float char width
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.9.000 (2010-09-28)
*/
public function getRawCharWidth($char) {
@@ -4662,9 +4655,9 @@ class TCPDF {
/**
* Returns the numbero of characters in a string.
- * @param string $s The input string.
+ * @param $s (string) The input string.
* @return int number of characters
- * @access public
+ * @public
* @since 2.0.0001 (2008-01-07)
*/
public function GetNumChars($s) {
@@ -4676,7 +4669,7 @@ class TCPDF {
/**
* Fill the list of available fonts ($this->fontlist).
- * @access protected
+ * @protected
* @since 4.0.013 (2008-07-28)
*/
protected function getFontsList() {
@@ -4693,12 +4686,12 @@ class TCPDF {
* Imports a TrueType, Type1, core, or CID0 font and makes it available.
* It is necessary to generate a font definition file first (read /fonts/utils/README.TXT).
* The definition file (and the font file itself when embedding) must be present either in the current directory or in the one indicated by K_PATH_FONTS if the constant is defined. If it could not be found, the error "Could not include font definition file" is generated.
- * @param string $family Font family. The name can be chosen arbitrarily. If it is a standard family name, it will override the corresponding font.
- * @param string $style Font style. Possible values are (case insensitive):
empty string: regular (default)
B: bold
I: italic
BI or IB: bold italic
- * @param string $fontfile The font definition file. By default, the name is built from the family and style, in lower case with no spaces.
+ * @param $family (string) Font family. The name can be chosen arbitrarily. If it is a standard family name, it will override the corresponding font.
+ * @param $style (string) Font style. Possible values are (case insensitive):
empty string: regular (default)
B: bold
I: italic
BI or IB: bold italic
+ * @param $fontfile (string) The font definition file. By default, the name is built from the family and style, in lower case with no spaces.
* @return array containing the font data, or false in case of error.
- * @param mixed $subset 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.
- * @access public
+ * @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.
+ * @public
* @since 1.5
* @see SetFont(), setFontSubsetting()
*/
@@ -4931,13 +4924,13 @@ class TCPDF {
* The method can be called before the first page is created and the font is retained from page to page.
* 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:
They are in the current directory (the one where the running script lies)
They are in one of the directories defined by the include_path parameter
They are in the directory defined by the K_PATH_FONTS constant
- * @param string $family Family font. It can be either a name defined by AddFont() or one of the standard Type1 families (case insensitive):
times (Times-Roman)
timesb (Times-Bold)
timesi (Times-Italic)
timesbi (Times-BoldItalic)
helvetica (Helvetica)
helveticab (Helvetica-Bold)
helveticai (Helvetica-Oblique)
helveticabi (Helvetica-BoldOblique)
courier (Courier)
courierb (Courier-Bold)
courieri (Courier-Oblique)
courierbi (Courier-BoldOblique)
symbol (Symbol)
zapfdingbats (ZapfDingbats)
It is also possible to pass an empty string. In that case, the current family is retained.
- * @param string $style Font style. Possible values are (case insensitive):
empty string: regular
B: bold
I: italic
U: underline
D: line trough
O: overline
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 float $size 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 string $fontfile The font definition file. By default, the name is built from the family and style, in lower case with no spaces.
- * @param mixed $subset 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.
+ * @param $family (string) Family font. It can be either a name defined by AddFont() or one of the standard Type1 families (case insensitive):
times (Times-Roman)
timesb (Times-Bold)
timesi (Times-Italic)
timesbi (Times-BoldItalic)
helvetica (Helvetica)
helveticab (Helvetica-Bold)
helveticai (Helvetica-Oblique)
helveticabi (Helvetica-BoldOblique)
courier (Courier)
courierb (Courier-Bold)
courieri (Courier-Oblique)
courierbi (Courier-BoldOblique)
symbol (Symbol)
zapfdingbats (ZapfDingbats)
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):
empty string: regular
B: bold
I: italic
U: underline
D: line trough
O: overline
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.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 1.0
* @see AddFont(), SetFontSize()
*/
@@ -4956,9 +4949,9 @@ class TCPDF {
/**
* Defines the size of the current font.
- * @param float $size The size (in points)
- * @param boolean $out if true output the font size command, otherwise only set the font properties.
- * @access public
+ * @param $size (float) The size (in points)
+ * @param $out (boolean) if true output the font size command, otherwise only set the font properties.
+ * @public
* @since 1.0
* @see SetFont()
*/
@@ -4998,11 +4991,11 @@ class TCPDF {
/**
* Return the font descent value
- * @param string $font font name
- * @param string $style font style
- * @param float $size The size (in points)
+ * @param $font (string) font name
+ * @param $style (string) font style
+ * @param $size (float) The size (in points)
* @return int font descent
- * @access public
+ * @public
* @author Nicola Asuni
* @since 4.9.003 (2010-03-30)
*/
@@ -5019,11 +5012,11 @@ class TCPDF {
/**
* Return the font ascent value
- * @param string $font font name
- * @param string $style font style
- * @param float $size The size (in points)
+ * @param $font (string) font name
+ * @param $style (string) font style
+ * @param $size (float) The size (in points)
* @return int font ascent
- * @access public
+ * @public
* @author Nicola Asuni
* @since 4.9.003 (2010-03-30)
*/
@@ -5040,8 +5033,8 @@ class TCPDF {
/**
* Defines the default monospaced font.
- * @param string $font Font name.
- * @access public
+ * @param $font (string) Font name.
+ * @public
* @since 4.5.025
*/
public function SetDefaultMonospacedFont($font) {
@@ -5051,7 +5044,7 @@ class TCPDF {
/**
* Creates a new internal link and returns its identifier. An internal link is a clickable area which directs to another place within the document.
* The identifier can then be passed to Cell(), Write(), Image() or Link(). The destination is defined with SetLink().
- * @access public
+ * @public
* @since 1.5
* @see Cell(), Write(), Image(), Link(), SetLink()
*/
@@ -5064,10 +5057,10 @@ class TCPDF {
/**
* Defines the page and position a link points to.
- * @param int $link The link identifier returned by AddLink()
- * @param float $y Ordinate of target position; -1 indicates the current position. The default value is 0 (top of page)
- * @param int $page Number of target page; -1 indicates the current page. This is the default value
- * @access public
+ * @param $link (int) The link identifier returned by AddLink()
+ * @param $y (float) Ordinate of target position; -1 indicates the current position. The default value is 0 (top of page)
+ * @param $page (int) Number of target page; -1 indicates the current page. This is the default value
+ * @public
* @since 1.5
* @see AddLink()
*/
@@ -5084,13 +5077,13 @@ class TCPDF {
/**
* Puts a link on a rectangular area of the page.
* Text or image links are generally put via Cell(), Write() or Image(), but this method can be useful for instance to define a clickable area inside an image.
- * @param float $x Abscissa of the upper-left corner of the rectangle
- * @param float $y Ordinate of the upper-left corner of the rectangle
- * @param float $w Width of the rectangle
- * @param float $h Height of the rectangle
- * @param mixed $link URL or identifier returned by AddLink()
- * @param int $spaces number of spaces on the text to link
- * @access public
+ * @param $x (float) Abscissa of the upper-left corner of the rectangle
+ * @param $y (float) Ordinate of the upper-left corner of the rectangle
+ * @param $w (float) Width of the rectangle
+ * @param $h (float) Height of the rectangle
+ * @param $link (mixed) URL or identifier returned by AddLink()
+ * @param $spaces (int) number of spaces on the text to link
+ * @public
* @since 1.5
* @see AddLink(), Annotation(), Cell(), Write(), Image()
*/
@@ -5101,14 +5094,14 @@ class TCPDF {
/**
* Puts a markup annotation on a rectangular area of the page.
* !!!!THE ANNOTATION SUPPORT IS NOT YET FULLY IMPLEMENTED !!!!
- * @param float $x Abscissa of the upper-left corner of the rectangle
- * @param float $y Ordinate of the upper-left corner of the rectangle
- * @param float $w Width of the rectangle
- * @param float $h Height of the rectangle
- * @param string $text annotation text or alternate content
- * @param array $opt array of options (see section 8.4 of PDF reference 1.7).
- * @param int $spaces number of spaces on the text to link
- * @access public
+ * @param $x (float) Abscissa of the upper-left corner of the rectangle
+ * @param $y (float) Ordinate of the upper-left corner of the rectangle
+ * @param $w (float) Width of the rectangle
+ * @param $h (float) Height of the rectangle
+ * @param $text (string) annotation text or alternate content
+ * @param $opt (array) array of options (see section 8.4 of PDF reference 1.7).
+ * @param $spaces (int) number of spaces on the text to link
+ * @public
* @since 4.0.018 (2008-08-06)
*/
public function Annotation($x, $y, $w, $h, $text, $opt=array('Subtype'=>'Text'), $spaces=0) {
@@ -5196,7 +5189,7 @@ class TCPDF {
/**
* Embedd the attached files.
* @since 4.4.000 (2008-12-07)
- * @access protected
+ * @protected
* @see Annotation()
*/
protected function _putEmbeddedFiles() {
@@ -5220,23 +5213,23 @@ class TCPDF {
/**
* Prints a text cell at the specified position.
* This method allows to place a string precisely on the page.
- * @param float $x Abscissa of the cell origin
- * @param float $y Ordinate of the cell origin
- * @param string $txt String to print
- * @param int $fstroke outline size in user units (false = disable)
- * @param boolean $fclip if true activate clipping mode (you must call StartTransform() before this function and StopTransform() to stop the clipping tranformation).
- * @param boolean $ffill if true fills the text
- * @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
- * @param int $ln Indicates where the current position should go after the call. Possible values are:
0: to the right (or left for RTL languages)
1: to the beginning of the next line
2: below
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
- * @param string $align Allows to center or align the text. Possible values are:
L or empty string: left align (default value)
C: center
R: right align
J: justify
- * @param boolean $fill Indicates if the cell background must be painted (true) or transparent (false).
- * @param mixed $link URL or identifier returned by AddLink().
- * @param int $stretch font stretch mode:
0 = disabled
1 = horizontal scaling only if text is larger than cell width
2 = forced horizontal scaling to fit cell width
3 = character spacing only if text is larger than cell width
4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
- * @param boolean $ignore_min_height if true ignore automatic minimum height value.
- * @param string $calign cell vertical alignment relative to the specified Y value. Possible values are:
T : cell top
A : font top
L : font baseline
D : font bottom
B : cell bottom
- * @param string $valign text vertical alignment inside the cell. Possible values are:
T : top
C : center
B : bottom
- * @param boolean $rtloff if true uses the page top-left corner as origin of axis for $x and $y initial position.
- * @access public
+ * @param $x (float) Abscissa of the cell origin
+ * @param $y (float) Ordinate of the cell origin
+ * @param $txt (string) String to print
+ * @param $fstroke (int) outline size in user units (false = disable)
+ * @param $fclip (boolean) if true activate clipping mode (you must call StartTransform() before this function and StopTransform() to stop the clipping tranformation).
+ * @param $ffill (boolean) if true fills the text
+ * @param $border (mixed) Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
+ * @param $ln (int) Indicates where the current position should go after the call. Possible values are:
0: to the right (or left for RTL languages)
1: to the beginning of the next line
2: below
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
+ * @param $align (string) Allows to center or align the text. Possible values are:
L or empty string: left align (default value)
C: center
R: right align
J: justify
+ * @param $fill (boolean) Indicates if the cell background must be painted (true) or transparent (false).
+ * @param $link (mixed) URL or identifier returned by AddLink().
+ * @param $stretch (int) font stretch mode:
0 = disabled
1 = horizontal scaling only if text is larger than cell width
2 = forced horizontal scaling to fit cell width
3 = character spacing only if text is larger than cell width
4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
+ * @param $ignore_min_height (boolean) if true ignore automatic minimum height value.
+ * @param $calign (string) cell vertical alignment relative to the specified Y value. Possible values are:
T : cell top
A : font top
L : font baseline
D : font bottom
B : cell bottom
+ * @param $valign (string) text vertical alignment inside the cell. Possible values are:
T : top
C : center
B : bottom
+ * @param $rtloff (boolean) if true uses the page top-left corner as origin of axis for $x and $y initial position.
+ * @public
* @since 1.0
* @see Cell(), Write(), MultiCell(), WriteHTML(), WriteHTMLCell()
*/
@@ -5256,7 +5249,7 @@ class TCPDF {
* The default implementation returns a value according to the mode selected by SetAutoPageBreak().
* This method is called automatically and should not be called directly by the application.
* @return boolean
- * @access public
+ * @public
* @since 1.4
* @see SetAutoPageBreak()
*/
@@ -5280,12 +5273,12 @@ class TCPDF {
/**
* Add page if needed.
- * @param float $h Cell height. Default value: 0.
- * @param mixed $y starting y position, leave empty for current position.
- * @param boolean $addpage if true add a page, otherwise only return the true/false state
+ * @param $h (float) Cell height. Default value: 0.
+ * @param $y (mixed) starting y position, leave empty for current position.
+ * @param $addpage (boolean) if true add a page, otherwise only return the true/false state
* @return boolean true in case of page break, false otherwise.
* @since 3.2.000 (2008-07-01)
- * @access protected
+ * @protected
*/
protected function checkPageBreak($h=0, $y='', $addpage=true) {
if ($this->empty_string($y)) {
@@ -5326,16 +5319,16 @@ class TCPDF {
* Removes SHY characters from text.
* Unicode Data:
*
Name : SOFT HYPHEN, commonly abbreviated as SHY
- *
HTML Entity (decimal): ­
- *
HTML Entity (hex): ­
- *
HTML Entity (named): ­
+ *
HTML Entity (decimal): "­"
+ *
HTML Entity (hex): "­"
+ *
HTML Entity (named): "­"
*
How to type in Microsoft Windows: [Alt +00AD] or [Alt 0173]
*
UTF-8 (hex): 0xC2 0xAD (c2ad)
*
UTF-8 character: chr(194).chr(173)
*
- * @param string $txt input string
+ * @param $txt (string) input string
* @return string without SHY characters.
- * @access public
+ * @public
* @since (4.5.019) 2009-02-28
*/
public function removeSHY($txt='') {
@@ -5349,19 +5342,19 @@ class TCPDF {
/**
* Prints a cell (rectangular area) with optional borders, background color and character string. The upper-left corner of the cell corresponds to the current position. The text can be aligned or centered. After the call, the current position moves to the right or to the next line. It is possible to put a link on the text.
* If automatic page breaking is enabled and the cell goes beyond the limit, a page break is done before outputting.
- * @param float $w Cell width. If 0, the cell extends up to the right margin.
- * @param float $h Cell height. Default value: 0.
- * @param string $txt String to print. Default value: empty string.
- * @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
- * @param int $ln Indicates where the current position should go after the call. Possible values are:
0: to the right (or left for RTL languages)
1: to the beginning of the next line
2: below
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
- * @param string $align Allows to center or align the text. Possible values are:
L or empty string: left align (default value)
C: center
R: right align
J: justify
- * @param boolean $fill Indicates if the cell background must be painted (true) or transparent (false).
- * @param mixed $link URL or identifier returned by AddLink().
- * @param int $stretch font stretch mode:
0 = disabled
1 = horizontal scaling only if text is larger than cell width
2 = forced horizontal scaling to fit cell width
3 = character spacing only if text is larger than cell width
4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
- * @param boolean $ignore_min_height if true ignore automatic minimum height value.
- * @param string $calign cell vertical alignment relative to the specified Y value. Possible values are:
T : cell top
C : center
B : cell bottom
A : font top
L : font baseline
D : font bottom
- * @param string $valign text vertical alignment inside the cell. Possible values are:
T : top
C : center
B : bottom
- * @access public
+ * @param $w (float) Cell width. If 0, the cell extends up to the right margin.
+ * @param $h (float) Cell height. Default value: 0.
+ * @param $txt (string) String to print. Default value: empty string.
+ * @param $border (mixed) Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
+ * @param $ln (int) Indicates where the current position should go after the call. Possible values are:
0: to the right (or left for RTL languages)
1: to the beginning of the next line
2: below
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
+ * @param $align (string) Allows to center or align the text. Possible values are:
L or empty string: left align (default value)
C: center
R: right align
J: justify
+ * @param $fill (boolean) Indicates if the cell background must be painted (true) or transparent (false).
+ * @param $link (mixed) URL or identifier returned by AddLink().
+ * @param $stretch (int) font stretch mode:
0 = disabled
1 = horizontal scaling only if text is larger than cell width
2 = forced horizontal scaling to fit cell width
3 = character spacing only if text is larger than cell width
4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
+ * @param $ignore_min_height (boolean) if true ignore automatic minimum height value.
+ * @param $calign (string) cell vertical alignment relative to the specified Y value. Possible values are:
T : cell top
C : center
B : cell bottom
A : font top
L : font baseline
D : font bottom
+ * @param $valign (string) text vertical alignment inside the cell. Possible values are:
T : top
C : center
B : bottom
+ * @public
* @since 1.0
* @see SetFont(), SetDrawColor(), SetFillColor(), SetTextColor(), SetLineWidth(), AddLink(), Ln(), MultiCell(), Write(), SetAutoPageBreak()
*/
@@ -5384,20 +5377,20 @@ class TCPDF {
/**
* Returns the PDF string code to print a cell (rectangular area) with optional borders, background color and character string. The upper-left corner of the cell corresponds to the current position. The text can be aligned or centered. After the call, the current position moves to the right or to the next line. It is possible to put a link on the text.
* If automatic page breaking is enabled and the cell goes beyond the limit, a page break is done before outputting.
- * @param float $w Cell width. If 0, the cell extends up to the right margin.
- * @param float $h Cell height. Default value: 0.
- * @param string $txt String to print. Default value: empty string.
- * @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
- * @param int $ln Indicates where the current position should go after the call. Possible values are:
0: to the right (or left for RTL languages)
1: to the beginning of the next line
2: below
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
- * @param string $align Allows to center or align the text. Possible values are:
L or empty string: left align (default value)
C: center
R: right align
J: justify
- * @param boolean $fill Indicates if the cell background must be painted (true) or transparent (false).
- * @param mixed $link URL or identifier returned by AddLink().
- * @param int $stretch font stretch mode:
0 = disabled
1 = horizontal scaling only if text is larger than cell width
2 = forced horizontal scaling to fit cell width
3 = character spacing only if text is larger than cell width
4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
- * @param boolean $ignore_min_height if true ignore automatic minimum height value.
- * @param string $calign cell vertical alignment relative to the specified Y value. Possible values are:
T : cell top
C : center
B : cell bottom
A : font top
L : font baseline
D : font bottom
- * @param string $valign text vertical alignment inside the cell. Possible values are:
T : top
M : middle
B : bottom
+ * @param $w (float) Cell width. If 0, the cell extends up to the right margin.
+ * @param $h (float) Cell height. Default value: 0.
+ * @param $txt (string) String to print. Default value: empty string.
+ * @param $border (mixed) Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
+ * @param $ln (int) Indicates where the current position should go after the call. Possible values are:
0: to the right (or left for RTL languages)
1: to the beginning of the next line
2: below
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
+ * @param $align (string) Allows to center or align the text. Possible values are:
L or empty string: left align (default value)
C: center
R: right align
J: justify
+ * @param $fill (boolean) Indicates if the cell background must be painted (true) or transparent (false).
+ * @param $link (mixed) URL or identifier returned by AddLink().
+ * @param $stretch (int) font stretch mode:
0 = disabled
1 = horizontal scaling only if text is larger than cell width
2 = forced horizontal scaling to fit cell width
3 = character spacing only if text is larger than cell width
4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
+ * @param $ignore_min_height (boolean) if true ignore automatic minimum height value.
+ * @param $calign (string) cell vertical alignment relative to the specified Y value. Possible values are:
T : cell top
C : center
B : cell bottom
A : font top
L : font baseline
D : font bottom
+ * @param $valign (string) text vertical alignment inside the cell. Possible values are:
T : top
M : middle
B : bottom
* @return string containing cell code
- * @access protected
+ * @protected
* @since 1.0
* @see Cell()
*/
@@ -5798,14 +5791,13 @@ class TCPDF {
/**
* Returns the code to draw the cell border
- * @param float $x X coordinate.
- * @param float $y Y coordinate.
- * @param float $w Cell width.
- * @param float $h Cell height.
- * @param mixed $brd Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
- * @param string $mode border position respect the square edge: normal: centered; ext: external; int: internal;
+ * @param $x (float) X coordinate.
+ * @param $y (float) Y coordinate.
+ * @param $w (float) Cell width.
+ * @param $h (float) Cell height.
+ * @param $brd (mixed) Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
* @return string containing cell border code
- * @access protected
+ * @protected
* @see SetLineStyle()
* @since 5.7.000 (2010-08-02)
*/
@@ -5991,24 +5983,24 @@ class TCPDF {
* This method allows printing text with line breaks.
* They can be automatic (as soon as the text reaches the right border of the cell) or explicit (via the \n character). As many cells as necessary are output, one below the other.
* Text can be aligned, centered or justified. The cell block can be framed and the background painted.
- * @param float $w Width of cells. If 0, they extend up to the right margin of the page.
- * @param float $h Cell minimum height. The cell extends automatically if needed.
- * @param string $txt String to print
- * @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
- * @param string $align Allows to center or align the text. Possible values are:
L or empty string: left align
C: center
R: right align
J: justification (default value when $ishtml=false)
- * @param boolean $fill Indicates if the cell background must be painted (true) or transparent (false).
- * @param int $ln Indicates where the current position should go after the call. Possible values are:
0: to the right
1: to the beginning of the next line [DEFAULT]
2: below
- * @param float $x x position in user units
- * @param float $y y position in user units
- * @param boolean $reseth if true reset the last cell height (default true).
- * @param int $stretch font stretch mode:
0 = disabled
1 = horizontal scaling only if text is larger than cell width
2 = forced horizontal scaling to fit cell width
3 = character spacing only if text is larger than cell width
4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
- * @param boolean $ishtml set to true if $txt is HTML content (default = false).
- * @param boolean $autopadding if true, uses internal padding and automatically adjust it to account for line width.
- * @param float $maxh maximum height. It should be >= $h and less then remaining space to the bottom of the page, or 0 for disable this feature. This feature works only when $ishtml=false.
- * @param string $valign Vertical alignment of text (requires $maxh = $h > 0). Possible values are:
T: TOP
M: middle
B: bottom
. This feature works only when $ishtml=false.
- * @param boolean $fitcell if true attempt to fit all the text within the cell by reducing the font size.
+ * @param $w (float) Width of cells. If 0, they extend up to the right margin of the page.
+ * @param $h (float) Cell minimum height. The cell extends automatically if needed.
+ * @param $txt (string) String to print
+ * @param $border (mixed) Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
+ * @param $align (string) Allows to center or align the text. Possible values are:
L or empty string: left align
C: center
R: right align
J: justification (default value when $ishtml=false)
+ * @param $fill (boolean) Indicates if the cell background must be painted (true) or transparent (false).
+ * @param $ln (int) Indicates where the current position should go after the call. Possible values are:
0: to the right
1: to the beginning of the next line [DEFAULT]
2: below
+ * @param $x (float) x position in user units
+ * @param $y (float) y position in user units
+ * @param $reseth (boolean) if true reset the last cell height (default true).
+ * @param $stretch (int) font stretch mode:
0 = disabled
1 = horizontal scaling only if text is larger than cell width
2 = forced horizontal scaling to fit cell width
3 = character spacing only if text is larger than cell width
4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
+ * @param $ishtml (boolean) set to true if $txt is HTML content (default = false).
+ * @param $autopadding (boolean) if true, uses internal padding and automatically adjust it to account for line width.
+ * @param $maxh (float) maximum height. It should be >= $h and less then remaining space to the bottom of the page, or 0 for disable this feature. This feature works only when $ishtml=false.
+ * @param $valign (string) Vertical alignment of text (requires $maxh = $h > 0). Possible values are:
T: TOP
M: middle
B: bottom
. This feature works only when $ishtml=false.
+ * @param $fitcell (boolean) if true attempt to fit all the text within the cell by reducing the font size.
* @return int Return the number of cells or 1 for html mode.
- * @access public
+ * @public
* @since 1.3
* @see SetFont(), SetDrawColor(), SetFillColor(), SetTextColor(), SetLineWidth(), Cell(), Write(), SetAutoPageBreak()
*/
@@ -6322,10 +6314,10 @@ class TCPDF {
/**
* Get the border mode accounting for multicell position (opens bottom side of multicell crossing pages)
- * @param mixed $brd Indicates if borders must be drawn around the cell block. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
- * @param string multicell position: 'start', 'middle', 'end'
+ * @param $brd (mixed) Indicates if borders must be drawn around the cell block. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
+ * @param $position (string) multicell position: 'start', 'middle', 'end'
* @return border mode array
- * @access protected
+ * @protected
* @since 4.4.002 (2008-12-09)
*/
protected function getBorderMode($brd, $position='start') {
@@ -6395,15 +6387,15 @@ class TCPDF {
/**
* This method return the estimated number of lines for print a simple text string using Multicell() method.
- * @param string $txt String for calculating his height
- * @param float $w Width of cells. If 0, they extend up to the right margin of the page.
- * @param boolean $reseth if true reset the last cell height (default false).
- * @param boolean $autopadding if true, uses internal padding and automatically adjust it to account for line width (default true).
- * @param float $cellpadding Internal cell padding, if empty uses default cell padding.
- * @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
+ * @param $txt (string) String for calculating his height
+ * @param $w (float) Width of cells. If 0, they extend up to the right margin of the page.
+ * @param $reseth (boolean) if true reset the last cell height (default false).
+ * @param $autopadding (boolean) if true, uses internal padding and automatically adjust it to account for line width (default true).
+ * @param $cellpadding (float) Internal cell padding, if empty uses default cell padding.
+ * @param $border (mixed) Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
* @return float Return the minimal height needed for multicell method for printing the $txt param.
* @author Alexander Escalona Fernández, Nicola Asuni
- * @access public
+ * @public
* @since 4.5.011
*/
public function getNumLines($txt, $w=0, $reseth=false, $autopadding=true, $cellpadding='', $border=0) {
@@ -6465,7 +6457,7 @@ class TCPDF {
/**
* This method return the estimated needed height for print a simple text string in Multicell() method.
* Generally, if you want to know the exact height for a block of content you can use the following alternative technique:
- *
+ * @pre
* // store current object
* $pdf->startTransaction();
* // store starting values
@@ -6498,16 +6490,16 @@ class TCPDF {
* }
* // restore previous object
* $pdf = $pdf->rollbackTransaction();
- *
- * @param float $w Width of cells. If 0, they extend up to the right margin of the page.
- * @param string $txt String for calculating his height
- * @param boolean $reseth if true reset the last cell height (default false).
- * @param boolean $autopadding if true, uses internal padding and automatically adjust it to account for line width (default true).
- * @param float $cellpadding Internal cell padding, if empty uses default cell padding.
- * @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
+ *
+ * @param $w (float) Width of cells. If 0, they extend up to the right margin of the page.
+ * @param $txt (string) String for calculating his height
+ * @param $reseth (boolean) if true reset the last cell height (default false).
+ * @param $autopadding (boolean) if true, uses internal padding and automatically adjust it to account for line width (default true).
+ * @param $cellpadding (float) Internal cell padding, if empty uses default cell padding.
+ * @param $border (mixed) Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
* @return float Return the minimal height needed for multicell method for printing the $txt param.
* @author Nicola Asuni, Alexander Escalona Fernández
- * @access public
+ * @public
*/
public function getStringHeight($w, $txt, $reseth=false, $autopadding=true, $cellpadding='', $border=0) {
// adjust internal padding
@@ -6530,20 +6522,20 @@ class TCPDF {
/**
* This method prints text from the current position.
- * @param float $h Line height
- * @param string $txt String to print
- * @param mixed $link URL or identifier returned by AddLink()
- * @param boolean $fill Indicates if the cell background must be painted (true) or transparent (false).
- * @param string $align Allows to center or align the text. Possible values are:
L or empty string: left align (default value)
C: center
R: right align
J: justify
- * @param boolean $ln if true set cursor at the bottom of the line, otherwise set cursor at the top of the line.
- * @param int $stretch font stretch mode:
0 = disabled
1 = horizontal scaling only if text is larger than cell width
2 = forced horizontal scaling to fit cell width
3 = character spacing only if text is larger than cell width
4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
- * @param boolean $firstline if true prints only the first line and return the remaining string.
- * @param boolean $firstblock if true the string is the starting of a line.
- * @param float $maxh maximum height. The remaining unprinted text will be returned. It should be >= $h and less then remaining space to the bottom of the page, or 0 for disable this feature.
- * @param float $wadj first line width will be reduced by this amount (used in HTML mode).
- * @param array $margin margin array of the parent container
+ * @param $h (float) Line height
+ * @param $txt (string) String to print
+ * @param $link (mixed) URL or identifier returned by AddLink()
+ * @param $fill (boolean) Indicates if the cell background must be painted (true) or transparent (false).
+ * @param $align (string) Allows to center or align the text. Possible values are:
L or empty string: left align (default value)
C: center
R: right align
J: justify
+ * @param $ln (boolean) if true set cursor at the bottom of the line, otherwise set cursor at the top of the line.
+ * @param $stretch (int) font stretch mode:
0 = disabled
1 = horizontal scaling only if text is larger than cell width
2 = forced horizontal scaling to fit cell width
3 = character spacing only if text is larger than cell width
4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
+ * @param $firstline (boolean) if true prints only the first line and return the remaining string.
+ * @param $firstblock (boolean) if true the string is the starting of a line.
+ * @param $maxh (float) maximum height. The remaining unprinted text will be returned. It should be >= $h and less then remaining space to the bottom of the page, or 0 for disable this feature.
+ * @param $wadj (float) first line width will be reduced by this amount (used in HTML mode).
+ * @param $margin (array) margin array of the parent container
* @return mixed Return the number of cells or the remaining string if $firstline = true.
- * @access public
+ * @public
* @since 1.5
*/
public function Write($h, $txt, $link='', $fill=false, $align='', $ln=false, $stretch=0, $firstline=false, $firstblock=false, $maxh=0, $wadj=0, $margin='') {
@@ -6909,7 +6901,7 @@ class TCPDF {
/**
* Returns the remaining width between the current position and margins.
* @return int Return the remaining width
- * @access protected
+ * @protected
*/
protected function getRemainingWidth() {
$this->checkPageRegions(0, $this->x, $this->y);
@@ -6922,11 +6914,11 @@ class TCPDF {
/**
* Extract a slice of the $strarr array and return it as string.
- * @param string $strarr The input array of characters.
- * @param int $start the starting element of $strarr.
- * @param int $end first element that will not be returned.
+ * @param $strarr (string) The input array of characters.
+ * @param $start (int) the starting element of $strarr.
+ * @param $end (int) first element that will not be returned.
* @return Return part of a string
- * @access public
+ * @public
*/
public function UTF8ArrSubString($strarr, $start='', $end='') {
if (strlen($start) == 0) {
@@ -6944,11 +6936,11 @@ class TCPDF {
/**
* Extract a slice of the $uniarr array and return it as string.
- * @param string $uniarr The input array of characters.
- * @param int $start the starting element of $strarr.
- * @param int $end first element that will not be returned.
+ * @param $uniarr (string) The input array of characters.
+ * @param $start (int) the starting element of $strarr.
+ * @param $end (int) first element that will not be returned.
* @return Return part of a string
- * @access public
+ * @public
* @since 4.5.037 (2009-04-07)
*/
public function UniArrSubString($uniarr, $start='', $end='') {
@@ -6967,9 +6959,9 @@ class TCPDF {
/**
* Convert an array of UTF8 values to array of unicode characters
- * @param string $ta The input array of UTF8 values.
+ * @param $ta (string) The input array of UTF8 values.
* @return Return array of unicode characters
- * @access public
+ * @public
* @since 4.5.037 (2009-04-07)
*/
public function UTF8ArrayToUniArray($ta) {
@@ -6978,10 +6970,10 @@ class TCPDF {
/**
* Returns the unicode caracter specified by UTF-8 value
- * @param int $c UTF-8 value
+ * @param $c (int) UTF-8 value
* @return Returns the specified character.
* @author Miguel Perez, Nicola Asuni
- * @access public
+ * @public
* @since 2.3.000 (2008-03-05)
*/
public function unichr($c) {
@@ -7006,8 +6998,8 @@ class TCPDF {
/**
* Return the image type given the file name or array returned by getimagesize() function.
- * @param string $imgfile image file name
- * @param array $iminfo array of image information returned by getimagesize() function.
+ * @param $imgfile (string) image file name
+ * @param $iminfo (array) array of image information returned by getimagesize() function.
* @return string image type
* @since 4.8.017 (2009-11-27)
*/
@@ -7033,12 +7025,12 @@ class TCPDF {
/**
* Set the block dimensions accounting for page breaks and page/column fitting
- * @param float $w width
- * @param float $h height
- * @param float $x X coordinate
- * @param float $y Y coodiante
- * @param boolean $fitonpage if true the block is resized to not exceed page dimensions.
- * @access protected
+ * @param $w (float) width
+ * @param $h (float) height
+ * @param $x (float) X coordinate
+ * @param $y (float) Y coodiante
+ * @param $fitonpage (boolean) if true the block is resized to not exceed page dimensions.
+ * @protected
* @since 5.5.009 (2010-07-05)
*/
protected function fitBlock(&$w, &$h, &$x, &$y, $fitonpage=false) {
@@ -7105,25 +7097,25 @@ class TCPDF {
* The format can be specified explicitly or inferred from the file extension.
* It is possible to put a link on the image.
* Remark: if an image is used several times, only one copy will be embedded in the file.
- * @param string $file Name of the file containing the image or a '@' character followed by the image data string.
- * @param float $x Abscissa of the upper-left corner (LTR) or upper-right corner (RTL).
- * @param float $y Ordinate of the upper-left corner (LTR) or upper-right corner (RTL).
- * @param float $w Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
- * @param float $h Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
- * @param string $type Image format. Possible values are (case insensitive): JPEG and PNG (whitout GD library) and all images supported by GD: GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM;. If not specified, the type is inferred from the file extension.
- * @param mixed $link URL or identifier returned by AddLink().
- * @param string $align Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
- * @param mixed $resize If true resize (reduce) the image to fit $w and $h (requires GD or ImageMagick library); if false do not resize; if 2 force resize in all cases (upscaling and downscaling).
- * @param int $dpi dot-per-inch resolution used on resize
- * @param string $palign Allows to center or align the image on the current line. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
- * @param boolean $ismask true if this image is a mask, false otherwise
- * @param mixed $imgmask image object returned by this function or false
- * @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
- * @param mixed $fitbox If not false scale image dimensions proportionally to fit within the ($w, $h) box. $fitbox can be true or a 2 characters string indicating the image alignment inside the box. The first character indicate the horizontal alignment (L = left, C = center, R = right) the second character indicate the vertical algnment (T = top, M = middle, B = bottom).
- * @param boolean $hidden if true do not display the image.
- * @param boolean $fitonpage if true the image is resized to not exceed page dimensions.
+ * @param $file (string) Name of the file containing the image or a '@' character followed by the image data string.
+ * @param $x (float) Abscissa of the upper-left corner (LTR) or upper-right corner (RTL).
+ * @param $y (float) Ordinate of the upper-left corner (LTR) or upper-right corner (RTL).
+ * @param $w (float) Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
+ * @param $h (float) Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
+ * @param $type (string) Image format. Possible values are (case insensitive): JPEG and PNG (whitout GD library) and all images supported by GD: GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM;. If not specified, the type is inferred from the file extension.
+ * @param $link (mixed) URL or identifier returned by AddLink().
+ * @param $align (string) Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
+ * @param $resize (mixed) If true resize (reduce) the image to fit $w and $h (requires GD or ImageMagick library); if false do not resize; if 2 force resize in all cases (upscaling and downscaling).
+ * @param $dpi (int) dot-per-inch resolution used on resize
+ * @param $palign (string) Allows to center or align the image on the current line. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
+ * @param $ismask (boolean) true if this image is a mask, false otherwise
+ * @param $imgmask (mixed) image object returned by this function or false
+ * @param $border (mixed) Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
+ * @param $fitbox (mixed) If not false scale image dimensions proportionally to fit within the ($w, $h) box. $fitbox can be true or a 2 characters string indicating the image alignment inside the box. The first character indicate the horizontal alignment (L = left, C = center, R = right) the second character indicate the vertical algnment (T = top, M = middle, B = bottom).
+ * @param $hidden (boolean) if true do not display the image.
+ * @param $fitonpage (boolean) if true the image is resized to not exceed page dimensions.
* @return image information
- * @access public
+ * @public
* @since 1.1
*/
public function Image($file, $x='', $y='', $w=0, $h=0, $type='', $link='', $align='', $resize=false, $dpi=300, $palign='', $ismask=false, $imgmask=false, $border=0, $fitbox=false, $hidden=false, $fitonpage=false) {
@@ -7492,7 +7484,7 @@ class TCPDF {
/**
* Sets the current active configuration setting of magic_quotes_runtime (if the set_magic_quotes_runtime function exist)
- * @param boolean $mqr FALSE for off, TRUE for on.
+ * @param $mqr (boolean) FALSE for off, TRUE for on.
* @since 4.6.025 (2009-08-17)
*/
public function set_mqr($mqr) {
@@ -7524,10 +7516,9 @@ class TCPDF {
/**
* Convert the loaded image to a JPEG and then return a structure for the PDF creator.
* This function requires GD library and write access to the directory defined on K_PATH_CACHE constant.
- * @param string $file Image file name.
- * @param image $image Image object.
+ * @param $image (image) Image object.
* return image JPEG image object.
- * @access protected
+ * @protected
*/
protected function _toJPEG($image) {
$tempname = tempnam(K_PATH_CACHE, 'jpg_');
@@ -7542,10 +7533,9 @@ class TCPDF {
/**
* Convert the loaded image to a PNG and then return a structure for the PDF creator.
* This function requires GD library and write access to the directory defined on K_PATH_CACHE constant.
- * @param string $file Image file name.
- * @param image $image Image object.
+ * @param $image (image) Image object.
* return image PNG image object.
- * @access protected
+ * @protected
* @since 4.9.016 (2010-04-20)
*/
protected function _toPNG($image) {
@@ -7566,10 +7556,10 @@ class TCPDF {
/**
* Set the transparency for the given GD image.
- * @param image $new_image GD image object
- * @param image $image GD image object.
+ * @param $new_image (image) GD image object
+ * @param $image (image) GD image object.
* return GD image object.
- * @access protected
+ * @protected
* @since 4.9.016 (2010-04-20)
*/
protected function _setGDImageTransparency($new_image, $image) {
@@ -7589,9 +7579,9 @@ class TCPDF {
/**
* Extract info from a JPEG file without using the GD library.
- * @param string $file image file to parse
+ * @param $file (string) image file to parse
* @return array structure containing the image data
- * @access protected
+ * @protected
*/
protected function _parsejpeg($file) {
$a = getimagesize($file);
@@ -7615,9 +7605,9 @@ class TCPDF {
/**
* Extract info from a PNG file without using the GD library.
- * @param string $file image file to parse
+ * @param $file (string) image file to parse
* @return array structure containing the image data
- * @access protected
+ * @protected
*/
protected function _parsepng($file) {
$f = fopen($file, 'rb');
@@ -7717,11 +7707,11 @@ class TCPDF {
/**
* Binary-safe and URL-safe file read.
* Reads up to length bytes from the file pointer referenced by handle. Reading stops as soon as one of the following conditions is met: length bytes have been read; EOF (end of file) is reached.
- * @param resource $handle
- * @param int $length
+ * @param $handle (resource)
+ * @param $length (int)
* @return Returns the read string or FALSE in case of error.
* @author Nicola Asuni
- * @access protected
+ * @protected
* @since 4.5.027 (2009-03-16)
*/
protected function rfread($handle, $length) {
@@ -7738,21 +7728,21 @@ class TCPDF {
/**
* Extract info from a PNG image with alpha channel using the GD library.
- * @param string $file Name of the file containing the image.
- * @param float $x Abscissa of the upper-left corner.
- * @param float $y Ordinate of the upper-left corner.
- * @param float $wpx Original width of the image in pixels.
- * @param float $hpx original height of the image in pixels.
- * @param float $w Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
- * @param float $h Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
- * @param string $type Image format. Possible values are (case insensitive): JPEG and PNG (whitout GD library) and all images supported by GD: GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM;. If not specified, the type is inferred from the file extension.
- * @param mixed $link URL or identifier returned by AddLink().
- * @param string $align Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
- * @param boolean $resize If true resize (reduce) the image to fit $w and $h (requires GD library).
- * @param int $dpi dot-per-inch resolution used on resize
- * @param string $palign Allows to center or align the image on the current line. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
+ * @param $file (string) Name of the file containing the image.
+ * @param $x (float) Abscissa of the upper-left corner.
+ * @param $y (float) Ordinate of the upper-left corner.
+ * @param $wpx (float) Original width of the image in pixels.
+ * @param $hpx (float) original height of the image in pixels.
+ * @param $w (float) Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
+ * @param $h (float) Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
+ * @param $type (string) Image format. Possible values are (case insensitive): JPEG and PNG (whitout GD library) and all images supported by GD: GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM;. If not specified, the type is inferred from the file extension.
+ * @param $link (mixed) URL or identifier returned by AddLink().
+ * @param $align (string) Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
+ * @param $resize (boolean) If true resize (reduce) the image to fit $w and $h (requires GD library).
+ * @param $dpi (int) dot-per-inch resolution used on resize
+ * @param $palign (string) Allows to center or align the image on the current line. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
* @author Nicola Asuni
- * @access protected
+ * @protected
* @since 4.3.007 (2008-12-04)
* @see Image()
*/
@@ -7813,8 +7803,8 @@ class TCPDF {
/**
* Correct the gamma value to be used with GD library
- * @param float $v the gamma value to be corrected
- * @access protected
+ * @param $v (float) the gamma value to be corrected
+ * @protected
* @since 4.3.007 (2008-12-04)
*/
protected function getGDgamma($v) {
@@ -7824,9 +7814,9 @@ class TCPDF {
/**
* Performs a line break.
* The current abscissa goes back to the left margin and the ordinate increases by the amount passed in parameter.
- * @param float $h The height of the break. By default, the value equals the height of the last printed cell.
- * @param boolean $cell if true add the current left (or right o for RTL) padding to the X coordinate
- * @access public
+ * @param $h (float) The height of the break. By default, the value equals the height of the last printed cell.
+ * @param $cell (boolean) if true add the current left (or right o for RTL) padding to the X coordinate
+ * @public
* @since 1.0
* @see Cell()
*/
@@ -7861,7 +7851,7 @@ class TCPDF {
* Returns the relative X value of current position.
* The value is relative to the left border for LTR languages and to the right border for RTL languages.
* @return float
- * @access public
+ * @public
* @since 1.2
* @see SetX(), GetY(), SetY()
*/
@@ -7877,7 +7867,7 @@ class TCPDF {
/**
* Returns the absolute X value of current position.
* @return float
- * @access public
+ * @public
* @since 1.2
* @see SetX(), GetY(), SetY()
*/
@@ -7888,7 +7878,7 @@ class TCPDF {
/**
* Returns the ordinate of the current position.
* @return float
- * @access public
+ * @public
* @since 1.0
* @see SetY(), GetX(), SetX()
*/
@@ -7899,9 +7889,9 @@ class TCPDF {
/**
* Defines the abscissa of the current position.
* If the passed value is negative, it is relative to the right of the page (or left if language is RTL).
- * @param float $x The value of the abscissa.
- * @param boolean $rtloff if true always uses the page top-left corner as origin of axis.
- * @access public
+ * @param $x (float) The value of the abscissa.
+ * @param $rtloff (boolean) if true always uses the page top-left corner as origin of axis.
+ * @public
* @since 1.2
* @see GetX(), GetY(), SetY(), SetXY()
*/
@@ -7930,10 +7920,10 @@ class TCPDF {
/**
* Moves the current abscissa back to the left margin and sets the ordinate.
* If the passed value is negative, it is relative to the bottom of the page.
- * @param float $y The value of the ordinate.
- * @param bool $resetx if true (default) reset the X position.
- * @param boolean $rtloff if true always uses the page top-left corner as origin of axis.
- * @access public
+ * @param $y (float) The value of the ordinate.
+ * @param $resetx (bool) if true (default) reset the X position.
+ * @param $rtloff (boolean) if true always uses the page top-left corner as origin of axis.
+ * @public
* @since 1.0
* @see GetX(), GetY(), SetY(), SetXY()
*/
@@ -7962,10 +7952,10 @@ class TCPDF {
/**
* Defines the abscissa and ordinate of the current position.
* If the passed values are negative, they are relative respectively to the right and bottom of the page.
- * @param float $x The value of the abscissa.
- * @param float $y The value of the ordinate.
- * @param boolean $rtloff if true always uses the page top-left corner as origin of axis.
- * @access public
+ * @param $x (float) The value of the abscissa.
+ * @param $y (float) The value of the ordinate.
+ * @param $rtloff (boolean) if true always uses the page top-left corner as origin of axis.
+ * @public
* @since 1.2
* @see SetX(), SetY()
*/
@@ -7978,9 +7968,9 @@ class TCPDF {
* Send the document to a given destination: string, local file or browser.
* In the last case, the plug-in may be used (if present) or a download ("Save as" dialog box) may be forced.
* The method first calls Close() if necessary to terminate the document.
- * @param string $name The name of the file when saved. Note that special characters are removed and blanks characters are replaced with the underscore character.
- * @param string $dest Destination where to send the document. It can take one of the following values:
I: send the file inline to the browser (default). The plug-in is used if available. The name given by name is used when one selects the "Save as" option on the link generating the PDF.
D: send to the browser and force a file download with the name given by name.
F: save to a local server file with the name given by name.
S: return the document as a string (name is ignored).
FI: equivalent to F + I option
FD: equivalent to F + D option
E: return the document as base64 mime multi-part email attachment (RFC 2045)
- * @access public
+ * @param $name (string) The name of the file when saved. Note that special characters are removed and blanks characters are replaced with the underscore character.
+ * @param $dest (string) Destination where to send the document. It can take one of the following values:
I: send the file inline to the browser (default). The plug-in is used if available. The name given by name is used when one selects the "Save as" option on the link generating the PDF.
D: send to the browser and force a file download with the name given by name.
F: save to a local server file with the name given by name.
S: return the document as a string (name is ignored).
FI: equivalent to F + I option
FD: equivalent to F + D option
E: return the document as base64 mime multi-part email attachment (RFC 2045)
+ * @public
* @since 1.0
* @see Close()
*/
@@ -8183,9 +8173,9 @@ class TCPDF {
/**
* Unset all class variables except the following critical variables: internal_encoding, state, bufferlen, buffer and diskcache.
- * @param boolean $destroyall if true destroys all class variables, otherwise preserves critical variables.
- * @param boolean $preserve_objcopy if true preserves the objcopy variable
- * @access public
+ * @param $destroyall (boolean) if true destroys all class variables, otherwise preserves critical variables.
+ * @param $preserve_objcopy (boolean) if true preserves the objcopy variable
+ * @public
* @since 4.5.016 (2009-02-24)
*/
public function _destroy($destroyall=false, $preserve_objcopy=false) {
@@ -8214,7 +8204,7 @@ class TCPDF {
/**
* Check for locale-related bug
- * @access protected
+ * @protected
*/
protected function _dochecks() {
//Check for locale-related bug
@@ -8230,7 +8220,7 @@ class TCPDF {
/**
* Return fonts path
* @return string
- * @access protected
+ * @protected
*/
protected function _getfontpath() {
if (!defined('K_PATH_FONTS') AND is_dir(dirname(__FILE__).'/fonts')) {
@@ -8241,7 +8231,7 @@ class TCPDF {
/**
* Output pages.
- * @access protected
+ * @protected
*/
protected function _putpages() {
$nb = $this->numpages;
@@ -8446,8 +8436,8 @@ class TCPDF {
/**
* Output references to page annotations
- * @param int $n page number
- * @access protected
+ * @param $n (int) page number
+ * @protected
* @author Nicola Asuni
* @since 4.7.000 (2008-08-29)
* @deprecated
@@ -8458,9 +8448,9 @@ class TCPDF {
/**
* Get references to page annotations.
- * @param int $n page number
+ * @param $n (int) page number
* @return string
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 5.0.010 (2010-05-17)
*/
@@ -8496,7 +8486,7 @@ class TCPDF {
* Output annotations objects for all pages.
* !!! THIS METHOD IS NOT YET COMPLETED !!!
* See section 12.5 of PDF 32000_2008 reference.
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 4.0.018 (2008-08-06)
*/
@@ -9105,11 +9095,11 @@ class TCPDF {
/**
* Put appearance streams XObject used to define annotation's appearance states
- * @param int $w annotation width
- * @param int $h annotation height
- * @param string $stream appearance stream
+ * @param $w (int) annotation width
+ * @param $h (int) annotation height
+ * @param $stream (string) appearance stream
* @return int object ID
- * @access protected
+ * @protected
* @since 4.8.001 (2009-09-09)
*/
protected function _putAPXObject($w=0, $h=0, $stream='') {
@@ -9146,11 +9136,11 @@ class TCPDF {
/**
* Get ULONG from string (Big Endian 32-bit unsigned integer).
- * @param string $str string from where to extract value
- * @param int $offset point from where to read the data
+ * @param $str (string) string from where to extract value
+ * @param $offset (int) point from where to read the data
* @return int 32 bit value
* @author Nicola Asuni
- * @access protected
+ * @protected
* @since 5.2.000 (2010-06-02)
*/
protected function _getULONG(&$str, &$offset) {
@@ -9161,11 +9151,11 @@ class TCPDF {
/**
* Get USHORT from string (Big Endian 16-bit unsigned integer).
- * @param string $str string from where to extract value
- * @param int $offset point from where to read the data
+ * @param $str (string) string from where to extract value
+ * @param $offset (int) point from where to read the data
* @return int 16 bit value
* @author Nicola Asuni
- * @access protected
+ * @protected
* @since 5.2.000 (2010-06-02)
*/
protected function _getUSHORT(&$str, &$offset) {
@@ -9176,11 +9166,11 @@ class TCPDF {
/**
* Get SHORT from string (Big Endian 16-bit signed integer).
- * @param string $str string from where to extract value
- * @param int $offset point from where to read the data
+ * @param $str (string) string from where to extract value
+ * @param $offset (int) point from where to read the data
* @return int 16 bit value
* @author Nicola Asuni
- * @access protected
+ * @protected
* @since 5.2.000 (2010-06-02)
*/
protected function _getSHORT(&$str, &$offset) {
@@ -9191,11 +9181,11 @@ class TCPDF {
/**
* Get BYTE from string (8-bit unsigned integer).
- * @param string $str string from where to extract value
- * @param int $offset point from where to read the data
+ * @param $str (string) string from where to extract value
+ * @param $offset (int) point from where to read the data
* @return int 8 bit value
* @author Nicola Asuni
- * @access protected
+ * @protected
* @since 5.2.000 (2010-06-02)
*/
protected function _getBYTE(&$str, &$offset) {
@@ -9206,11 +9196,11 @@ class TCPDF {
/**
* Returns a subset of the TrueType font data without the unused glyphs.
- * @param string $font TrueType font data
- * @param array $subsetchars array of used characters (the glyphs to keep)
+ * @param $font (string) TrueType font data
+ * @param $subsetchars (array) array of used characters (the glyphs to keep)
* @return string a subset of TrueType font data without the unused glyphs
* @author Nicola Asuni
- * @access protected
+ * @protected
* @since 5.2.000 (2010-06-02)
*/
protected function _getTrueTypeFontSubset($font, $subsetchars) {
@@ -9537,11 +9527,11 @@ class TCPDF {
/**
* Returs the checksum of a TTF table.
- * @param string $table table to check
- * @param int $length lenght of table in bytes
+ * @param $table (string) table to check
+ * @param $length (int) lenght of table in bytes
* @return int checksum
* @author Nicola Asuni
- * @access protected
+ * @protected
* @since 5.2.000 (2010-06-02)
*/
protected function _getTTFtableChecksum($table, $length) {
@@ -9559,11 +9549,11 @@ class TCPDF {
/**
* Outputs font widths
- * @param array $font font data
- * @param int $cidoffset offset for CID values
+ * @param $font (array) font data
+ * @param $cidoffset (int) offset for CID values
* @return PDF command string for font widths
* @author Nicola Asuni
- * @access protected
+ * @protected
* @since 4.4.000 (2008-12-07)
*/
protected function _putfontwidths($font, $cidoffset=0) {
@@ -9663,7 +9653,7 @@ class TCPDF {
/**
* Output fonts.
* @author Nicola Asuni
- * @access protected
+ * @protected
*/
protected function _putfonts() {
$nf = $this->n;
@@ -9816,8 +9806,8 @@ class TCPDF {
/**
* Adds unicode fonts.
* Based on PDF Reference 1.3 (section 5)
- * @param array $font font data
- * @access protected
+ * @param $font (array) font data
+ * @protected
* @author Nicola Asuni
* @since 1.52.0.TC005 (2005-01-05)
*/
@@ -10203,8 +10193,8 @@ class TCPDF {
/**
* Output CID-0 fonts.
* A Type 0 CIDFont contains glyph descriptions based on the Adobe Type 1 font format
- * @param array $font font data
- * @access protected
+ * @param $font (array) font data
+ * @protected
* @author Andrew Whitehead, Nicola Asuni, Yukihiro Nakadaira
* @since 3.2.000 (2008-06-23)
*/
@@ -10276,7 +10266,7 @@ class TCPDF {
/**
* Output images.
- * @access protected
+ * @protected
*/
protected function _putimages() {
$filter = ($this->compress) ? '/Filter /FlateDecode ' : '';
@@ -10334,7 +10324,7 @@ class TCPDF {
* Output Form XObjects Templates.
* @author Nicola Asuni
* @since 5.8.017 (2010-08-24)
- * @access protected
+ * @protected
* @see startTemplate(), endTemplate(), printTemplate()
*/
protected function _putxobjects() {
@@ -10386,7 +10376,7 @@ class TCPDF {
/**
* Output Spot Colors Resources.
- * @access protected
+ * @protected
* @since 4.0.024 (2008-09-12)
*/
protected function _putspotcolors() {
@@ -10406,7 +10396,7 @@ class TCPDF {
/**
* Return XObjects Dictionary.
* @return string XObjects dictionary
- * @access protected
+ * @protected
* @since 5.8.014 (2010-08-23)
*/
protected function _getxobjectdict() {
@@ -10419,7 +10409,7 @@ class TCPDF {
/**
* Output Resources Dictionary.
- * @access protected
+ * @protected
*/
protected function _putresourcedict() {
$out = $this->_getobj(2)."\n";
@@ -10477,7 +10467,7 @@ class TCPDF {
/**
* Output Resources.
- * @access protected
+ * @protected
*/
protected function _putresources() {
$this->_putextgstates();
@@ -10499,7 +10489,7 @@ class TCPDF {
* Adds some Metadata information (Document Information Dictionary)
* (see Chapter 14.3.3 Document Information Dictionary of PDF32000_2008.pdf Reference)
* @return int object id
- * @access protected
+ * @protected
*/
protected function _putinfo() {
$oid = $this->_newobj();
@@ -10548,7 +10538,7 @@ class TCPDF {
/**
* Output Catalog.
* @return int object id
- * @access protected
+ * @protected
*/
protected function _putcatalog() {
$oid = $this->_newobj();
@@ -10644,7 +10634,7 @@ class TCPDF {
* @return string for viewer preferences
* @author Nicola asuni
* @since 3.1.000 (2008-06-09)
- * @access protected
+ * @protected
*/
protected function _putviewerpreferences() {
$out = '/ViewerPreferences <<';
@@ -10715,7 +10705,7 @@ class TCPDF {
/**
* Output PDF header.
- * @access protected
+ * @protected
*/
protected function _putheader() {
$this->_out('%PDF-'.$this->PDFVersion);
@@ -10723,7 +10713,7 @@ class TCPDF {
/**
* Output end of document (EOF).
- * @access protected
+ * @protected
*/
protected function _enddoc() {
$this->state = 1;
@@ -10792,9 +10782,9 @@ class TCPDF {
/**
* Initialize a new page.
- * @param string $orientation page orientation. Possible values are (case insensitive):
P or PORTRAIT (default)
L or LANDSCAPE
- * @param mixed $format The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
- * @access protected
+ * @param $orientation (string) page orientation. Possible values are (case insensitive):
P or PORTRAIT (default)
L or LANDSCAPE
+ * @param $format (mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
+ * @protected
* @see getPageSizeFromFormat(), setPageFormat()
*/
protected function _beginpage($orientation='', $format='') {
@@ -10839,7 +10829,7 @@ class TCPDF {
/**
* Mark end of page.
- * @access protected
+ * @protected
*/
protected function _endpage() {
$this->setVisibility('all');
@@ -10849,7 +10839,7 @@ class TCPDF {
/**
* Begin a new object and return the object number.
* @return int object number
- * @access protected
+ * @protected
*/
protected function _newobj() {
$this->_out($this->_getobj());
@@ -10858,9 +10848,9 @@ class TCPDF {
/**
* Return the starting object string for the selected object ID.
- * @param int $objid Object ID (leave empty to get a new ID).
+ * @param $objid (int) Object ID (leave empty to get a new ID).
* @return string the starting object string
- * @access protected
+ * @protected
* @since 5.8.009 (2010-08-20)
*/
protected function _getobj($objid='') {
@@ -10874,10 +10864,10 @@ class TCPDF {
/**
* Underline text.
- * @param int $x X coordinate
- * @param int $y Y coordinate
- * @param string $txt text to underline
- * @access protected
+ * @param $x (int) X coordinate
+ * @param $y (int) Y coordinate
+ * @param $txt (string) text to underline
+ * @protected
*/
protected function _dounderline($x, $y, $txt) {
$w = $this->GetStringWidth($txt);
@@ -10886,10 +10876,10 @@ class TCPDF {
/**
* Underline for rectangular text area.
- * @param int $x X coordinate
- * @param int $y Y coordinate
- * @param int $w width to underline
- * @access protected
+ * @param $x (int) X coordinate
+ * @param $y (int) Y coordinate
+ * @param $w (int) width to underline
+ * @protected
* @since 4.8.008 (2009-09-29)
*/
protected function _dounderlinew($x, $y, $w) {
@@ -10899,10 +10889,10 @@ class TCPDF {
/**
* Line through text.
- * @param int $x X coordinate
- * @param int $y Y coordinate
- * @param string $txt text to linethrough
- * @access protected
+ * @param $x (int) X coordinate
+ * @param $y (int) Y coordinate
+ * @param $txt (string) text to linethrough
+ * @protected
*/
protected function _dolinethrough($x, $y, $txt) {
$w = $this->GetStringWidth($txt);
@@ -10911,10 +10901,10 @@ class TCPDF {
/**
* Line through for rectangular text area.
- * @param int $x X coordinate
- * @param int $y Y coordinate
- * @param string $txt text to linethrough
- * @access protected
+ * @param $x (int) X coordinate
+ * @param $y (int) Y coordinate
+ * @param $w (int) line lenght (width)
+ * @protected
* @since 4.9.008 (2009-09-29)
*/
protected function _dolinethroughw($x, $y, $w) {
@@ -10924,10 +10914,10 @@ class TCPDF {
/**
* Overline text.
- * @param int $x X coordinate
- * @param int $y Y coordinate
- * @param string $txt text to overline
- * @access protected
+ * @param $x (int) X coordinate
+ * @param $y (int) Y coordinate
+ * @param $txt (string) text to overline
+ * @protected
* @since 4.9.015 (2010-04-19)
*/
protected function _dooverline($x, $y, $txt) {
@@ -10937,10 +10927,10 @@ class TCPDF {
/**
* Overline for rectangular text area.
- * @param int $x X coordinate
- * @param int $y Y coordinate
- * @param int $w width to overline
- * @access protected
+ * @param $x (int) X coordinate
+ * @param $y (int) Y coordinate
+ * @param $w (int) width to overline
+ * @protected
* @since 4.9.015 (2010-04-19)
*/
protected function _dooverlinew($x, $y, $w) {
@@ -10951,9 +10941,9 @@ class TCPDF {
/**
* Read a 4-byte (32 bit) integer from file.
- * @param string $f file name.
+ * @param $f (string) file name.
* @return 4-byte integer
- * @access protected
+ * @protected
*/
protected function _freadint($f) {
$a = unpack('Ni', fread($f, 4));
@@ -10962,9 +10952,9 @@ class TCPDF {
/**
* Add "\" before "\", "(" and ")"
- * @param string $s string to escape.
+ * @param $s (string) string to escape.
* @return string escaped string.
- * @access protected
+ * @protected
*/
protected function _escape($s) {
// the chr(13) substitution fixes the Bugs item #1421290.
@@ -10973,10 +10963,10 @@ class TCPDF {
/**
* Format a data string for meta information
- * @param string $s data string to escape.
- * @param int $n object ID
+ * @param $s (string) data string to escape.
+ * @param $n (int) object ID
* @return string escaped string.
- * @access protected
+ * @protected
*/
protected function _datastring($s, $n=0) {
if ($n == 0) {
@@ -10988,9 +10978,9 @@ class TCPDF {
/**
* Returns a formatted date for meta information
- * @param int $n object ID
+ * @param $n (int) object ID
* @return string escaped date string.
- * @access protected
+ * @protected
* @since 4.6.028 (2009-08-25)
*/
protected function _datestring($n=0) {
@@ -11000,10 +10990,10 @@ class TCPDF {
/**
* Format a text string for meta information
- * @param string $s string to escape.
- * @param int $n object ID
+ * @param $s (string) string to escape.
+ * @param $n (int) object ID
* @return string escaped string.
- * @access protected
+ * @protected
*/
protected function _textstring($s, $n=0) {
if ($this->isunicode) {
@@ -11016,9 +11006,9 @@ class TCPDF {
/**
* THIS METHOD IS DEPRECATED
* Format a text string
- * @param string $s string to escape.
+ * @param $s (string) string to escape.
* @return string escaped string.
- * @access protected
+ * @protected
* @deprecated
*/
protected function _escapetext($s) {
@@ -11035,9 +11025,9 @@ class TCPDF {
/**
* get raw output stream.
- * @param string $s string to output.
- * @param int $n object reference for encryption mode
- * @access protected
+ * @param $s (string) string to output.
+ * @param $n (int) object reference for encryption mode
+ * @protected
* @author Nicola Asuni
* @since 5.5.000 (2010-06-22)
*/
@@ -11051,9 +11041,9 @@ class TCPDF {
/**
* Format output stream (DEPRECATED).
- * @param string $s string to output.
- * @param int $n object reference for encryption mode
- * @access protected
+ * @param $s (string) string to output.
+ * @param $n (int) object reference for encryption mode
+ * @protected
* @deprecated
*/
protected function _getstream($s, $n=0) {
@@ -11062,9 +11052,9 @@ class TCPDF {
/**
* Output a stream (DEPRECATED).
- * @param string $s string to output.
- * @param int $n object reference for encryption mode
- * @access protected
+ * @param $s (string) string to output.
+ * @param $n (int) object reference for encryption mode
+ * @protected
* @deprecated
*/
protected function _putstream($s, $n=0) {
@@ -11073,8 +11063,8 @@ class TCPDF {
/**
* Output a string to the document.
- * @param string $s string to output.
- * @access protected
+ * @param $s (string) string to output.
+ * @protected
*/
protected function _out($s) {
if ($this->state == 2) {
@@ -11125,9 +11115,9 @@ class TCPDF {
* UTF8-tail = %x80-BF
* ---------------------------------------------------------------------
*
- * @param string $str string to process.
+ * @param $str (string) string to process.
* @return array containing codepoints (UTF-8 characters values)
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 1.53.0.TC005 (2005-01-05)
*/
@@ -11242,13 +11232,13 @@ class TCPDF {
/**
* Converts UTF-8 strings to UTF16-BE.
- * @param string $str string to process.
- * @param boolean $setbom if true set the Byte Order Mark (BOM = 0xFEFF)
+ * @param $str (string) string to process.
+ * @param $setbom (boolean) if true set the Byte Order Mark (BOM = 0xFEFF)
* @return string
- * @access protected
* @author Nicola Asuni
* @since 1.53.0.TC005 (2005-01-05)
- * @uses UTF8StringToArray(), arrUTF8ToUTF16BE()
+ * @see UTF8StringToArray(), arrUTF8ToUTF16BE()
+ * @protected
*/
protected function UTF8ToUTF16BE($str, $setbom=true) {
if (!$this->isunicode) {
@@ -11260,10 +11250,10 @@ class TCPDF {
/**
* Converts UTF-8 strings to Latin1 when using the standard 14 core fonts.
- * @param string $str string to process.
+ * @param $str (string) string to process.
* @return string
* @author Andrew Whitehead, Nicola Asuni
- * @access protected
+ * @protected
* @since 3.2.000 (2008-06-23)
*/
protected function UTF8ToLatin1($str) {
@@ -11289,10 +11279,10 @@ class TCPDF {
/**
* Converts UTF-8 characters array to array of Latin1 characters
- * @param array $unicode array containing UTF-8 unicode values
+ * @param $unicode (array) array containing UTF-8 unicode values
* @return array
* @author Nicola Asuni
- * @access protected
+ * @protected
* @since 4.8.023 (2010-01-15)
*/
protected function UTF8ArrToLatin1($unicode) {
@@ -11345,10 +11335,10 @@ class TCPDF {
* W1 = 110110yyyyyyyyyy
* W2 = 110111xxxxxxxxxx
*
- * @param array $unicode array containing UTF-8 unicode values
- * @param boolean $setbom if true set the Byte Order Mark (BOM = 0xFEFF)
+ * @param $unicode (array) array containing UTF-8 unicode values
+ * @param $setbom (boolean) if true set the Byte Order Mark (BOM = 0xFEFF)
* @return string
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 2.1.000 (2008-01-08)
* @see UTF8ToUTF16BE()
@@ -11382,8 +11372,8 @@ class TCPDF {
/**
* Set header font.
- * @param array $font font
- * @access public
+ * @param $font (array) font
+ * @public
* @since 1.1
*/
public function setHeaderFont($font) {
@@ -11393,7 +11383,7 @@ class TCPDF {
/**
* Get header font.
* @return array()
- * @access public
+ * @public
* @since 4.0.012 (2008-07-24)
*/
public function getHeaderFont() {
@@ -11402,8 +11392,8 @@ class TCPDF {
/**
* Set footer font.
- * @param array $font font
- * @access public
+ * @param $font (array) font
+ * @public
* @since 1.1
*/
public function setFooterFont($font) {
@@ -11413,7 +11403,7 @@ class TCPDF {
/**
* Get Footer font.
* @return array()
- * @access public
+ * @public
* @since 4.0.012 (2008-07-24)
*/
public function getFooterFont() {
@@ -11422,8 +11412,8 @@ class TCPDF {
/**
* Set language array.
- * @param array $language
- * @access public
+ * @param $language (array)
+ * @public
* @since 1.1
*/
public function setLanguageArray($language) {
@@ -11437,7 +11427,7 @@ class TCPDF {
/**
* Returns the PDF data.
- * @access public
+ * @public
*/
public function getPDFData() {
if ($this->state < 3) {
@@ -11448,15 +11438,15 @@ class TCPDF {
/**
* Output anchor link.
- * @param string $url link URL or internal link (i.e.: <a href="#23,4.5">link to page 23 at 4.5 Y position</a>)
- * @param string $name link name
- * @param boolean $fill Indicates if the cell background must be painted (true) or transparent (false).
- * @param boolean $firstline if true prints only the first line and return the remaining string.
- * @param array $color array of RGB text color
- * @param string $style font style (U, D, B, I)
- * @param boolean $firstblock if true the string is the starting of a line.
+ * @param $url (string) link URL or internal link (i.e.: <a href="#23,4.5">link to page 23 at 4.5 Y position</a>)
+ * @param $name (string) link name
+ * @param $fill (boolean) Indicates if the cell background must be painted (true) or transparent (false).
+ * @param $firstline (boolean) if true prints only the first line and return the remaining string.
+ * @param $color (array) array of RGB text color
+ * @param $style (string) font style (U, D, B, I)
+ * @param $firstblock (boolean) if true the string is the starting of a line.
* @return the number of cells used or the remaining text if $firstline = true;
- * @access public
+ * @public
*/
public function addHtmlLink($url, $name, $fill=false, $firstline=false, $color='', $style=-1, $firstblock=false) {
if (!$this->empty_string($url) AND ($url{0} == '#')) {
@@ -11498,9 +11488,9 @@ class TCPDF {
/**
* Returns an array (RGB or CMYK) from an html color name or a six-digit (i.e. #3FE5AA) or three-digit (i.e. #7FF) hexadecimal color representation.
- * @param string $hcolor html color
+ * @param $hcolor (string) html color
* @return array RGB or CMYK color, or false in case of error.
- * @access public
+ * @public
*/
public function convertHTMLColorToDec($hcolor='#FFFFFF') {
$returncolor = false;
@@ -11592,9 +11582,9 @@ class TCPDF {
/**
* Converts pixels to User's Units.
- * @param int $px pixels
+ * @param $px (int) pixels
* @return float value in user's unit
- * @access public
+ * @public
* @see setImageScale(), getImageScale()
*/
public function pixelsToUnits($px) {
@@ -11604,9 +11594,9 @@ class TCPDF {
/**
* Reverse function for htmlentities.
* Convert entities in UTF-8.
- * @param string $text_to_convert Text to convert.
+ * @param $text_to_convert (string) Text to convert.
* @return string converted text string
- * @access public
+ * @public
*/
public function unhtmlentities($text_to_convert) {
return html_entity_decode($text_to_convert, ENT_QUOTES, $this->encoding);
@@ -11616,11 +11606,11 @@ class TCPDF {
/**
* Returns a string containing random data to be used as a seed for encryption methods.
- * @param string $seed starting seed value
+ * @param $seed (string) starting seed value
* @return string containing random data
* @author Nicola Asuni
* @since 5.9.006 (2010-10-19)
- * @access protected
+ * @protected
*/
protected function getRandomSeed($seed='') {
$seed .= microtime();
@@ -11659,9 +11649,9 @@ class TCPDF {
/**
* Compute encryption key depending on object number where the encrypted data is stored.
* This is used for all strings and streams without crypt filter specifier.
- * @param int $n object number
+ * @param $n (int) object number
* @return int object key
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 2.0.000 (2008-01-02)
*/
@@ -11678,10 +11668,10 @@ class TCPDF {
/**
* Encrypt the input string.
- * @param int $n object number
- * @param string $s data string to encrypt
+ * @param $n (int) object number
+ * @param $s (string) data string to encrypt
* @return encrypted string
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 5.0.005 (2010-05-11)
*/
@@ -11709,7 +11699,7 @@ class TCPDF {
/**
* Put encryption on PDF document.
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 2.0.000 (2008-01-02)
*/
@@ -11829,10 +11819,10 @@ class TCPDF {
/**
* Returns the input text encrypted using RC4 algorithm and the specified key.
* RC4 is the standard encryption algorithm used in PDF format
- * @param string $key encryption key
- * @param String $text input text to be encrypted
+ * @param $key (string) encryption key
+ * @param $text (String) input text to be encrypted
* @return String encrypted text
- * @access protected
+ * @protected
* @since 2.0.000 (2008-01-02)
* @author Klemen Vodopivec, Nicola Asuni
*/
@@ -11875,10 +11865,10 @@ class TCPDF {
/**
* Returns the input text exrypted using AES algorithm and the specified key.
* This method requires mcrypt.
- * @param string $key encryption key
- * @param String $text input text to be encrypted
+ * @param $key (string) encryption key
+ * @param $text (String) input text to be encrypted
* @return String encrypted text
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 5.0.005 (2010-05-11)
*/
@@ -11894,9 +11884,9 @@ class TCPDF {
/**
* Encrypts a string using MD5 and returns it's value as a binary string.
- * @param string $str input string
+ * @param $str (string) input string
* @return String MD5 encrypted binary string
- * @access protected
+ * @protected
* @since 2.0.000 (2008-01-02)
* @author Klemen Vodopivec
*/
@@ -11907,7 +11897,7 @@ class TCPDF {
/**
* Compute U value (used for encryption)
* @return string U value
- * @access protected
+ * @protected
* @since 2.0.000 (2008-01-02)
* @author Nicola Asuni
*/
@@ -11940,7 +11930,7 @@ class TCPDF {
/**
* Compute UE value (used for encryption)
* @return string UE value
- * @access protected
+ * @protected
* @since 5.9.006 (2010-10-19)
* @author Nicola Asuni
*/
@@ -11953,7 +11943,7 @@ class TCPDF {
/**
* Compute O value (used for encryption)
* @return string O value
- * @access protected
+ * @protected
* @since 2.0.000 (2008-01-02)
* @author Nicola Asuni
*/
@@ -11991,7 +11981,7 @@ class TCPDF {
/**
* Compute OE value (used for encryption)
* @return string OE value
- * @access protected
+ * @protected
* @since 5.9.006 (2010-10-19)
* @author Nicola Asuni
*/
@@ -12004,7 +11994,7 @@ class TCPDF {
/**
* Convert password for AES-256 encryption mode
* @return string password
- * @access protected
+ * @protected
* @since 5.9.006 (2010-10-19)
* @author Nicola Asuni
*/
@@ -12019,7 +12009,7 @@ class TCPDF {
/**
* Compute encryption key
- * @access protected
+ * @protected
* @since 2.0.000 (2008-01-02)
* @author Nicola Asuni
*/
@@ -12132,9 +12122,9 @@ class TCPDF {
/**
* Return the premission code used on encryption (P value).
- * @param Array $permissions the set of permissions (specify the ones you want to block).
- * @param int $mode encryption strength: 0 = RC4 40 bit; 1 = RC4 128 bit; 2 = AES 128 bit; 3 = AES 256 bit.
- * @access protected
+ * @param $permissions (Array) the set of permissions (specify the ones you want to block).
+ * @param $mode (int) encryption strength: 0 = RC4 40 bit; 1 = RC4 128 bit; 2 = AES 128 bit; 3 = AES 256 bit.
+ * @protected
* @since 5.0.005 (2010-05-12)
* @author Nicola Asuni
*/
@@ -12173,12 +12163,12 @@ class TCPDF {
* Remark: the protection against modification is for people who have the full Acrobat product.
* If you don't set any password, the document will open as usual. If you set a user password, the PDF viewer will ask for it before displaying the document. The master password, if different from the user one, can be used to get full access.
* Note: protecting a document requires to encrypt it, which increases the processing time a lot. This can cause a PHP time-out in some cases, especially if the document contains images or fonts.
- * @param Array $permissions the set of permissions (specify the ones you want to block):
print : Print the document;
modify : Modify the contents of the document by operations other than those controlled by 'fill-forms', 'extract' and 'assemble';
copy : Copy or otherwise extract text and graphics from the document;
annot-forms : Add or modify text annotations, fill in interactive form fields, and, if 'modify' is also set, create or modify interactive form fields (including signature fields);
fill-forms : Fill in existing interactive form fields (including signature fields), even if 'annot-forms' is not specified;
extract : Extract text and graphics (in support of accessibility to users with disabilities or for other purposes);
assemble : Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if 'modify' is not set;
print-high : Print the document to a representation from which a faithful digital copy of the PDF content could be generated. When this is not set, printing is limited to a low-level representation of the appearance, possibly of degraded quality.
owner : (inverted logic - only for public-key) when set permits change of encryption and enables all other permissions.
- * @param String $user_pass user password. Empty by default.
- * @param String $owner_pass owner password. If not specified, a random value is used.
- * @param int $mode encryption strength: 0 = RC4 40 bit; 1 = RC4 128 bit; 2 = AES 128 bit; 3 = AES 256 bit.
- * @param String $pubkeys array of recipients containing public-key certificates ('c') and permissions ('p'). For example: array(array('c' => 'file://../tcpdf.crt', 'p' => array('print')))
- * @access public
+ * @param $permissions (Array) the set of permissions (specify the ones you want to block):
print : Print the document;
modify : Modify the contents of the document by operations other than those controlled by 'fill-forms', 'extract' and 'assemble';
copy : Copy or otherwise extract text and graphics from the document;
annot-forms : Add or modify text annotations, fill in interactive form fields, and, if 'modify' is also set, create or modify interactive form fields (including signature fields);
fill-forms : Fill in existing interactive form fields (including signature fields), even if 'annot-forms' is not specified;
extract : Extract text and graphics (in support of accessibility to users with disabilities or for other purposes);
assemble : Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if 'modify' is not set;
print-high : Print the document to a representation from which a faithful digital copy of the PDF content could be generated. When this is not set, printing is limited to a low-level representation of the appearance, possibly of degraded quality.
owner : (inverted logic - only for public-key) when set permits change of encryption and enables all other permissions.
+ * @param $user_pass (String) user password. Empty by default.
+ * @param $owner_pass (String) owner password. If not specified, a random value is used.
+ * @param $mode (int) encryption strength: 0 = RC4 40 bit; 1 = RC4 128 bit; 2 = AES 128 bit; 3 = AES 256 bit.
+ * @param $pubkeys (String) array of recipients containing public-key certificates ('c') and permissions ('p'). For example: array(array('c' => 'file://../tcpdf.crt', 'p' => array('print')))
+ * @public
* @since 2.0.000 (2008-01-02)
* @author Nicola Asuni
*/
@@ -12271,9 +12261,9 @@ class TCPDF {
/**
* Convert hexadecimal string to string
- * @param string $bs byte-string to convert
+ * @param $bs (string) byte-string to convert
* @return String
- * @access protected
+ * @protected
* @since 5.0.005 (2010-05-12)
* @author Nicola Asuni
*/
@@ -12293,9 +12283,9 @@ class TCPDF {
/**
* Convert string to hexadecimal string (byte string)
- * @param string $s string to convert
+ * @param $s (string) string to convert
* @return byte string
- * @access protected
+ * @protected
* @since 5.0.010 (2010-05-17)
* @author Nicola Asuni
*/
@@ -12310,9 +12300,9 @@ class TCPDF {
/**
* Convert encryption P value to a string of bytes, low-order byte first.
- * @param string $protection 32bit encryption permission value (P value)
+ * @param $protection (string) 32bit encryption permission value (P value)
* @return String
- * @access protected
+ * @protected
* @since 5.0.005 (2010-05-12)
* @author Nicola Asuni
*/
@@ -12333,7 +12323,7 @@ class TCPDF {
* Starts a 2D tranformation saving current graphic state.
* This function must be called before scaling, mirroring, translation, rotation and skewing.
* Use StartTransform() before, and StopTransform() after the transformations to restore the normal behavior.
- * @access public
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12353,7 +12343,7 @@ class TCPDF {
* Stops a 2D tranformation restoring previous graphic state.
* This function must be called after scaling, mirroring, translation, rotation and skewing.
* Use StartTransform() before, and StopTransform() after the transformations to restore the normal behavior.
- * @access public
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12372,10 +12362,10 @@ class TCPDF {
}
/**
* Horizontal Scaling.
- * @param float $s_x scaling factor for width as percent. 0 is not allowed.
- * @param int $x abscissa of the scaling center. Default is current x position
- * @param int $y ordinate of the scaling center. Default is current y position
- * @access public
+ * @param $s_x (float) scaling factor for width as percent. 0 is not allowed.
+ * @param $x (int) abscissa of the scaling center. Default is current x position
+ * @param $y (int) ordinate of the scaling center. Default is current y position
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12385,10 +12375,10 @@ class TCPDF {
/**
* Vertical Scaling.
- * @param float $s_y scaling factor for height as percent. 0 is not allowed.
- * @param int $x abscissa of the scaling center. Default is current x position
- * @param int $y ordinate of the scaling center. Default is current y position
- * @access public
+ * @param $s_y (float) scaling factor for height as percent. 0 is not allowed.
+ * @param $x (int) abscissa of the scaling center. Default is current x position
+ * @param $y (int) ordinate of the scaling center. Default is current y position
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12398,10 +12388,10 @@ class TCPDF {
/**
* Vertical and horizontal proportional Scaling.
- * @param float $s scaling factor for width and height as percent. 0 is not allowed.
- * @param int $x abscissa of the scaling center. Default is current x position
- * @param int $y ordinate of the scaling center. Default is current y position
- * @access public
+ * @param $s (float) scaling factor for width and height as percent. 0 is not allowed.
+ * @param $x (int) abscissa of the scaling center. Default is current x position
+ * @param $y (int) ordinate of the scaling center. Default is current y position
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12411,11 +12401,11 @@ class TCPDF {
/**
* Vertical and horizontal non-proportional Scaling.
- * @param float $s_x scaling factor for width as percent. 0 is not allowed.
- * @param float $s_y scaling factor for height as percent. 0 is not allowed.
- * @param int $x abscissa of the scaling center. Default is current x position
- * @param int $y ordinate of the scaling center. Default is current y position
- * @access public
+ * @param $s_x (float) scaling factor for width as percent. 0 is not allowed.
+ * @param $s_y (float) scaling factor for height as percent. 0 is not allowed.
+ * @param $x (int) abscissa of the scaling center. Default is current x position
+ * @param $y (int) ordinate of the scaling center. Default is current y position
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12447,8 +12437,8 @@ class TCPDF {
/**
* Horizontal Mirroring.
- * @param int $x abscissa of the point. Default is current x position
- * @access public
+ * @param $x (int) abscissa of the point. Default is current x position
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12458,8 +12448,8 @@ class TCPDF {
/**
* Verical Mirroring.
- * @param int $y ordinate of the point. Default is current y position
- * @access public
+ * @param $y (int) ordinate of the point. Default is current y position
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12469,9 +12459,9 @@ class TCPDF {
/**
* Point reflection mirroring.
- * @param int $x abscissa of the point. Default is current x position
- * @param int $y ordinate of the point. Default is current y position
- * @access public
+ * @param $x (int) abscissa of the point. Default is current x position
+ * @param $y (int) ordinate of the point. Default is current y position
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12481,10 +12471,10 @@ class TCPDF {
/**
* Reflection against a straight line through point (x, y) with the gradient angle (angle).
- * @param float $angle gradient angle of the straight line. Default is 0 (horizontal line).
- * @param int $x abscissa of the point. Default is current x position
- * @param int $y ordinate of the point. Default is current y position
- * @access public
+ * @param $angle (float) gradient angle of the straight line. Default is 0 (horizontal line).
+ * @param $x (int) abscissa of the point. Default is current x position
+ * @param $y (int) ordinate of the point. Default is current y position
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12495,8 +12485,8 @@ class TCPDF {
/**
* Translate graphic object horizontally.
- * @param int $t_x movement to the right (or left for RTL)
- * @access public
+ * @param $t_x (int) movement to the right (or left for RTL)
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12506,8 +12496,8 @@ class TCPDF {
/**
* Translate graphic object vertically.
- * @param int $t_y movement to the bottom
- * @access public
+ * @param $t_y (int) movement to the bottom
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12517,9 +12507,9 @@ class TCPDF {
/**
* Translate graphic object horizontally and vertically.
- * @param int $t_x movement to the right
- * @param int $t_y movement to the bottom
- * @access public
+ * @param $t_x (int) movement to the right
+ * @param $t_y (int) movement to the bottom
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12538,10 +12528,10 @@ class TCPDF {
/**
* Rotate object.
- * @param float $angle angle in degrees for counter-clockwise rotation
- * @param int $x abscissa of the rotation center. Default is current x position
- * @param int $y ordinate of the rotation center. Default is current y position
- * @access public
+ * @param $angle (float) angle in degrees for counter-clockwise rotation
+ * @param $x (int) abscissa of the rotation center. Default is current x position
+ * @param $y (int) ordinate of the rotation center. Default is current y position
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12568,10 +12558,10 @@ class TCPDF {
/**
* Skew horizontally.
- * @param float $angle_x angle in degrees between -90 (skew to the left) and 90 (skew to the right)
- * @param int $x abscissa of the skewing center. default is current x position
- * @param int $y ordinate of the skewing center. default is current y position
- * @access public
+ * @param $angle_x (float) angle in degrees between -90 (skew to the left) and 90 (skew to the right)
+ * @param $x (int) abscissa of the skewing center. default is current x position
+ * @param $y (int) ordinate of the skewing center. default is current y position
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12581,10 +12571,10 @@ class TCPDF {
/**
* Skew vertically.
- * @param float $angle_y angle in degrees between -90 (skew to the bottom) and 90 (skew to the top)
- * @param int $x abscissa of the skewing center. default is current x position
- * @param int $y ordinate of the skewing center. default is current y position
- * @access public
+ * @param $angle_y (float) angle in degrees between -90 (skew to the bottom) and 90 (skew to the top)
+ * @param $x (int) abscissa of the skewing center. default is current x position
+ * @param $y (int) ordinate of the skewing center. default is current y position
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12594,11 +12584,11 @@ class TCPDF {
/**
* Skew.
- * @param float $angle_x angle in degrees between -90 (skew to the left) and 90 (skew to the right)
- * @param float $angle_y angle in degrees between -90 (skew to the bottom) and 90 (skew to the top)
- * @param int $x abscissa of the skewing center. default is current x position
- * @param int $y ordinate of the skewing center. default is current y position
- * @access public
+ * @param $angle_x (float) angle in degrees between -90 (skew to the left) and 90 (skew to the right)
+ * @param $angle_y (float) angle in degrees between -90 (skew to the bottom) and 90 (skew to the top)
+ * @param $x (int) abscissa of the skewing center. default is current x position
+ * @param $y (int) ordinate of the skewing center. default is current y position
+ * @public
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12628,8 +12618,8 @@ class TCPDF {
/**
* Apply graphic transformations.
- * @param array $tm transformation matrix
- * @access protected
+ * @param $tm (array) transformation matrix
+ * @protected
* @since 2.1.000 (2008-01-07)
* @see StartTransform(), StopTransform()
*/
@@ -12657,8 +12647,8 @@ class TCPDF {
/**
* Defines the line width. By default, the value equals 0.2 mm. The method can be called before the first page is created and the value is retained from page to page.
- * @param float $width The width.
- * @access public
+ * @param $width (float) The width.
+ * @public
* @since 1.0
* @see Line(), Rect(), Cell(), MultiCell()
*/
@@ -12674,7 +12664,7 @@ class TCPDF {
/**
* Returns the current the line width.
* @return int Line width
- * @access public
+ * @public
* @since 2.1.000 (2008-01-07)
* @see Line(), SetLineWidth()
*/
@@ -12684,7 +12674,7 @@ class TCPDF {
/**
* Set line style.
- * @param array $style Line style. Array with keys among the following:
+ * @param $style (array) Line style. Array with keys among the following:
*
*
width (float): Width of the line in user units.
*
cap (string): Type of cap to put on the line. Possible values are:
@@ -12700,9 +12690,9 @@ class TCPDF {
* the point at which the pattern starts.
*
color (array): Draw color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K).
*
- * @param boolean $ret if true do not send the command.
+ * @param $ret (boolean) if true do not send the command.
* @return string the PDF command
- * @access public
+ * @public
* @since 2.1.000 (2008-01-08)
*/
public function SetLineStyle($style, $ret=false) {
@@ -12763,9 +12753,9 @@ class TCPDF {
/**
* Begin a new subpath by moving the current point to coordinates (x, y), omitting any connecting line segment.
- * @param float $x Abscissa of point.
- * @param float $y Ordinate of point.
- * @access protected
+ * @param $x (float) Abscissa of point.
+ * @param $y (float) Ordinate of point.
+ * @protected
* @since 2.1.000 (2008-01-08)
*/
protected function _outPoint($x, $y) {
@@ -12775,9 +12765,9 @@ class TCPDF {
/**
* Append a straight line segment from the current point to the point (x, y).
* The new current point shall be (x, y).
- * @param float $x Abscissa of end point.
- * @param float $y Ordinate of end point.
- * @access protected
+ * @param $x (float) Abscissa of end point.
+ * @param $y (float) Ordinate of end point.
+ * @protected
* @since 2.1.000 (2008-01-08)
*/
protected function _outLine($x, $y) {
@@ -12786,12 +12776,12 @@ class TCPDF {
/**
* Append a rectangle to the current path as a complete subpath, with lower-left corner (x, y) and dimensions widthand height in user space.
- * @param float $x Abscissa of upper-left corner.
- * @param float $y Ordinate of upper-left corner.
- * @param float $w Width.
- * @param float $h Height.
- * @param string $op options
- * @access protected
+ * @param $x (float) Abscissa of upper-left corner.
+ * @param $y (float) Ordinate of upper-left corner.
+ * @param $w (float) Width.
+ * @param $h (float) Height.
+ * @param $op (string) options
+ * @protected
* @since 2.1.000 (2008-01-08)
*/
protected function _outRect($x, $y, $w, $h, $op) {
@@ -12801,13 +12791,13 @@ class TCPDF {
/**
* Append a cubic Bézier curve to the current path. The curve shall extend from the current point to the point (x3, y3), using (x1, y1) and (x2, y2) as the Bézier control points.
* The new current point shall be (x3, y3).
- * @param float $x1 Abscissa of control point 1.
- * @param float $y1 Ordinate of control point 1.
- * @param float $x2 Abscissa of control point 2.
- * @param float $y2 Ordinate of control point 2.
- * @param float $x3 Abscissa of end point.
- * @param float $y3 Ordinate of end point.
- * @access protected
+ * @param $x1 (float) Abscissa of control point 1.
+ * @param $y1 (float) Ordinate of control point 1.
+ * @param $x2 (float) Abscissa of control point 2.
+ * @param $y2 (float) Ordinate of control point 2.
+ * @param $x3 (float) Abscissa of end point.
+ * @param $y3 (float) Ordinate of end point.
+ * @protected
* @since 2.1.000 (2008-01-08)
*/
protected function _outCurve($x1, $y1, $x2, $y2, $x3, $y3) {
@@ -12817,11 +12807,11 @@ class TCPDF {
/**
* Append a cubic Bézier curve to the current path. The curve shall extend from the current point to the point (x3, y3), using the current point and (x2, y2) as the Bézier control points.
* The new current point shall be (x3, y3).
- * @param float $x2 Abscissa of control point 2.
- * @param float $y2 Ordinate of control point 2.
- * @param float $x3 Abscissa of end point.
- * @param float $y3 Ordinate of end point.
- * @access protected
+ * @param $x2 (float) Abscissa of control point 2.
+ * @param $y2 (float) Ordinate of control point 2.
+ * @param $x3 (float) Abscissa of end point.
+ * @param $y3 (float) Ordinate of end point.
+ * @protected
* @since 4.9.019 (2010-04-26)
*/
protected function _outCurveV($x2, $y2, $x3, $y3) {
@@ -12831,13 +12821,11 @@ class TCPDF {
/**
* Append a cubic Bézier curve to the current path. The curve shall extend from the current point to the point (x3, y3), using (x1, y1) and (x3, y3) as the Bézier control points.
* The new current point shall be (x3, y3).
- * @param float $x1 Abscissa of control point 1.
- * @param float $y1 Ordinate of control point 1.
- * @param float $x2 Abscissa of control point 2.
- * @param float $y2 Ordinate of control point 2.
- * @param float $x3 Abscissa of end point.
- * @param float $y3 Ordinate of end point.
- * @access protected
+ * @param $x1 (float) Abscissa of control point 1.
+ * @param $y1 (float) Ordinate of control point 1.
+ * @param $x3 (float) Abscissa of end point.
+ * @param $y3 (float) Ordinate of end point.
+ * @protected
* @since 2.1.000 (2008-01-08)
*/
protected function _outCurveY($x1, $y1, $x3, $y3) {
@@ -12846,12 +12834,12 @@ class TCPDF {
/**
* Draws a line between two points.
- * @param float $x1 Abscissa of first point.
- * @param float $y1 Ordinate of first point.
- * @param float $x2 Abscissa of second point.
- * @param float $y2 Ordinate of second point.
- * @param array $style Line style. Array like for {@link SetLineStyle SetLineStyle}. Default value: default line style (empty array).
- * @access public
+ * @param $x1 (float) Abscissa of first point.
+ * @param $y1 (float) Ordinate of first point.
+ * @param $x2 (float) Abscissa of second point.
+ * @param $y2 (float) Ordinate of second point.
+ * @param $style (array) Line style. Array like for SetLineStyle(). Default value: default line style (empty array).
+ * @public
* @since 1.0
* @see SetLineWidth(), SetDrawColor(), SetLineStyle()
*/
@@ -12866,20 +12854,20 @@ class TCPDF {
/**
* Draws a rectangle.
- * @param float $x Abscissa of upper-left corner.
- * @param float $y Ordinate of upper-left corner.
- * @param float $w Width.
- * @param float $h Height.
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param array $border_style Border style of rectangle. Array with keys among the following:
+ * @param $x (float) Abscissa of upper-left corner.
+ * @param $y (float) Ordinate of upper-left corner.
+ * @param $w (float) Width.
+ * @param $h (float) Height.
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $border_style (array) Border style of rectangle. Array with keys among the following:
*
- *
all: Line style of all borders. Array like for {@link SetLineStyle SetLineStyle}.
- *
L, T, R, B or combinations: Line style of left, top, right or bottom border. Array like for {@link SetLineStyle SetLineStyle}.
+ *
all: Line style of all borders. Array like for SetLineStyle().
+ *
L, T, R, B or combinations: Line style of left, top, right or bottom border. Array like for SetLineStyle().
*
* If a key is not present or is null, not draws the border. Default value: default line style (empty array).
- * @param array $border_style Border style of rectangle. Array like for {@link SetLineStyle SetLineStyle}. Default value: default line style (empty array).
- * @param array $fill_color Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
- * @access public
+ * @param $border_style (array) Border style of rectangle. Array like for SetLineStyle(). Default value: default line style (empty array).
+ * @param $fill_color (array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
+ * @public
* @since 1.0
* @see SetLineStyle()
*/
@@ -12923,18 +12911,18 @@ class TCPDF {
* Draws a Bezier curve.
* The Bezier curve is a tangent to the line between the control points at
* either end of the curve.
- * @param float $x0 Abscissa of start point.
- * @param float $y0 Ordinate of start point.
- * @param float $x1 Abscissa of control point 1.
- * @param float $y1 Ordinate of control point 1.
- * @param float $x2 Abscissa of control point 2.
- * @param float $y2 Ordinate of control point 2.
- * @param float $x3 Abscissa of end point.
- * @param float $y3 Ordinate of end point.
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param array $line_style Line style of curve. Array like for {@link SetLineStyle SetLineStyle}. Default value: default line style (empty array).
- * @param array $fill_color Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
- * @access public
+ * @param $x0 (float) Abscissa of start point.
+ * @param $y0 (float) Ordinate of start point.
+ * @param $x1 (float) Abscissa of control point 1.
+ * @param $y1 (float) Ordinate of control point 1.
+ * @param $x2 (float) Abscissa of control point 2.
+ * @param $y2 (float) Ordinate of control point 2.
+ * @param $x3 (float) Abscissa of end point.
+ * @param $y3 (float) Ordinate of end point.
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $line_style (array) Line style of curve. Array like for SetLineStyle(). Default value: default line style (empty array).
+ * @param $fill_color (array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
+ * @public
* @see SetLineStyle()
* @since 2.1.000 (2008-01-08)
*/
@@ -12955,13 +12943,13 @@ class TCPDF {
* Draws a poly-Bezier curve.
* Each Bezier curve segment is a tangent to the line between the control points at
* either end of the curve.
- * @param float $x0 Abscissa of start point.
- * @param float $y0 Ordinate of start point.
- * @param float $segments An array of bezier descriptions. Format: array(x1, y1, x2, y2, x3, y3).
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param array $line_style Line style of curve. Array like for {@link SetLineStyle SetLineStyle}. Default value: default line style (empty array).
- * @param array $fill_color Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
- * @access public
+ * @param $x0 (float) Abscissa of start point.
+ * @param $y0 (float) Ordinate of start point.
+ * @param $segments (float) An array of bezier descriptions. Format: array(x1, y1, x2, y2, x3, y3).
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $line_style (array) Line style of curve. Array like for SetLineStyle(). Default value: default line style (empty array).
+ * @param $fill_color (array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
+ * @public
* @see SetLineStyle()
* @since 3.0008 (2008-05-12)
*/
@@ -12987,19 +12975,19 @@ class TCPDF {
/**
* Draws an ellipse.
* An ellipse is formed from n Bezier curves.
- * @param float $x0 Abscissa of center point.
- * @param float $y0 Ordinate of center point.
- * @param float $rx Horizontal radius.
- * @param float $ry Vertical radius (if ry = 0 then is a circle, see {@link Circle Circle}). Default value: 0.
- * @param float $angle: Angle oriented (anti-clockwise). Default value: 0.
- * @param float $astart: Angle start of draw line. Default value: 0.
- * @param float $afinish: Angle finish of draw line. Default value: 360.
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param array $line_style Line style of ellipse. Array like for {@link SetLineStyle SetLineStyle}. Default value: default line style (empty array).
- * @param array $fill_color Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
- * @param integer $nc Number of curves used to draw a 90 degrees portion of ellipse.
+ * @param $x0 (float) Abscissa of center point.
+ * @param $y0 (float) Ordinate of center point.
+ * @param $rx (float) Horizontal radius.
+ * @param $ry (float) Vertical radius (if ry = 0 then is a circle, see Circle()). Default value: 0.
+ * @param $angle: (float) Angle oriented (anti-clockwise). Default value: 0.
+ * @param $astart: (float) Angle start of draw line. Default value: 0.
+ * @param $afinish: (float) Angle finish of draw line. Default value: 360.
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $line_style (array) Line style of ellipse. Array like for SetLineStyle(). Default value: default line style (empty array).
+ * @param $fill_color (array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
+ * @param $nc (integer) Number of curves used to draw a 90 degrees portion of ellipse.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 2.1.000 (2008-01-08)
*/
public function Ellipse($x0, $y0, $rx, $ry='', $angle=0, $astart=0, $afinish=360, $style='', $line_style=array(), $fill_color=array(), $nc=2) {
@@ -13023,20 +13011,20 @@ class TCPDF {
/**
* Append an elliptical arc to the current path.
* An ellipse is formed from n Bezier curves.
- * @param float $xc Abscissa of center point.
- * @param float $yc Ordinate of center point.
- * @param float $rx Horizontal radius.
- * @param float $ry Vertical radius (if ry = 0 then is a circle, see {@link Circle Circle}). Default value: 0.
- * @param float $xang: Angle between the X-axis and the major axis of the ellipse. Default value: 0.
- * @param float $angs: Angle start of draw line. Default value: 0.
- * @param float $angf: Angle finish of draw line. Default value: 360.
- * @param boolean $pie if true do not mark the border point (used to draw pie sectors).
- * @param integer $nc Number of curves used to draw a 90 degrees portion of ellipse.
- * @param boolean $startpoint if true output a starting point
- * @param boolean $ccw if true draws in counter-clockwise
+ * @param $xc (float) Abscissa of center point.
+ * @param $yc (float) Ordinate of center point.
+ * @param $rx (float) Horizontal radius.
+ * @param $ry (float) Vertical radius (if ry = 0 then is a circle, see Circle()). Default value: 0.
+ * @param $xang: (float) Angle between the X-axis and the major axis of the ellipse. Default value: 0.
+ * @param $angs: (float) Angle start of draw line. Default value: 0.
+ * @param $angf: (float) Angle finish of draw line. Default value: 360.
+ * @param $pie (boolean) if true do not mark the border point (used to draw pie sectors).
+ * @param $nc (integer) Number of curves used to draw a 90 degrees portion of ellipse.
+ * @param $startpoint (boolean) if true output a starting point
+ * @param $ccw (boolean) if true draws in counter-clockwise
* @return array bounding box coordinates (x min, y min, x max, y max)
* @author Nicola Asuni
- * @access protected
+ * @protected
* @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) {
@@ -13149,16 +13137,16 @@ class TCPDF {
/**
* Draws a circle.
* A circle is formed from n Bezier curves.
- * @param float $x0 Abscissa of center point.
- * @param float $y0 Ordinate of center point.
- * @param float $r Radius.
- * @param float $angstr: Angle start of draw line. Default value: 0.
- * @param float $angend: Angle finish of draw line. Default value: 360.
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param array $line_style Line style of circle. Array like for {@link SetLineStyle SetLineStyle}. Default value: default line style (empty array).
- * @param array $fill_color Fill color. Format: array(red, green, blue). Default value: default color (empty array).
- * @param integer $nc Number of curves used to draw a 90 degrees portion of circle.
- * @access public
+ * @param $x0 (float) Abscissa of center point.
+ * @param $y0 (float) Ordinate of center point.
+ * @param $r (float) Radius.
+ * @param $angstr: (float) Angle start of draw line. Default value: 0.
+ * @param $angend: (float) Angle finish of draw line. Default value: 360.
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $line_style (array) Line style of circle. Array like for SetLineStyle(). Default value: default line style (empty array).
+ * @param $fill_color (array) Fill color. Format: array(red, green, blue). Default value: default color (empty array).
+ * @param $nc (integer) Number of curves used to draw a 90 degrees portion of circle.
+ * @public
* @since 2.1.000 (2008-01-08)
*/
public function Circle($x0, $y0, $r, $angstr=0, $angend=360, $style='', $line_style=array(), $fill_color=array(), $nc=2) {
@@ -13167,18 +13155,17 @@ class TCPDF {
/**
* Draws a polygonal line
- * @param array $p Points 0 to ($np - 1). Array with values (x0, y0, x1, y1,..., x(np-1), y(np - 1))
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param array $line_style Line style of polygon. Array with keys among the following:
+ * @param $p (array) Points 0 to ($np - 1). Array with values (x0, y0, x1, y1,..., x(np-1), y(np - 1))
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $line_style (array) Line style of polygon. Array with keys among the following:
*
- *
all: Line style of all lines. Array like for {@link SetLineStyle SetLineStyle}.
- *
0 to ($np - 1): Line style of each line. Array like for {@link SetLineStyle SetLineStyle}.
+ *
all: Line style of all lines. Array like for SetLineStyle().
+ *
0 to ($np - 1): Line style of each line. Array like for SetLineStyle().
*
* If a key is not present or is null, not draws the line. Default value is default line style (empty array).
- * @param array $fill_color Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
- * @param boolean $closed if true the polygon is closes, otherwise will remain open
- * @access public
+ * @param $fill_color (array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
* @since 4.8.003 (2009-09-15)
+ * @public
*/
public function PolyLine($p, $style='', $line_style=array(), $fill_color=array()) {
$this->Polygon($p, $style, $line_style, $fill_color, false);
@@ -13186,17 +13173,17 @@ class TCPDF {
/**
* Draws a polygon.
- * @param array $p Points 0 to ($np - 1). Array with values (x0, y0, x1, y1,..., x(np-1), y(np - 1))
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param array $line_style Line style of polygon. Array with keys among the following:
+ * @param $p (array) Points 0 to ($np - 1). Array with values (x0, y0, x1, y1,..., x(np-1), y(np - 1))
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $line_style (array) Line style of polygon. Array with keys among the following:
*
- *
all: Line style of all lines. Array like for {@link SetLineStyle SetLineStyle}.
- *
0 to ($np - 1): Line style of each line. Array like for {@link SetLineStyle SetLineStyle}.
+ *
all: Line style of all lines. Array like for SetLineStyle().
+ *
0 to ($np - 1): Line style of each line. Array like for SetLineStyle().
*
* If a key is not present or is null, not draws the line. Default value is default line style (empty array).
- * @param array $fill_color Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
- * @param boolean $closed if true the polygon is closes, otherwise will remain open
- * @access public
+ * @param $fill_color (array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
+ * @param $closed (boolean) if true the polygon is closes, otherwise will remain open
+ * @public
* @since 2.1.000 (2008-01-08)
*/
public function Polygon($p, $style='', $line_style=array(), $fill_color=array(), $closed=true) {
@@ -13270,21 +13257,21 @@ class TCPDF {
/**
* Draws a regular polygon.
- * @param float $x0 Abscissa of center point.
- * @param float $y0 Ordinate of center point.
- * @param float $r: Radius of inscribed circle.
- * @param integer $ns Number of sides.
- * @param float $angle Angle oriented (anti-clockwise). Default value: 0.
- * @param boolean $draw_circle Draw inscribed circle or not. Default value: false.
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param array $line_style Line style of polygon sides. Array with keys among the following:
+ * @param $x0 (float) Abscissa of center point.
+ * @param $y0 (float) Ordinate of center point.
+ * @param $r: (float) Radius of inscribed circle.
+ * @param $ns (integer) Number of sides.
+ * @param $angle (float) Angle oriented (anti-clockwise). Default value: 0.
+ * @param $draw_circle (boolean) Draw inscribed circle or not. Default value: false.
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $line_style (array) Line style of polygon sides. Array with keys among the following:
*
- *
all: Line style of all sides. Array like for {@link SetLineStyle SetLineStyle}.
- *
0 to ($ns - 1): Line style of each side. Array like for {@link SetLineStyle SetLineStyle}.
+ *
all: Line style of all sides. Array like for SetLineStyle().
+ *
0 to ($ns - 1): Line style of each side. Array like for SetLineStyle().
*
* If a key is not present or is null, not draws the side. Default value is default line style (empty array).
- * @param array $fill_color Fill color. Format: array(red, green, blue). Default value: default color (empty array).
- * @param string $circle_style Style of rendering of inscribed circle (if draws). Possible values are:
+ * @param $fill_color (array) Fill color. Format: array(red, green, blue). Default value: default color (empty array).
+ * @param $circle_style (string) Style of rendering of inscribed circle (if draws). Possible values are:
*
*
D or empty string: Draw (default).
*
F: Fill.
@@ -13292,9 +13279,9 @@ class TCPDF {
*
CNZ: Clipping mode (using the even-odd rule to determine which regions lie inside the clipping path).
*
CEO: Clipping mode (using the nonzero winding number rule to determine which regions lie inside the clipping path).
*
- * @param array $circle_outLine_style Line style of inscribed circle (if draws). Array like for {@link SetLineStyle SetLineStyle}. Default value: default line style (empty array).
- * @param array $circle_fill_color Fill color of inscribed circle (if draws). Format: array(red, green, blue). Default value: default color (empty array).
- * @access public
+ * @param $circle_outLine_style (array) Line style of inscribed circle (if draws). Array like for SetLineStyle(). Default value: default line style (empty array).
+ * @param $circle_fill_color (array) Fill color of inscribed circle (if draws). Format: array(red, green, blue). Default value: default color (empty array).
+ * @public
* @since 2.1.000 (2008-01-08)
*/
public function RegularPolygon($x0, $y0, $r, $ns, $angle=0, $draw_circle=false, $style='', $line_style=array(), $fill_color=array(), $circle_style='', $circle_outLine_style=array(), $circle_fill_color=array()) {
@@ -13316,23 +13303,23 @@ class TCPDF {
/**
* Draws a star polygon
- * @param float $x0 Abscissa of center point.
- * @param float $y0 Ordinate of center point.
- * @param float $r Radius of inscribed circle.
- * @param integer $nv Number of vertices.
- * @param integer $ng Number of gap (if ($ng % $nv = 1) then is a regular polygon).
- * @param float $angle: Angle oriented (anti-clockwise). Default value: 0.
- * @param boolean $draw_circle: Draw inscribed circle or not. Default value is false.
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param array $line_style Line style of polygon sides. Array with keys among the following:
+ * @param $x0 (float) Abscissa of center point.
+ * @param $y0 (float) Ordinate of center point.
+ * @param $r (float) Radius of inscribed circle.
+ * @param $nv (integer) Number of vertices.
+ * @param $ng (integer) Number of gap (if ($ng % $nv = 1) then is a regular polygon).
+ * @param $angle: (float) Angle oriented (anti-clockwise). Default value: 0.
+ * @param $draw_circle: (boolean) Draw inscribed circle or not. Default value is false.
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $line_style (array) Line style of polygon sides. Array with keys among the following:
*
*
all: Line style of all sides. Array like for
- * {@link SetLineStyle SetLineStyle}.
- *
0 to (n - 1): Line style of each side. Array like for {@link SetLineStyle SetLineStyle}.
+ * SetLineStyle().
+ *
0 to (n - 1): Line style of each side. Array like for SetLineStyle().
*
* If a key is not present or is null, not draws the side. Default value is default line style (empty array).
- * @param array $fill_color Fill color. Format: array(red, green, blue). Default value: default color (empty array).
- * @param string $circle_style Style of rendering of inscribed circle (if draws). Possible values are:
+ * @param $fill_color (array) Fill color. Format: array(red, green, blue). Default value: default color (empty array).
+ * @param $circle_style (string) Style of rendering of inscribed circle (if draws). Possible values are:
*
*
D or empty string: Draw (default).
*
F: Fill.
@@ -13340,9 +13327,9 @@ class TCPDF {
*
CNZ: Clipping mode (using the even-odd rule to determine which regions lie inside the clipping path).
*
CEO: Clipping mode (using the nonzero winding number rule to determine which regions lie inside the clipping path).
*
- * @param array $circle_outLine_style Line style of inscribed circle (if draws). Array like for {@link SetLineStyle SetLineStyle}. Default value: default line style (empty array).
- * @param array $circle_fill_color Fill color of inscribed circle (if draws). Format: array(red, green, blue). Default value: default color (empty array).
- * @access public
+ * @param $circle_outLine_style (array) Line style of inscribed circle (if draws). Array like for SetLineStyle(). Default value: default line style (empty array).
+ * @param $circle_fill_color (array) Fill color of inscribed circle (if draws). Format: array(red, green, blue). Default value: default color (empty array).
+ * @public
* @since 2.1.000 (2008-01-08)
*/
public function StarPolygon($x0, $y0, $r, $nv, $ng, $angle=0, $draw_circle=false, $style='', $line_style=array(), $fill_color=array(), $circle_style='', $circle_outLine_style=array(), $circle_fill_color=array()) {
@@ -13375,16 +13362,16 @@ class TCPDF {
/**
* Draws a rounded rectangle.
- * @param float $x Abscissa of upper-left corner.
- * @param float $y Ordinate of upper-left corner.
- * @param float $w Width.
- * @param float $h Height.
- * @param float $r the radius of the circle used to round off the corners of the rectangle.
- * @param string $round_corner Draws rounded corner or not. String with a 0 (not rounded i-corner) or 1 (rounded i-corner) in i-position. Positions are, in order and begin to 0: top left, top right, bottom right and bottom left. Default value: all rounded corner ("1111").
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param array $border_style Border style of rectangle. Array like for {@link SetLineStyle SetLineStyle}. Default value: default line style (empty array).
- * @param array $fill_color Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
- * @access public
+ * @param $x (float) Abscissa of upper-left corner.
+ * @param $y (float) Ordinate of upper-left corner.
+ * @param $w (float) Width.
+ * @param $h (float) Height.
+ * @param $r (float) the radius of the circle used to round off the corners of the rectangle.
+ * @param $round_corner (string) Draws rounded corner or not. String with a 0 (not rounded i-corner) or 1 (rounded i-corner) in i-position. Positions are, in order and begin to 0: top left, top right, bottom right and bottom left. Default value: all rounded corner ("1111").
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $border_style (array) Border style of rectangle. Array like for SetLineStyle(). Default value: default line style (empty array).
+ * @param $fill_color (array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
+ * @public
* @since 2.1.000 (2008-01-08)
*/
public function RoundedRect($x, $y, $w, $h, $r, $round_corner='1111', $style='', $border_style=array(), $fill_color=array()) {
@@ -13393,17 +13380,17 @@ class TCPDF {
/**
* Draws a rounded rectangle.
- * @param float $x Abscissa of upper-left corner.
- * @param float $y Ordinate of upper-left corner.
- * @param float $w Width.
- * @param float $h Height.
- * @param float $rx the x-axis radius of the ellipse used to round off the corners of the rectangle.
- * @param float $ry the y-axis radius of the ellipse used to round off the corners of the rectangle.
- * @param string $round_corner Draws rounded corner or not. String with a 0 (not rounded i-corner) or 1 (rounded i-corner) in i-position. Positions are, in order and begin to 0: top left, top right, bottom right and bottom left. Default value: all rounded corner ("1111").
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param array $border_style Border style of rectangle. Array like for {@link SetLineStyle SetLineStyle}. Default value: default line style (empty array).
- * @param array $fill_color Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
- * @access public
+ * @param $x (float) Abscissa of upper-left corner.
+ * @param $y (float) Ordinate of upper-left corner.
+ * @param $w (float) Width.
+ * @param $h (float) Height.
+ * @param $rx (float) the x-axis radius of the ellipse used to round off the corners of the rectangle.
+ * @param $ry (float) the y-axis radius of the ellipse used to round off the corners of the rectangle.
+ * @param $round_corner (string) Draws rounded corner or not. String with a 0 (not rounded i-corner) or 1 (rounded i-corner) in i-position. Positions are, in order and begin to 0: top left, top right, bottom right and bottom left. Default value: all rounded corner ("1111").
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $border_style (array) Border style of rectangle. Array like for SetLineStyle(). Default value: default line style (empty array).
+ * @param $fill_color (array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
+ * @public
* @since 4.9.019 (2010-04-22)
*/
public function RoundedRectXY($x, $y, $w, $h, $rx, $ry, $round_corner='1111', $style='', $border_style=array(), $fill_color=array()) {
@@ -13463,13 +13450,13 @@ class TCPDF {
/**
* Draws a grahic arrow.
- * @param float $x0 Abscissa of first point.
- * @param float $y0 Ordinate of first point.
- * @param float $x0 Abscissa of second point.
- * @param float $y1 Ordinate of second point.
- * @param int $head_style (0 = draw only arrowhead arms, 1 = draw closed arrowhead, but no fill, 2 = closed and filled arrowhead, 3 = filled arrowhead)
- * @param float $arm_size length of arrowhead arms
- * @param int $arm_angle angle between an arm and the shaft
+ * @param $x0 (float) Abscissa of first point.
+ * @param $y0 (float) Ordinate of first point.
+ * @param $x1 (float) Abscissa of second point.
+ * @param $y1 (float) Ordinate of second point.
+ * @param $head_style (int) (0 = draw only arrowhead arms, 1 = draw closed arrowhead, but no fill, 2 = closed and filled arrowhead, 3 = filled arrowhead)
+ * @param $arm_size (float) length of arrowhead arms
+ * @param $arm_angle (int) angle between an arm and the shaft
* @author Piotr Galecki, Nicola Asuni, Andy Meier
* @since 4.6.018 (2009-07-10)
*/
@@ -13530,11 +13517,11 @@ class TCPDF {
/**
* Reverse the RLT substrings using the Bidirectional Algorithm (http://unicode.org/reports/tr9/).
- * @param string $str string to manipulate.
- * @param bool $setbom if true set the Byte Order Mark (BOM = 0xFEFF)
- * @param bool $forcertl if true forces RTL text direction
+ * @param $str (string) string to manipulate.
+ * @param $setbom (bool) if true set the Byte Order Mark (BOM = 0xFEFF)
+ * @param $forcertl (bool) if true forces RTL text direction
* @return string
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 2.1.000 (2008-01-08)
*/
@@ -13544,12 +13531,12 @@ class TCPDF {
/**
* Reverse the RLT substrings array using the Bidirectional Algorithm (http://unicode.org/reports/tr9/).
- * @param array $arr array of unicode values.
- * @param string $str string to manipulate (or empty value).
- * @param bool $setbom if true set the Byte Order Mark (BOM = 0xFEFF)
- * @param bool $forcertl if true forces RTL text direction
+ * @param $arr (array) array of unicode values.
+ * @param $str (string) string to manipulate (or empty value).
+ * @param $setbom (bool) if true set the Byte Order Mark (BOM = 0xFEFF)
+ * @param $forcertl (bool) if true forces RTL text direction
* @return string
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 4.9.000 (2010-03-27)
*/
@@ -13559,12 +13546,12 @@ class TCPDF {
/**
* Reverse the RLT substrings using the Bidirectional Algorithm (http://unicode.org/reports/tr9/).
- * @param array $ta array of characters composing the string.
- * @param string $str string to process
- * @param bool $forcertl if 'R' forces RTL, if 'L' forces LTR
+ * @param $ta (array) array of characters composing the string.
+ * @param $str (string) string to process
+ * @param $forcertl (bool) if 'R' forces RTL, if 'L' forces LTR
* @return array of unicode chars
* @author Nicola Asuni
- * @access protected
+ * @protected
* @since 2.4.000 (2008-03-06)
*/
protected function utf8Bidi($ta, $str='', $forcertl=false) {
@@ -14132,11 +14119,11 @@ class TCPDF {
/**
* Adds a bookmark.
- * @param string $txt bookmark description.
- * @param int $level bookmark level (minimum value is 0).
- * @param float $y Y position in user units of the bookmark on the selected page (default = -1 = current position; 0 = page start;).
- * @param int $page target page number (leave empty for current page).
- * @access public
+ * @param $txt (string) bookmark description.
+ * @param $level (int) bookmark level (minimum value is 0).
+ * @param $y (float) Y position in user units of the bookmark on the selected page (default = -1 = current position; 0 = page start;).
+ * @param $page (int) target page number (leave empty for current page).
+ * @public
* @author Olivier Plathey, Nicola Asuni
* @since 2.1.002 (2008-02-12)
*/
@@ -14167,7 +14154,7 @@ class TCPDF {
/**
* Create a bookmark PDF string.
- * @access protected
+ * @protected
* @author Olivier Plathey, Nicola Asuni
* @since 2.1.002 (2008-02-12)
*/
@@ -14250,8 +14237,8 @@ class TCPDF {
/**
* Adds a javascript
- * @param string $script Javascript code
- * @access public
+ * @param $script (string) Javascript code
+ * @public
* @author Johannes Güntert, Nicola Asuni
* @since 2.1.002 (2008-02-12)
*/
@@ -14261,10 +14248,10 @@ class TCPDF {
/**
* Adds a javascript object and return object ID
- * @param string $script Javascript code
- * @param boolean $onload if true executes this object when opening the document
+ * @param $script (string) Javascript code
+ * @param $onload (boolean) if true executes this object when opening the document
* @return int internal object ID
- * @access public
+ * @public
* @author Nicola Asuni
* @since 4.8.000 (2009-09-07)
*/
@@ -14276,7 +14263,7 @@ class TCPDF {
/**
* Create a javascript PDF string.
- * @access protected
+ * @protected
* @author Johannes Güntert, Nicola Asuni
* @since 2.1.002 (2008-02-12)
*/
@@ -14329,8 +14316,8 @@ class TCPDF {
/**
* Convert color to javascript color.
- * @param string $color color name or #RRGGBB
- * @access protected
+ * @param $color (string) color name or "#RRGGBB"
+ * @protected
* @author Denis Van Nuffelen, Nicola Asuni
* @since 2.1.002 (2008-02-12)
*/
@@ -14347,14 +14334,14 @@ class TCPDF {
/**
* Adds a javascript form field.
- * @param string $type field type
- * @param string $name field name
- * @param int $x horizontal position
- * @param int $y vertical position
- * @param int $w width
- * @param int $h height
- * @param array $prop javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
- * @access protected
+ * @param $type (string) field type
+ * @param $name (string) field name
+ * @param $x (int) horizontal position
+ * @param $y (int) vertical position
+ * @param $w (int) width
+ * @param $h (int) height
+ * @param $prop (array) javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
+ * @protected
* @author Denis Van Nuffelen, Nicola Asuni
* @since 2.1.002 (2008-02-12)
*/
@@ -14387,9 +14374,9 @@ class TCPDF {
/**
* Convert JavaScript form fields properties array to Annotation Properties array.
- * @param array $prop 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.
* @return array of annotation properties
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 4.8.000 (2009-09-06)
*/
@@ -14752,8 +14739,8 @@ class TCPDF {
/**
* Set default properties for form fields.
- * @param array $prop javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
- * @access public
+ * @param $prop (array) javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
+ * @public
* @author Nicola Asuni
* @since 4.8.000 (2009-09-06)
*/
@@ -14764,7 +14751,7 @@ class TCPDF {
/**
* Return the default properties for form fields.
* @return array $prop javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
- * @access public
+ * @public
* @author Nicola Asuni
* @since 4.8.000 (2009-09-06)
*/
@@ -14774,15 +14761,15 @@ class TCPDF {
/**
* Creates a text field
- * @param string $name field name
- * @param float $w Width of the rectangle
- * @param float $h Height of the rectangle
- * @param array $prop javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
- * @param array $opt annotation parameters. Possible values are described on official PDF32000_2008 reference.
- * @param float $x Abscissa of the upper-left corner of the rectangle
- * @param float $y Ordinate of the upper-left corner of the rectangle
- * @param boolean $js if true put the field using JavaScript (requires Acrobat Writer to be rendered).
- * @access public
+ * @param $name (string) field name
+ * @param $w (float) Width of the rectangle
+ * @param $h (float) Height of the rectangle
+ * @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 $x (float) Abscissa of the upper-left corner of the rectangle
+ * @param $y (float) Ordinate of the upper-left corner of the rectangle
+ * @param $js (boolean) if true put the field using JavaScript (requires Acrobat Writer to be rendered).
+ * @public
* @author Nicola Asuni
* @since 4.8.000 (2009-09-07)
*/
@@ -14862,16 +14849,16 @@ class TCPDF {
/**
* Creates a RadioButton field
- * @param string $name field name
- * @param int $w width
- * @param array $prop javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
- * @param array $opt annotation parameters. Possible values are described on official PDF32000_2008 reference.
- * @param string $onvalue value to be returned if selected.
- * @param boolean $checked define the initial state.
- * @param float $x Abscissa of the upper-left corner of the rectangle
- * @param float $y Ordinate of the upper-left corner of the rectangle
- * @param boolean $js if true put the field using JavaScript (requires Acrobat Writer to be rendered).
- * @access public
+ * @param $name (string) field name
+ * @param $w (int) width
+ * @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 $onvalue (string) value to be returned if selected.
+ * @param $checked (boolean) define the initial state.
+ * @param $x (float) Abscissa of the upper-left corner of the rectangle
+ * @param $y (float) Ordinate of the upper-left corner of the rectangle
+ * @param $js (boolean) if true put the field using JavaScript (requires Acrobat Writer to be rendered).
+ * @public
* @author Nicola Asuni
* @since 4.8.000 (2009-09-07)
*/
@@ -14954,16 +14941,16 @@ class TCPDF {
/**
* Creates a List-box field
- * @param string $name field name
- * @param int $w width
- * @param int $h height
- * @param array $values array containing the list of values.
- * @param array $prop javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
- * @param array $opt annotation parameters. Possible values are described on official PDF32000_2008 reference.
- * @param float $x Abscissa of the upper-left corner of the rectangle
- * @param float $y Ordinate of the upper-left corner of the rectangle
- * @param boolean $js if true put the field using JavaScript (requires Acrobat Writer to be rendered).
- * @access public
+ * @param $name (string) field name
+ * @param $w (int) width
+ * @param $h (int) height
+ * @param $values (array) array containing the list of values.
+ * @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 $x (float) Abscissa of the upper-left corner of the rectangle
+ * @param $y (float) Ordinate of the upper-left corner of the rectangle
+ * @param $js (boolean) if true put the field using JavaScript (requires Acrobat Writer to be rendered).
+ * @public
* @author Nicola Asuni
* @since 4.8.000 (2009-09-07)
*/
@@ -15012,16 +14999,16 @@ class TCPDF {
/**
* Creates a Combo-box field
- * @param string $name field name
- * @param int $w width
- * @param int $h height
- * @param array $values array containing the list of values.
- * @param array $prop javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
- * @param array $opt annotation parameters. Possible values are described on official PDF32000_2008 reference.
- * @param float $x Abscissa of the upper-left corner of the rectangle
- * @param float $y Ordinate of the upper-left corner of the rectangle
- * @param boolean $js if true put the field using JavaScript (requires Acrobat Writer to be rendered).
- * @access public
+ * @param $name (string) field name
+ * @param $w (int) width
+ * @param $h (int) height
+ * @param $values (array) array containing the list of values.
+ * @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 $x (float) Abscissa of the upper-left corner of the rectangle
+ * @param $y (float) Ordinate of the upper-left corner of the rectangle
+ * @param $js (boolean) if true put the field using JavaScript (requires Acrobat Writer to be rendered).
+ * @public
* @author Nicola Asuni
* @since 4.8.000 (2009-09-07)
*/
@@ -15071,16 +15058,16 @@ class TCPDF {
/**
* Creates a CheckBox field
- * @param string $name field name
- * @param int $w width
- * @param boolean $checked define the initial state.
- * @param array $prop javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
- * @param array $opt annotation parameters. Possible values are described on official PDF32000_2008 reference.
- * @param string $onvalue value to be returned if selected.
- * @param float $x Abscissa of the upper-left corner of the rectangle
- * @param float $y Ordinate of the upper-left corner of the rectangle
- * @param boolean $js if true put the field using JavaScript (requires Acrobat Writer to be rendered).
- * @access public
+ * @param $name (string) field name
+ * @param $w (int) width
+ * @param $checked (boolean) define the initial state.
+ * @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 $onvalue (string) value to be returned if selected.
+ * @param $x (float) Abscissa of the upper-left corner of the rectangle
+ * @param $y (float) Ordinate of the upper-left corner of the rectangle
+ * @param $js (boolean) if true put the field using JavaScript (requires Acrobat Writer to be rendered).
+ * @public
* @author Nicola Asuni
* @since 4.8.000 (2009-09-07)
*/
@@ -15140,17 +15127,17 @@ class TCPDF {
/**
* Creates a button field
- * @param string $name field name
- * @param int $w width
- * @param int $h height
- * @param string $caption caption.
- * @param mixed $action action triggered by pressing the button. Use a string to specify a javascript action. Use an array to specify a form action options as on section 12.7.5 of PDF32000_2008.
- * @param array $prop javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
- * @param array $opt annotation parameters. Possible values are described on official PDF32000_2008 reference.
- * @param float $x Abscissa of the upper-left corner of the rectangle
- * @param float $y Ordinate of the upper-left corner of the rectangle
- * @param boolean $js if true put the field using JavaScript (requires Acrobat Writer to be rendered).
- * @access public
+ * @param $name (string) field name
+ * @param $w (int) width
+ * @param $h (int) height
+ * @param $caption (string) caption.
+ * @param $action (mixed) action triggered by pressing the button. Use a string to specify a javascript action. Use an array to specify a form action options as on section 12.7.5 of PDF32000_2008.
+ * @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 $x (float) Abscissa of the upper-left corner of the rectangle
+ * @param $y (float) Ordinate of the upper-left corner of the rectangle
+ * @param $js (boolean) if true put the field using JavaScript (requires Acrobat Writer to be rendered).
+ * @public
* @author Nicola Asuni
* @since 4.8.000 (2009-09-07)
*/
@@ -15302,7 +15289,7 @@ class TCPDF {
/**
* Add certification signature (DocMDP or UR3)
* You can set only one signature type
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 4.6.008 (2009-05-07)
*/
@@ -15379,15 +15366,15 @@ class TCPDF {
* WARNING: This is experimental and currently do not work.
* Check the PDF Reference 8.7.1 Transform Methods,
* Table 8.105 Entries in the UR transform parameters dictionary
- * @param boolean $enable if true enable user's rights on PDF reader
- * @param string $document Names specifying additional document-wide usage rights for the document. The only defined value is "/FullSave", which permits a user to save the document along with modified form and/or annotation data.
- * @param string $annots Names specifying additional annotation-related usage rights for the document. Valid names in PDF 1.5 and later are /Create/Delete/Modify/Copy/Import/Export, which permit the user to perform the named operation on annotations.
- * @param string $form Names specifying additional form-field-related usage rights for the document. Valid names are: /Add/Delete/FillIn/Import/Export/SubmitStandalone/SpawnTemplate
- * @param string $signature Names specifying additional signature-related usage rights for the document. The only defined value is /Modify, which permits a user to apply a digital signature to an existing signature form field or clear a signed signature form field.
- * @param string $ef Names specifying additional usage rights for named embedded files in the document. Valid names are /Create/Delete/Modify/Import, which permit the user to perform the named operation on named embedded files
+ * @param $enable (boolean) if true enable user's rights on PDF reader
+ * @param $document (string) Names specifying additional document-wide usage rights for the document. The only defined value is "/FullSave", which permits a user to save the document along with modified form and/or annotation data.
+ * @param $annots (string) Names specifying additional annotation-related usage rights for the document. Valid names in PDF 1.5 and later are /Create/Delete/Modify/Copy/Import/Export, which permit the user to perform the named operation on annotations.
+ * @param $form (string) Names specifying additional form-field-related usage rights for the document. Valid names are: /Add/Delete/FillIn/Import/Export/SubmitStandalone/SpawnTemplate
+ * @param $signature (string) Names specifying additional signature-related usage rights for the document. The only defined value is /Modify, which permits a user to apply a digital signature to an existing signature form field or clear a signed signature form field.
+ * @param $ef (string) Names specifying additional usage rights for named embedded files in the document. Valid names are /Create/Delete/Modify/Import, which permit the user to perform the named operation on named embedded files
Names specifying additional embedded-files-related usage rights for the document.
- * @param string $formex Names specifying additional form-field-related usage rights. The only valid name is BarcodePlaintext, which permits text form field data to be encoded as a plaintext two-dimensional barcode.
- * @access public
+ * @param $formex (string) Names specifying additional form-field-related usage rights. The only valid name is BarcodePlaintext, which permits text form field data to be encoded as a plaintext two-dimensional barcode.
+ * @public
* @author Nicola Asuni
* @since 2.9.000 (2008-03-26)
*/
@@ -15417,13 +15404,13 @@ class TCPDF {
* To create self-signed signature: openssl req -x509 -nodes -days 365000 -newkey rsa:1024 -keyout tcpdf.crt -out tcpdf.crt
* To export crt to p12: openssl pkcs12 -export -in tcpdf.crt -out tcpdf.p12
* To convert pfx certificate to pem: openssl pkcs12 -in tcpdf.pfx -out tcpdf.crt -nodes
- * @param mixed $signing_cert signing certificate (string or filename prefixed with 'file://')
- * @param mixed $private_key private key (string or filename prefixed with 'file://')
- * @param string $private_key_password password
- * @param string $extracerts specifies the name of a file containing a bunch of extra certificates to include in the signature which can for example be used to help the recipient to verify the certificate that you used.
- * @param int $cert_type The access permissions granted for this document. Valid values shall be: 1 = No changes to the document shall be permitted; any change to the document shall invalidate the signature; 2 = Permitted changes shall be filling in forms, instantiating page templates, and signing; other changes shall invalidate the signature; 3 = Permitted changes shall be the same as for 2, as well as annotation creation, deletion, and modification; other changes shall invalidate the signature.
- * @param array $info array of option information: Name, Location, Reason, ContactInfo.
- * @access public
+ * @param $signing_cert (mixed) signing certificate (string or filename prefixed with 'file://')
+ * @param $private_key (mixed) private key (string or filename prefixed with 'file://')
+ * @param $private_key_password (string) password
+ * @param $extracerts (string) specifies the name of a file containing a bunch of extra certificates to include in the signature which can for example be used to help the recipient to verify the certificate that you used.
+ * @param $cert_type (int) The access permissions granted for this document. Valid values shall be: 1 = No changes to the document shall be permitted; any change to the document shall invalidate the signature; 2 = Permitted changes shall be filling in forms, instantiating page templates, and signing; other changes shall invalidate the signature; 3 = Permitted changes shall be the same as for 2, as well as annotation creation, deletion, and modification; other changes shall invalidate the signature.
+ * @param $info (array) array of option information: Name, Location, Reason, ContactInfo.
+ * @public
* @author Nicola Asuni
* @since 4.6.005 (2009-04-24)
*/
@@ -15454,12 +15441,12 @@ class TCPDF {
/**
* Set the digital signature appearance (a cliccable rectangle area to get signature properties)
- * @param float $x Abscissa of the upper-left corner.
- * @param float $y Ordinate of the upper-left corner.
- * @param float $w Width of the signature area.
- * @param float $h Height of the signature area.
- * @param int $page option page number (if < 0 the current page is used).
- * @access public
+ * @param $x (float) Abscissa of the upper-left corner.
+ * @param $y (float) Ordinate of the upper-left corner.
+ * @param $w (float) Width of the signature area.
+ * @param $h (float) Height of the signature area.
+ * @param $page (int) option page number (if < 0 the current page is used).
+ * @public
* @author Nicola Asuni
* @since 5.3.011 (2010-06-17)
*/
@@ -15479,8 +15466,8 @@ class TCPDF {
/**
* Create a new page group.
* NOTE: call this function before calling AddPage()
- * @param int $page starting group page (leave empty for next page).
- * @access public
+ * @param $page (int) starting group page (leave empty for next page).
+ * @public
* @since 3.0.000 (2008-03-27)
*/
public function startPageGroup($page='') {
@@ -15491,24 +15478,23 @@ class TCPDF {
}
/**
- * Defines an alias for the total number of pages.
- * It will be substituted as the document is closed.
- * @param string $alias The alias.
- * @access public
+ * Defines a string alias for the total number of pages. It will be substituted as the document is closed.
+ * @param $numalias (string) The alias.
* @since 1.4
* @see getAliasNbPages(), PageNo(), Footer()
+ * @public
*/
- public function AliasNbPages($alias='{nb}') {
- $this->AliasNbPages = $alias;
+ public function AliasNbPages($numalias="{nb}") {
+ $this->AliasNbPages = $numalias;
}
/**
* Returns the string alias used for the total number of pages.
* If the current font is unicode type, the returned string is surrounded by additional curly braces.
* @return string
- * @access public
* @since 4.0.018 (2008-08-08)
* @see AliasNbPages(), PageNo(), Footer()
+ * @public
*/
public function getAliasNbPages() {
if ($this->isUnicodeFont()) {
@@ -15518,25 +15504,23 @@ class TCPDF {
}
/**
- * Defines an alias for the page number.
- * It will be substituted as the document is closed.
- * @param string $alias The alias.
- * @access public
+ * Defines a string alias for the page number. It will be substituted as the document is closed.
+ * @param $numalias (string) The alias.
* @since 4.5.000 (2009-01-02)
* @see getAliasNbPages(), PageNo(), Footer()
+ * @public
*/
- public function AliasNumPage($alias='{pnb}') {
- //Define an alias for total number of pages
- $this->AliasNumPage = $alias;
+ public function AliasNumPage($numalias="{pnb}") {
+ $this->AliasNumPage = $numalias;
}
/**
* Returns the string alias used for the page number.
* If the current font is unicode type, the returned string is surrounded by additional curly braces.
* @return string
- * @access public
* @since 4.5.000 (2009-01-02)
* @see AliasNbPages(), PageNo(), Footer()
+ * @public
*/
public function getAliasNumPage() {
if ($this->isUnicodeFont()) {
@@ -15548,7 +15532,7 @@ class TCPDF {
/**
* Return the current page in the group.
* @return current page in the group
- * @access public
+ * @public
* @since 3.0.000 (2008-03-27)
*/
public function getGroupPageNo() {
@@ -15557,7 +15541,7 @@ class TCPDF {
/**
* Returns the current group page number formatted as a string.
- * @access public
+ * @public
* @since 4.3.003 (2008-11-18)
* @see PaneNo(), formatPageNumber()
*/
@@ -15570,7 +15554,7 @@ class TCPDF {
* If the current font is unicode type, the returned string is surrounded by additional curly braces.
* (will be replaced by the total number of pages in this group).
* @return alias of the current page group
- * @access public
+ * @public
* @since 3.0.000 (2008-03-27)
*/
public function getPageGroupAlias() {
@@ -15585,7 +15569,7 @@ class TCPDF {
* If the current font is unicode type, the returned string is surrounded by additional curly braces.
* (will be replaced by the total number of pages in this group).
* @return alias of the current page group
- * @access public
+ * @public
* @since 4.5.000 (2009-01-02)
*/
public function getPageNumGroupAlias() {
@@ -15598,8 +15582,8 @@ class TCPDF {
/**
* Format the page numbers.
* This method can be overriden for custom formats.
- * @param int $num page number
- * @access protected
+ * @param $num (int) page number
+ * @protected
* @since 4.2.005 (2008-11-06)
*/
protected function formatPageNumber($num) {
@@ -15609,8 +15593,8 @@ class TCPDF {
/**
* Format the page numbers on the Table Of Content.
* This method can be overriden for custom formats.
- * @param int $num page number
- * @access protected
+ * @param $num (int) page number
+ * @protected
* @since 4.5.001 (2009-01-04)
* @see addTOC(), addHTMLTOC()
*/
@@ -15620,7 +15604,7 @@ class TCPDF {
/**
* Returns the current page number formatted as a string.
- * @access public
+ * @public
* @since 4.2.005 (2008-11-06)
* @see PaneNo(), formatPageNumber()
*/
@@ -15630,7 +15614,7 @@ class TCPDF {
/**
* Put visibility settings.
- * @access protected
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected function _putocg() {
@@ -15644,8 +15628,8 @@ class TCPDF {
* Set the visibility of the successive elements.
* This can be useful, for instance, to put a background
* image or color that will show on screen but won't print.
- * @param string $v visibility mode. Legal values are: all, print, screen.
- * @access public
+ * @param $v (string) visibility mode. Legal values are: all, print, screen.
+ * @public
* @since 3.0.000 (2008-03-27)
*/
public function setVisibility($v) {
@@ -15679,9 +15663,9 @@ class TCPDF {
/**
* Add transparency parameters to the current extgstate
- * @param array $params parameters
+ * @param $parms (array) parameters
* @return the number of extgstates
- * @access protected
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected function addExtGState($parms) {
@@ -15699,8 +15683,8 @@ class TCPDF {
/**
* Add an extgstate
- * @param array $gs extgstate
- * @access protected
+ * @param $gs (array) extgstate
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected function setExtGState($gs) {
@@ -15709,8 +15693,7 @@ class TCPDF {
/**
* Put extgstates for object transparency
- * @param array $gs extgstate
- * @access protected
+ * @protected
* @since 3.0.000 (2008-03-27)
*/
protected function _putextgstates() {
@@ -15732,9 +15715,9 @@ class TCPDF {
/**
* Set alpha for stroking (CA) and non-stroking (ca) operations.
- * @param float $alpha real value from 0 (transparent) to 1 (opaque)
- * @param string $bm blend mode, one of the following: Normal, Multiply, Screen, Overlay, Darken, Lighten, ColorDodge, ColorBurn, HardLight, SoftLight, Difference, Exclusion, Hue, Saturation, Color, Luminosity
- * @access public
+ * @param $alpha (float) real value from 0 (transparent) to 1 (opaque)
+ * @param $bm (string) blend mode, one of the following: Normal, Multiply, Screen, Overlay, Darken, Lighten, ColorDodge, ColorBurn, HardLight, SoftLight, Difference, Exclusion, Hue, Saturation, Color, Luminosity
+ * @public
* @since 3.0.000 (2008-03-27)
*/
public function setAlpha($alpha, $bm='Normal') {
@@ -15744,8 +15727,8 @@ class TCPDF {
/**
* Set the default JPEG compression quality (1-100)
- * @param int $quality JPEG quality, integer between 1 and 100
- * @access public
+ * @param $quality (int) JPEG quality, integer between 1 and 100
+ * @public
* @since 3.0.000 (2008-03-27)
*/
public function setJPEGQuality($quality) {
@@ -15757,8 +15740,8 @@ class TCPDF {
/**
* Set the default number of columns in a row for HTML tables.
- * @param int $cols number of columns
- * @access public
+ * @param $cols (int) number of columns
+ * @public
* @since 3.0.014 (2008-06-04)
*/
public function setDefaultTableColumns($cols=4) {
@@ -15767,8 +15750,8 @@ class TCPDF {
/**
* Set the height of the cell (line height) respect the font height.
- * @param int $h cell proportion respect font height (typical value = 1.25).
- * @access public
+ * @param $h (int) cell proportion respect font height (typical value = 1.25).
+ * @public
* @since 3.0.014 (2008-06-04)
*/
public function setCellHeightRatio($h) {
@@ -15777,7 +15760,7 @@ class TCPDF {
/**
* return the height of cell repect font height.
- * @access public
+ * @public
* @since 4.0.012 (2008-07-24)
*/
public function getCellHeightRatio() {
@@ -15787,7 +15770,7 @@ class TCPDF {
/**
* Set the PDF version (check PDF reference for valid values).
* Default value is 1.t
- * @access public
+ * @public
* @since 3.1.000 (2008-06-09)
*/
public function setPDFVersion($version='1.7') {
@@ -15798,9 +15781,9 @@ class TCPDF {
* Set the viewer preferences dictionary controlling the way the document is to be presented on the screen or in print.
* (see Section 8.1 of PDF reference, "Viewer Preferences").
*
HideToolbar boolean (Optional) A flag specifying whether to hide the viewer application's tool bars when the document is active. Default value: false.
HideMenubar boolean (Optional) A flag specifying whether to hide the viewer application's menu bar when the document is active. Default value: false.
HideWindowUI boolean (Optional) A flag specifying whether to hide user interface elements in the document's window (such as scroll bars and navigation controls), leaving only the document's contents displayed. Default value: false.
FitWindow boolean (Optional) A flag specifying whether to resize the document's window to fit the size of the first displayed page. Default value: false.
CenterWindow boolean (Optional) A flag specifying whether to position the document's window in the center of the screen. Default value: false.
DisplayDocTitle boolean (Optional; PDF 1.4) A flag specifying whether the window's title bar should display the document title taken from the Title entry of the document information dictionary (see Section 10.2.1, "Document Information Dictionary"). If false, the title bar should instead display the name of the PDF file containing the document. Default value: false.
NonFullScreenPageMode name (Optional) The document's page mode, specifying how to display the document on exiting full-screen mode:
UseNone Neither document outline nor thumbnail images visible
UseOutlines Document outline visible
UseThumbs Thumbnail images visible
UseOC Optional content group panel visible
This entry is meaningful only if the value of the PageMode entry in the catalog dictionary (see Section 3.6.1, "Document Catalog") is FullScreen; it is ignored otherwise. Default value: UseNone.
ViewArea name (Optional; PDF 1.4) The name of the page boundary representing the area of a page to be displayed when viewing the document on the screen. Valid values are (see Section 10.10.1, "Page Boundaries").:
MediaBox
CropBox (default)
BleedBox
TrimBox
ArtBox
ViewClip name (Optional; PDF 1.4) The name of the page boundary to which the contents of a page are to be clipped when viewing the document on the screen. Valid values are (see Section 10.10.1, "Page Boundaries").:
MediaBox
CropBox (default)
BleedBox
TrimBox
ArtBox
PrintArea name (Optional; PDF 1.4) The name of the page boundary representing the area of a page to be rendered when printing the document. Valid values are (see Section 10.10.1, "Page Boundaries").:
MediaBox
CropBox (default)
BleedBox
TrimBox
ArtBox
PrintClip name (Optional; PDF 1.4) The name of the page boundary to which the contents of a page are to be clipped when printing the document. Valid values are (see Section 10.10.1, "Page Boundaries").:
MediaBox
CropBox (default)
BleedBox
TrimBox
ArtBox
PrintScaling name (Optional; PDF 1.6) The page scaling option to be selected when a print dialog is displayed for this document. Valid values are:
None, which indicates that the print dialog should reflect no page scaling
AppDefault (default), which indicates that applications should use the current print scaling
Duplex name (Optional; PDF 1.7) The paper handling option to use when printing the file from the print dialog. The following values are valid:
Simplex - Print single-sided
DuplexFlipShortEdge - Duplex and flip on the short edge of the sheet
DuplexFlipLongEdge - Duplex and flip on the long edge of the sheet
Default value: none
PickTrayByPDFSize boolean (Optional; PDF 1.7) A flag specifying whether the PDF page size is used to select the input paper tray. This setting influences only the preset values used to populate the print dialog presented by a PDF viewer application. If PickTrayByPDFSize is true, the check box in the print dialog associated with input paper tray is checked. Note: This setting has no effect on Mac OS systems, which do not provide the ability to pick the input tray by size.
PrintPageRange array (Optional; PDF 1.7) The page numbers used to initialize the print dialog box when the file is printed. The first page of the PDF file is denoted by 1. Each pair consists of the first and last pages in the sub-range. An odd number of integers causes this entry to be ignored. Negative numbers cause the entire array to be ignored. Default value: as defined by PDF viewer application
NumCopies integer (Optional; PDF 1.7) The number of copies to be printed when the print dialog is opened for this file. Supported values are the integers 2 through 5. Values outside this range are ignored. Default value: as defined by PDF viewer application, but typically 1
- * @param array $preferences array of options.
+ * @param $preferences (array) array of options.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 3.1.000 (2008-06-09)
*/
public function setViewerPreferences($preferences) {
@@ -15809,16 +15792,16 @@ class TCPDF {
/**
* Paints color transition registration bars
- * @param float $x abscissa of the top left corner of the rectangle.
- * @param float $y ordinate of the top left corner of the rectangle.
- * @param float $w width of the rectangle.
- * @param float $h height of the rectangle.
- * @param boolean $transition if true prints tcolor transitions to white.
- * @param boolean $vertical if true prints bar vertically.
- * @param string $colors colors to print, one letter per color separated by comma (for example 'A,W,R,G,B,C,M,Y,K'): A=black, W=white, R=red, G=green, B=blue, C=cyan, M=magenta, Y=yellow, K=black.
+ * @param $x (float) abscissa of the top left corner of the rectangle.
+ * @param $y (float) ordinate of the top left corner of the rectangle.
+ * @param $w (float) width of the rectangle.
+ * @param $h (float) height of the rectangle.
+ * @param $transition (boolean) if true prints tcolor transitions to white.
+ * @param $vertical (boolean) if true prints bar vertically.
+ * @param $colors (string) colors to print, one letter per color separated by comma (for example 'A,W,R,G,B,C,M,Y,K'): A=black, W=white, R=red, G=green, B=blue, C=cyan, M=magenta, Y=yellow, K=black.
* @author Nicola Asuni
* @since 4.9.000 (2010-03-26)
- * @access public
+ * @public
*/
public function colorRegistrationBar($x, $y, $w, $h, $transition=true, $vertical=false, $colors='A,R,G,B,C,M,Y,K') {
$bars = explode(',', $colors);
@@ -15908,15 +15891,15 @@ class TCPDF {
/**
* Paints crop mark
- * @param float $x abscissa of the crop mark center.
- * @param float $y ordinate of the crop mark center.
- * @param float $w width of the crop mark.
- * @param float $h height of the crop mark.
- * @param string $type type of crop mark, one sybol per type separated by comma: A = top left, B = top right, C = bottom left, D = bottom right.
- * @param array $color crop mark color (default black).
+ * @param $x (float) abscissa of the crop mark center.
+ * @param $y (float) ordinate of the crop mark center.
+ * @param $w (float) width of the crop mark.
+ * @param $h (float) height of the crop mark.
+ * @param $type (string) type of crop mark, one sybol per type separated by comma: A = top left, B = top right, C = bottom left, D = bottom right.
+ * @param $color (array) crop mark color (default black).
* @author Nicola Asuni
* @since 4.9.000 (2010-03-26)
- * @access public
+ * @public
*/
public function cropMark($x, $y, $w, $h, $type='A,B,C,D', $color=array(0,0,0)) {
$this->SetLineStyle(array('width' => (0.5 / $this->k), 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => $color));
@@ -15978,15 +15961,15 @@ class TCPDF {
/**
* Paints a registration mark
- * @param float $x abscissa of the registration mark center.
- * @param float $y ordinate of the registration mark center.
- * @param float $r radius of the crop mark.
- * @param boolean $double if true print two concentric crop marks.
- * @param array $cola crop mark color (default black).
- * @param array $colb second crop mark color.
+ * @param $x (float) abscissa of the registration mark center.
+ * @param $y (float) ordinate of the registration mark center.
+ * @param $r (float) radius of the crop mark.
+ * @param $double (boolean) if true print two concentric crop marks.
+ * @param $cola (array) crop mark color (default black).
+ * @param $colb (array) second crop mark color.
* @author Nicola Asuni
* @since 4.9.000 (2010-03-26)
- * @access public
+ * @public
*/
public function registrationMark($x, $y, $r, $double=false, $cola=array(0,0,0), $colb=array(255,255,255)) {
$line_style = array('width' => (0.5 / $this->k), 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => $cola);
@@ -16008,16 +15991,16 @@ class TCPDF {
/**
* Paints a linear colour gradient.
- * @param float $x abscissa of the top left corner of the rectangle.
- * @param float $y ordinate of the top left corner of the rectangle.
- * @param float $w width of the rectangle.
- * @param float $h height of the rectangle.
- * @param array $col1 first color (Grayscale, RGB or CMYK components).
- * @param array $col2 second color (Grayscale, RGB or CMYK components).
- * @param array $coords array of the form (x1, y1, x2, y2) which defines the gradient vector (see linear_gradient_coords.jpg). The default value is from left to right (x1=0, y1=0, x2=1, y2=0).
+ * @param $x (float) abscissa of the top left corner of the rectangle.
+ * @param $y (float) ordinate of the top left corner of the rectangle.
+ * @param $w (float) width of the rectangle.
+ * @param $h (float) height of the rectangle.
+ * @param $col1 (array) first color (Grayscale, RGB or CMYK components).
+ * @param $col2 (array) second color (Grayscale, RGB or CMYK components).
+ * @param $coords (array) array of the form (x1, y1, x2, y2) which defines the gradient vector (see linear_gradient_coords.jpg). The default value is from left to right (x1=0, y1=0, x2=1, y2=0).
* @author Andreas Würmser, Nicola Asuni
* @since 3.1.000 (2008-06-09)
- * @access public
+ * @public
*/
public function LinearGradient($x, $y, $w, $h, $col1=array(), $col2=array(), $coords=array(0,0,1,0)) {
$this->Clip($x, $y, $w, $h);
@@ -16026,16 +16009,16 @@ class TCPDF {
/**
* Paints a radial colour gradient.
- * @param float $x abscissa of the top left corner of the rectangle.
- * @param float $y ordinate of the top left corner of the rectangle.
- * @param float $w width of the rectangle.
- * @param float $h height of the rectangle.
- * @param array $col1 first color (Grayscale, RGB or CMYK components).
- * @param array $col2 second color (Grayscale, RGB or CMYK components).
- * @param array $coords array of the form (fx, fy, cx, cy, r) where (fx, fy) is the starting point of the gradient with color1, (cx, cy) is the center of the circle with color2, and r is the radius of the circle (see radial_gradient_coords.jpg). (fx, fy) should be inside the circle, otherwise some areas will not be defined.
+ * @param $x (float) abscissa of the top left corner of the rectangle.
+ * @param $y (float) ordinate of the top left corner of the rectangle.
+ * @param $w (float) width of the rectangle.
+ * @param $h (float) height of the rectangle.
+ * @param $col1 (array) first color (Grayscale, RGB or CMYK components).
+ * @param $col2 (array) second color (Grayscale, RGB or CMYK components).
+ * @param $coords (array) array of the form (fx, fy, cx, cy, r) where (fx, fy) is the starting point of the gradient with color1, (cx, cy) is the center of the circle with color2, and r is the radius of the circle (see radial_gradient_coords.jpg). (fx, fy) should be inside the circle, otherwise some areas will not be defined.
* @author Andreas Würmser, Nicola Asuni
* @since 3.1.000 (2008-06-09)
- * @access public
+ * @public
*/
public function RadialGradient($x, $y, $w, $h, $col1=array(), $col2=array(), $coords=array(0.5,0.5,0.5,0.5,1)) {
$this->Clip($x, $y, $w, $h);
@@ -16044,21 +16027,21 @@ class TCPDF {
/**
* Paints a coons patch mesh.
- * @param float $x abscissa of the top left corner of the rectangle.
- * @param float $y ordinate of the top left corner of the rectangle.
- * @param float $w width of the rectangle.
- * @param float $h height of the rectangle.
- * @param array $col1 first color (lower left corner) (RGB components).
- * @param array $col2 second color (lower right corner) (RGB components).
- * @param array $col3 third color (upper right corner) (RGB components).
- * @param array $col4 fourth color (upper left corner) (RGB components).
- * @param array $coords
for one patch mesh: array(float x1, float y1, .... float x12, float y12): 12 pairs of coordinates (normally from 0 to 1) which specify the Bezier control points that define the patch. First pair is the lower left edge point, next is its right control point (control point 2). Then the other points are defined in the order: control point 1, edge point, control point 2 going counter-clockwise around the patch. Last (x12, y12) is the first edge point's left control point (control point 1).
for two or more patch meshes: array[number of patches]: arrays with the following keys for each patch: f: where to put that patch (0 = first patch, 1, 2, 3 = right, top and left of precedent patch - I didn't figure this out completely - just try and error ;-) points: 12 pairs of coordinates of the Bezier control points as above for the first patch, 8 pairs of coordinates for the following patches, ignoring the coordinates already defined by the precedent patch (I also didn't figure out the order of these - also: try and see what's happening) colors: must be 4 colors for the first patch, 2 colors for the following patches
- * @param array $coords_min minimum value used by the coordinates. If a coordinate's value is smaller than this it will be cut to coords_min. default: 0
- * @param array $coords_max maximum value used by the coordinates. If a coordinate's value is greater than this it will be cut to coords_max. default: 1
- * @param boolean $antialias A flag indicating whether to filter the shading function to prevent aliasing artifacts.
+ * @param $x (float) abscissa of the top left corner of the rectangle.
+ * @param $y (float) ordinate of the top left corner of the rectangle.
+ * @param $w (float) width of the rectangle.
+ * @param $h (float) height of the rectangle.
+ * @param $col1 (array) first color (lower left corner) (RGB components).
+ * @param $col2 (array) second color (lower right corner) (RGB components).
+ * @param $col3 (array) third color (upper right corner) (RGB components).
+ * @param $col4 (array) fourth color (upper left corner) (RGB components).
+ * @param $coords (array)
for one patch mesh: array(float x1, float y1, .... float x12, float y12): 12 pairs of coordinates (normally from 0 to 1) which specify the Bezier control points that define the patch. First pair is the lower left edge point, next is its right control point (control point 2). Then the other points are defined in the order: control point 1, edge point, control point 2 going counter-clockwise around the patch. Last (x12, y12) is the first edge point's left control point (control point 1).
for two or more patch meshes: array[number of patches]: arrays with the following keys for each patch: f: where to put that patch (0 = first patch, 1, 2, 3 = right, top and left of precedent patch - I didn't figure this out completely - just try and error ;-) points: 12 pairs of coordinates of the Bezier control points as above for the first patch, 8 pairs of coordinates for the following patches, ignoring the coordinates already defined by the precedent patch (I also didn't figure out the order of these - also: try and see what's happening) colors: must be 4 colors for the first patch, 2 colors for the following patches
+ * @param $coords_min (array) minimum value used by the coordinates. If a coordinate's value is smaller than this it will be cut to coords_min. default: 0
+ * @param $coords_max (array) maximum value used by the coordinates. If a coordinate's value is greater than this it will be cut to coords_max. default: 1
+ * @param $antialias (boolean) A flag indicating whether to filter the shading function to prevent aliasing artifacts.
* @author Andreas Würmser, Nicola Asuni
* @since 3.1.000 (2008-06-09)
- * @access public
+ * @public
*/
public function CoonsPatchMesh($x, $y, $w, $h, $col1=array(), $col2=array(), $col3=array(), $col4=array(), $coords=array(0.00,0.0,0.33,0.00,0.67,0.00,1.00,0.00,1.00,0.33,1.00,0.67,1.00,1.00,0.67,1.00,0.33,1.00,0.00,1.00,0.00,0.67,0.00,0.33), $coords_min=0, $coords_max=1, $antialias=false) {
$this->Clip($x, $y, $w, $h);
@@ -16137,13 +16120,13 @@ class TCPDF {
/**
* Set a rectangular clipping area.
- * @param float $x abscissa of the top left corner of the rectangle (or top right corner for RTL mode).
- * @param float $y ordinate of the top left corner of the rectangle.
- * @param float $w width of the rectangle.
- * @param float $h height of the rectangle.
+ * @param $x (float) abscissa of the top left corner of the rectangle (or top right corner for RTL mode).
+ * @param $y (float) ordinate of the top left corner of the rectangle.
+ * @param $w (float) width of the rectangle.
+ * @param $h (float) height of the rectangle.
* @author Andreas Würmser, Nicola Asuni
* @since 3.1.000 (2008-06-09)
- * @access protected
+ * @protected
*/
protected function Clip($x, $y, $w, $h) {
if ($this->rtl) {
@@ -16160,14 +16143,14 @@ class TCPDF {
/**
* Output gradient.
- * @param int $type type of gradient (1 Function-based shading; 2 Axial shading; 3 Radial shading; 4 Free-form Gouraud-shaded triangle mesh; 5 Lattice-form Gouraud-shaded triangle mesh; 6 Coons patch mesh; 7 Tensor-product patch mesh). (Not all types are currently supported)
- * @param array $coords array of coordinates.
- * @param array $stops array gradient color components: color = array of GRAY, RGB or CMYK color components; offset = (0 to 1) represents a location along the gradient vector; exponent = exponent of the exponential interpolation function (default = 1).
- * @param array $background An array of colour components appropriate to the colour space, specifying a single background colour value.
- * @param boolean $antialias A flag indicating whether to filter the shading function to prevent aliasing artifacts.
+ * @param $type (int) type of gradient (1 Function-based shading; 2 Axial shading; 3 Radial shading; 4 Free-form Gouraud-shaded triangle mesh; 5 Lattice-form Gouraud-shaded triangle mesh; 6 Coons patch mesh; 7 Tensor-product patch mesh). (Not all types are currently supported)
+ * @param $coords (array) array of coordinates.
+ * @param $stops (array) array gradient color components: color = array of GRAY, RGB or CMYK color components; offset = (0 to 1) represents a location along the gradient vector; exponent = exponent of the exponential interpolation function (default = 1).
+ * @param $background (array) An array of colour components appropriate to the colour space, specifying a single background colour value.
+ * @param $antialias (boolean) A flag indicating whether to filter the shading function to prevent aliasing artifacts.
* @author Nicola Asuni
* @since 3.1.000 (2008-06-09)
- * @access public
+ * @public
*/
public function Gradient($type, $coords, $stops, $background=array(), $antialias=false) {
$n = count($this->gradients) + 1;
@@ -16265,7 +16248,7 @@ class TCPDF {
* Output gradient shaders.
* @author Nicola Asuni
* @since 3.1.000 (2008-06-09)
- * @access protected
+ * @protected
*/
function _putshaders() {
$idt = count($this->gradients); //index for transparency gradients
@@ -16444,17 +16427,17 @@ class TCPDF {
/**
* Draw the sector of a circle.
* It can be used for instance to render pie charts.
- * @param float $xc abscissa of the center.
- * @param float $yc ordinate of the center.
- * @param float $r radius.
- * @param float $a start angle (in degrees).
- * @param float $b end angle (in degrees).
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param float $cw: indicates whether to go clockwise (default: true).
- * @param float $o: origin of angles (0 for 3 o'clock, 90 for noon, 180 for 9 o'clock, 270 for 6 o'clock). Default: 90.
+ * @param $xc (float) abscissa of the center.
+ * @param $yc (float) ordinate of the center.
+ * @param $r (float) radius.
+ * @param $a (float) start angle (in degrees).
+ * @param $b (float) end angle (in degrees).
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $cw: (float) indicates whether to go clockwise (default: true).
+ * @param $o: (float) origin of angles (0 for 3 o'clock, 90 for noon, 180 for 9 o'clock, 270 for 6 o'clock). Default: 90.
* @author Maxime Delorme, Nicola Asuni
* @since 3.1.000 (2008-06-09)
- * @access public
+ * @public
*/
public function PieSector($xc, $yc, $r, $a, $b, $style='FD', $cw=true, $o=90) {
$this->PieSectorXY($xc, $yc, $r, $r, $a, $b, $style, $cw, $o);
@@ -16463,19 +16446,19 @@ class TCPDF {
/**
* Draw the sector of an ellipse.
* It can be used for instance to render pie charts.
- * @param float $xc abscissa of the center.
- * @param float $yc ordinate of the center.
- * @param float $rx the x-axis radius.
- * @param float $ry the y-axis radius.
- * @param float $a start angle (in degrees).
- * @param float $b end angle (in degrees).
- * @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
- * @param float $cw: indicates whether to go clockwise.
- * @param float $o: origin of angles (0 for 3 o'clock, 90 for noon, 180 for 9 o'clock, 270 for 6 o'clock).
- * @param integer $nc Number of curves used to draw a 90 degrees portion of arc.
+ * @param $xc (float) abscissa of the center.
+ * @param $yc (float) ordinate of the center.
+ * @param $rx (float) the x-axis radius.
+ * @param $ry (float) the y-axis radius.
+ * @param $a (float) start angle (in degrees).
+ * @param $b (float) end angle (in degrees).
+ * @param $style (string) Style of rendering. See the getPathPaintOperator() function for more information.
+ * @param $cw: (float) indicates whether to go clockwise.
+ * @param $o: (float) origin of angles (0 for 3 o'clock, 90 for noon, 180 for 9 o'clock, 270 for 6 o'clock).
+ * @param $nc (integer) Number of curves used to draw a 90 degrees portion of arc.
* @author Maxime Delorme, Nicola Asuni
* @since 3.1.000 (2008-06-09)
- * @access public
+ * @public
*/
public function PieSectorXY($xc, $yc, $rx, $ry, $a, $b, $style='FD', $cw=false, $o=0, $nc=2) {
if ($this->rtl) {
@@ -16502,21 +16485,21 @@ class TCPDF {
* NOTE: EPS is not yet fully implemented, use the setRasterizeVectorImages() method to enable/disable rasterization of vector images using ImageMagick library.
* Only vector drawing is supported, not text or bitmap.
* Although the script was successfully tested with various AI format versions, best results are probably achieved with files that were exported in the AI3 format (tested with Illustrator CS2, Freehand MX and Photoshop CS2).
- * @param string $file Name of the file containing the image or a '@' character followed by the EPS/AI data string.
- * @param float $x Abscissa of the upper-left corner.
- * @param float $y Ordinate of the upper-left corner.
- * @param float $w Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
- * @param float $h Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
- * @param mixed $link URL or identifier returned by AddLink().
- * @param boolean useBoundingBox specifies whether to position the bounding box (true) or the complete canvas (false) at location (x,y). Default value is true.
- * @param string $align Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
- * @param string $palign Allows to center or align the image on the current line. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
- * @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
- * @param boolean $fitonpage if true the image is resized to not exceed page dimensions.
- * @param boolean $fixoutvals if true remove values outside the bounding box.
+ * @param $file (string) Name of the file containing the image or a '@' character followed by the EPS/AI data string.
+ * @param $x (float) Abscissa of the upper-left corner.
+ * @param $y (float) Ordinate of the upper-left corner.
+ * @param $w (float) Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
+ * @param $h (float) Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
+ * @param $link (mixed) URL or identifier returned by AddLink().
+ * @param $useBoundingBox (boolean) specifies whether to position the bounding box (true) or the complete canvas (false) at location (x,y). Default value is true.
+ * @param $align (string) Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
+ * @param $palign (string) Allows to center or align the image on the current line. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
+ * @param $border (mixed) Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
+ * @param $fitonpage (boolean) if true the image is resized to not exceed page dimensions.
+ * @param $fixoutvals (boolean) if true remove values outside the bounding box.
* @author Valentin Schmidt, Nicola Asuni
* @since 3.1.000 (2008-06-09)
- * @access public
+ * @public
*/
public function ImageEps($file, $x='', $y='', $w=0, $h=0, $link='', $useBoundingBox=true, $align='', $palign='', $border=0, $fitonpage=false, $fixoutvals=false) {
if ($this->rasterize_vector_images AND ($w > 0) AND ($h > 0)) {
@@ -16831,8 +16814,8 @@ class TCPDF {
/**
* Set document barcode.
- * @param string $bc barcode
- * @access public
+ * @param $bc (string) barcode
+ * @public
*/
public function setBarcode($bc='') {
$this->barcode = $bc;
@@ -16841,7 +16824,7 @@ class TCPDF {
/**
* Get current barcode.
* @return string
- * @access public
+ * @public
* @since 4.0.012 (2008-07-24)
*/
public function getBarcode() {
@@ -16850,14 +16833,14 @@ class TCPDF {
/**
* Print a Linear Barcode.
- * @param string $code code to print
- * @param string $type type of barcode (see barcodes.php for supported formats).
- * @param int $x x position in user units (empty string = current x position)
- * @param int $y y position in user units (empty string = current y position)
- * @param int $w width in user units (empty string = remaining page width)
- * @param int $h height in user units (empty string = remaining page height)
- * @param float $xres width of the smallest bar in user units (empty string = default value = 0.4mm)
- * @param array $style array of options:
+ * @param $code (string) code to print
+ * @param $type (string) type of barcode (see barcodes.php for supported formats).
+ * @param $x (int) x position in user units (empty string = current x position)
+ * @param $y (int) y position in user units (empty string = current y position)
+ * @param $w (int) width in user units (empty string = remaining page width)
+ * @param $h (int) height in user units (empty string = remaining page height)
+ * @param $xres (float) width of the smallest bar in user units (empty string = default value = 0.4mm)
+ * @param $style (array) array of options:
*
boolean $style['border'] if true prints a border
*
int $style['padding'] padding to leave around the barcode in user units (set to 'auto' for automatic padding)
*
int $style['hpadding'] horizontal padding in user units (set to 'auto' for automatic padding)
@@ -16873,10 +16856,10 @@ class TCPDF {
*
string $style['stretch'] if true stretch the barcode to best fit the available width, otherwise uses $xres resolution for a single bar.
*
string $style['fitwidth'] if true reduce the width to fit the barcode width + padding. When this option is enabled the 'stretch' option is automatically disabled.
*
string $style['cellfitalign'] this option works only when 'fitwidth' is true and 'position' is unset or empty. Set the horizontal position of the containing barcode cell inside the specified rectangle: L = left; C = center; R = right.
- * @param string $align Indicates the alignment of the pointer next to barcode insertion relative to barcode height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
+ * @param $align (string) Indicates the alignment of the pointer next to barcode insertion relative to barcode height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
* @author Nicola Asuni
* @since 3.1.000 (2008-06-09)
- * @access public
+ * @public
*/
public function write1DBarcode($code, $type, $x='', $y='', $w='', $h='', $xres='', $style='', $align='') {
if ($this->empty_string(trim($code))) {
@@ -17171,17 +17154,17 @@ class TCPDF {
/**
* This function is DEPRECATED, please use the new write1DBarcode() function.
- * @param int $x x position in user units
- * @param int $y y position in user units
- * @param int $w width in user units
- * @param int $h height position in user units
- * @param string $type type of barcode
- * @param string $style barcode style
- * @param string $font font for text
- * @param int $xres x resolution
- * @param string $code code to print
+ * @param $x (int) x position in user units
+ * @param $y (int) y position in user units
+ * @param $w (int) width in user units
+ * @param $h (int) height position in user units
+ * @param $type (string) type of barcode
+ * @param $style (string) barcode style
+ * @param $font (string) font for text
+ * @param $xres (int) x resolution
+ * @param $code (string) code to print
* @deprecated deprecated since version 3.1.000 (2008-06-10)
- * @access public
+ * @public
* @see write1DBarcode()
*/
public function writeBarcode($x, $y, $w, $h, $type, $style, $font, $xres, $code) {
@@ -17226,13 +17209,13 @@ class TCPDF {
/**
* Print 2D Barcode.
- * @param string $code code to print
- * @param string $type type of barcode (see 2dbarcodes.php for supported formats).
- * @param int $x x position in user units
- * @param int $y y position in user units
- * @param int $w width in user units
- * @param int $h height in user units
- * @param array $style array of options:
+ * @param $code (string) code to print
+ * @param $type (string) type of barcode (see 2dbarcodes.php for supported formats).
+ * @param $x (int) x position in user units
+ * @param $y (int) y position in user units
+ * @param $w (int) width in user units
+ * @param $h (int) height in user units
+ * @param $style (array) array of options:
*
boolean $style['border'] if true prints a border around the barcode
*
int $style['padding'] padding to leave around the barcode in barcode units (set to 'auto' for automatic padding)
*
int $style['hpadding'] horizontal padding in barcode units (set to 'auto' for automatic padding)
@@ -17243,11 +17226,11 @@ class TCPDF {
*
mixed $style['bgcolor'] color array for background or false for transparent
*
string $style['position'] barcode position on the page: L = left margin; C = center; R = right margin; S = stretch
$style['module_width'] width of a single module in points
*
$style['module_height'] height of a single module in points
- * @param string $align Indicates the alignment of the pointer next to barcode insertion relative to barcode height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
- * @param boolean $distort if true distort the barcode to fit width and height, otherwise preserve aspect ratio
+ * @param $align (string) Indicates the alignment of the pointer next to barcode insertion relative to barcode height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
+ * @param $distort (boolean) if true distort the barcode to fit width and height, otherwise preserve aspect ratio
* @author Nicola Asuni
* @since 4.5.037 (2009-04-07)
- * @access public
+ * @public
*/
public function write2DBarcode($code, $type, $x='', $y='', $w='', $h='', $style='', $align='', $distort=false) {
if ($this->empty_string(trim($code))) {
@@ -17469,7 +17452,7 @@ class TCPDF {
$ret['padding_bottom'] = cell bottom padding
*
* @return array containing all margins measures
- * @access public
+ * @public
* @since 3.2.000 (2008-06-23)
*/
public function getMargins() {
@@ -17496,7 +17479,7 @@ class TCPDF {
$ret['right'] = right margin
*
* @return array containing all margins measures
- * @access public
+ * @public
* @since 4.0.012 (2008-07-24)
*/
public function getOriginalMargins() {
@@ -17510,7 +17493,7 @@ class TCPDF {
/**
* Returns the current font size.
* @return current font size
- * @access public
+ * @public
* @since 3.2.000 (2008-06-23)
*/
public function getFontSize() {
@@ -17520,7 +17503,7 @@ class TCPDF {
/**
* Returns the current font size in points unit.
* @return current font size in points unit
- * @access public
+ * @public
* @since 3.2.000 (2008-06-23)
*/
public function getFontSizePt() {
@@ -17530,7 +17513,7 @@ class TCPDF {
/**
* Returns the current font family name.
* @return string current font family name
- * @access public
+ * @public
* @since 4.3.008 (2008-12-05)
*/
public function getFontFamily() {
@@ -17540,7 +17523,7 @@ class TCPDF {
/**
* Returns the current font style.
* @return string current font style
- * @access public
+ * @public
* @since 4.3.008 (2008-12-05)
*/
public function getFontStyle() {
@@ -17549,13 +17532,13 @@ class TCPDF {
/**
* Cleanup HTML code (requires HTML Tidy library).
- * @param string $html htmlcode to fix
- * @param string $default_css CSS commands to add
- * @param array $tagvs parameters for setHtmlVSpace method
- * @param array $tidy_options options for tidy_parse_string function
+ * @param $html (string) htmlcode to fix
+ * @param $default_css (string) CSS commands to add
+ * @param $tagvs (array) parameters for setHtmlVSpace method
+ * @param $tidy_options (array) options for tidy_parse_string function
* @return string XHTML code cleaned up
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.9.017 (2010-11-16)
* @see setHtmlVSpace()
*/
@@ -17614,11 +17597,11 @@ class TCPDF {
/**
* Extracts the CSS properties from a CSS string.
- * @param string $cssdata string containing CSS definitions.
+ * @param $cssdata (string) string containing CSS definitions.
* @return An array where the keys are the CSS selectors and the values are the CSS properties.
* @author Nicola Asuni
* @since 5.1.000 (2010-05-25)
- * @access protected
+ * @protected
*/
protected function extractCSSproperties($cssdata) {
if (empty($cssdata)) {
@@ -17705,11 +17688,11 @@ class TCPDF {
/**
* Returns true if the CSS selector is valid for the selected HTML tag
- * @param array $dom array of HTML tags and properties
- * @param int $key key of the current HTML tag
- * @param string $selector CSS selector string
+ * @param $dom (array) array of HTML tags and properties
+ * @param $key (int) key of the current HTML tag
+ * @param $selector (string) CSS selector string
* @return true if the selector is valid, false otherwise
- * @access protected
+ * @protected
* @since 5.1.000 (2010-05-25)
*/
protected function isValidCSSSelectorForTag($dom, $key, $selector) {
@@ -17865,11 +17848,11 @@ class TCPDF {
/**
* Returns the styles that apply for the selected HTML tag.
- * @param array $dom array of HTML tags and properties
- * @param int $key key of the current HTML tag
- * @param array $css array of CSS properties
+ * @param $dom (array) array of HTML tags and properties
+ * @param $key (int) key of the current HTML tag
+ * @param $css (array) array of CSS properties
* @return string containing CSS properties
- * @access protected
+ * @protected
* @since 5.1.000 (2010-05-25)
*/
protected function getTagStyleFromCSS($dom, $key, $css) {
@@ -17895,9 +17878,9 @@ class TCPDF {
/**
* Returns the border width from CSS property
- * @param string $width border width
+ * @param $width (string) border width
* @return int with in user units
- * @access protected
+ * @protected
* @since 5.7.000 (2010-08-02)
*/
protected function getCSSBorderWidth($width) {
@@ -17915,9 +17898,9 @@ class TCPDF {
/**
* Returns the border dash style from CSS property
- * @param string $style border style to convert
+ * @param $style (string) border style to convert
* @return int sash style (return -1 in case of none or hidden border)
- * @access protected
+ * @protected
* @since 5.7.000 (2010-08-02)
*/
protected function getCSSBorderDashStyle($style) {
@@ -17951,9 +17934,9 @@ class TCPDF {
/**
* Returns the border style array from CSS border properties
- * @param string $cssborder border properties
+ * @param $cssborder (string) border properties
* @return array containing border properties
- * @access protected
+ * @protected
* @since 5.7.000 (2010-08-02)
*/
protected function getCSSBorderStyle($cssborder) {
@@ -18001,10 +17984,10 @@ class TCPDF {
/**
* Get the internal Cell padding from CSS attribute.
- * @param string $csspadding padding properties
- * @param float $width width of the containing element
+ * @param $csspadding (string) padding properties
+ * @param $width (float) width of the containing element
* @return array of cell paddings
- * @access public
+ * @public
* @since 5.9.000 (2010-10-04)
*/
public function getCSSPadding($csspadding, $width=0) {
@@ -18055,10 +18038,10 @@ class TCPDF {
/**
* Get the internal Cell margin from CSS attribute.
- * @param string $cssmargin margin properties
- * @param float $width width of the containing element
+ * @param $cssmargin (string) margin properties
+ * @param $width (float) width of the containing element
* @return array of cell margins
- * @access public
+ * @public
* @since 5.9.000 (2010-10-04)
*/
public function getCSSMargin($cssmargin, $width=0) {
@@ -18109,10 +18092,10 @@ class TCPDF {
/**
* Get the border-spacing from CSS attribute.
- * @param string $cssbspace border-spacing CSS properties
- * @param float $width width of the containing element
+ * @param $cssbspace (string) border-spacing CSS properties
+ * @param $width (float) width of the containing element
* @return array of border spacings
- * @access public
+ * @public
* @since 5.9.010 (2010-10-27)
*/
public function getCSSBorderMargin($cssbspace, $width=0) {
@@ -18143,10 +18126,10 @@ class TCPDF {
/**
* Returns the letter-spacing value from CSS value
- * @param string $spacing letter-spacing value
- * @param float $parent font spacing (tracking/kerning) value of the parent element
+ * @param $spacing (string) letter-spacing value
+ * @param $parent (float) font spacing (tracking/kerning) value of the parent element
* @return float quantity to increases or decreases the space between characters in a text.
- * @access protected
+ * @protected
* @since 5.9.000 (2010-10-02)
*/
protected function getCSSFontSpacing($spacing, $parent=0) {
@@ -18174,10 +18157,10 @@ class TCPDF {
/**
* Returns the percentage of font stretching from CSS value
- * @param string $stretch stretch mode
- * @param float $parent stretch value of the parent element
+ * @param $stretch (string) stretch mode
+ * @param $parent (float) stretch value of the parent element
* @return float font stretching percentage
- * @access protected
+ * @protected
* @since 5.9.000 (2010-10-02)
*/
protected function getCSSFontStretching($stretch, $parent=100) {
@@ -18245,9 +18228,9 @@ class TCPDF {
/**
* Returns the HTML DOM array.
- * @param string $html html code
+ * @param $html (string) html code
* @return array
- * @access protected
+ * @protected
* @since 3.2.000 (2008-06-20)
*/
protected function getHtmlDomArray($html) {
@@ -19009,7 +18992,7 @@ class TCPDF {
/**
* Returns the string used to find spaces
* @return string
- * @access protected
+ * @protected
* @author Nicola Asuni
* @since 4.8.024 (2010-01-15)
*/
@@ -19025,21 +19008,20 @@ class TCPDF {
* Prints a cell (rectangular area) with optional borders, background color and html text string.
* The upper-left corner of the cell corresponds to the current position. After the call, the current position moves to the right or to the next line.
* If automatic page breaking is enabled and the cell goes beyond the limit, a page break is done before outputting.
- * @param float $w Cell width. If 0, the cell extends up to the right margin.
- * @param float $h Cell minimum height. The cell extends automatically if needed.
- * @param float $x upper-left corner X coordinate
- * @param float $y upper-left corner Y coordinate
- * @param string $html html text to print. Default value: empty string.
- * @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
- * @param int $ln Indicates where the current position should go after the call. Possible values are:
0: to the right (or left for RTL language)
1: to the beginning of the next line
2: below
+ * @param $w (float) Cell width. If 0, the cell extends up to the right margin.
+ * @param $h (float) Cell minimum height. The cell extends automatically if needed.
+ * @param $x (float) upper-left corner X coordinate
+ * @param $y (float) upper-left corner Y coordinate
+ * @param $html (string) html text to print. Default value: empty string.
+ * @param $border (mixed) Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
+ * @param $ln (int) Indicates where the current position should go after the call. Possible values are:
0: to the right (or left for RTL language)
1: to the beginning of the next line
2: below
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
- * @param boolean $fill Indicates if the cell background must be painted (true) or transparent (false).
- * @param boolean $reseth if true reset the last cell height (default true).
- * @param string $align Allows to center or align the text. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
- * @param boolean $autopadding if true, uses internal padding and automatically adjust it to account for line width.
- * @access public
- * @uses MultiCell()
+ * @param $fill (boolean) Indicates if the cell background must be painted (true) or transparent (false).
+ * @param $reseth (boolean) if true reset the last cell height (default true).
+ * @param $align (string) Allows to center or align the text. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
+ * @param $autopadding (boolean) if true, uses internal padding and automatically adjust it to account for line width.
* @see Multicell(), writeHTML()
+ * @public
*/
public function writeHTMLCell($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=false, $reseth=true, $align='', $autopadding=true) {
return $this->MultiCell($w, $h, $html, $border, $align, $fill, $ln, $x, $y, $reseth, 0, true, $autopadding, 0);
@@ -19049,13 +19031,13 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* Allows to preserve some HTML formatting (limited support).
* IMPORTANT: The HTML must be well formatted - try to clean-up it using an application like HTML-Tidy before submitting.
* Supported tags are: a, b, blockquote, br, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, li, ol, p, pre, small, span, strong, sub, sup, table, tcpdf, td, th, thead, tr, tt, u, ul
- * @param string $html text to display
- * @param boolean $ln if true add a new line after text (default = true)
- * @param boolean $fill Indicates if the background must be painted (true) or transparent (false).
- * @param boolean $reseth if true reset the last cell height (default false).
- * @param boolean $cell if true add the current left (or right for RTL) padding to each Write (default false).
- * @param string $align Allows to center or align the text. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
- * @access public
+ * @param $html (string) text to display
+ * @param $ln (boolean) if true add a new line after text (default = true)
+ * @param $fill (boolean) Indicates if the background must be painted (true) or transparent (false).
+ * @param $reseth (boolean) if true reset the last cell height (default false).
+ * @param $cell (boolean) if true add the current left (or right for RTL) padding to each Write (default false).
+ * @param $align (string) Allows to center or align the text. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
+ * @public
*/
public function writeHTML($html, $ln=true, $fill=false, $reseth=false, $cell=false, $align='') {
$gvars = $this->getGraphicVars();
@@ -20515,10 +20497,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Process opening tags.
- * @param array $dom html dom array
- * @param int $key current element id
- * @param boolean $cell if true add the default left (or right if RTL) padding to each new line (default false).
- * @access protected
+ * @param $dom (array) html dom array
+ * @param $key (int) current element id
+ * @param $cell (boolean) if true add the default left (or right if RTL) padding to each new line (default false).
+ * @protected
*/
protected function openHTMLTagHandler(&$dom, $key, $cell) {
$tag = $dom[$key];
@@ -21131,11 +21113,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Process closing tags.
- * @param array $dom html dom array
- * @param int $key current element id
- * @param boolean $cell if true add the default left (or right if RTL) padding to each new line (default false).
- * @param int $maxbottomliney maximum y value of current line
- * @access protected
+ * @param $dom (array) html dom array
+ * @param $key (int) current element id
+ * @param $cell (boolean) if true add the default left (or right if RTL) padding to each new line (default false).
+ * @param $maxbottomliney (int) maximum y value of current line
+ * @protected
*/
protected function closeHTMLTagHandler(&$dom, $key, $cell, $maxbottomliney=0) {
$tag = $dom[$key];
@@ -21645,12 +21627,12 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Add vertical spaces if needed.
- * @param string $hbz Distance between current y and line bottom.
- * @param string $hb The height of the break.
- * @param boolean $cell if true add the default left (or right if RTL) padding to each new line (default false).
- * @param boolean $firsttag set to true when the tag is the first.
- * @param boolean $lasttag set to true when the tag is the last.
- * @access protected
+ * @param $hbz (string) Distance between current y and line bottom.
+ * @param $hb (string) The height of the break.
+ * @param $cell (boolean) if true add the default left (or right if RTL) padding to each new line (default false).
+ * @param $firsttag (boolean) set to true when the tag is the first.
+ * @param $lasttag (boolean) set to true when the tag is the last.
+ * @protected
*/
protected function addHTMLVertSpace($hbz=0, $hb=0, $cell=false, $firsttag=false, $lasttag=false) {
if ($firsttag) {
@@ -21675,7 +21657,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Return the starting coordinates to draw an html border
* @return array containing top-left border coordinates
- * @access protected
+ * @protected
* @since 5.7.000 (2010-08-03)
*/
protected function getBorderStartPosition() {
@@ -21689,9 +21671,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Draw an HTML block border and fill
- * @param array $tag array of tag properties.
- * @param int $xmax end X coordinate for border.
- * @access protected
+ * @param $tag (array) array of tag properties.
+ * @param $xmax (int) end X coordinate for border.
+ * @protected
* @since 5.7.000 (2010-08-03)
*/
protected function drawHTMLTagBorder($tag, $xmax) {
@@ -21887,8 +21869,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set the default bullet to be used as LI bullet symbol
- * @param string $symbol character or string to be used (legal values are: '' = automatic, '!' = auto bullet, '#' = auto numbering, 'disc', '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', 'img|type|width|height|image.ext')
- * @access public
+ * @param $symbol (string) character or string to be used (legal values are: '' = automatic, '!' = auto bullet, '#' = auto numbering, 'disc', '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', 'img|type|width|height|image.ext')
+ * @public
* @since 4.0.028 (2008-09-26)
*/
public function setLIsymbol($symbol='!') {
@@ -21929,10 +21911,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set the booklet mode for double-sided pages.
- * @param boolean $booklet true set the booklet mode on, false otherwise.
- * @param float $inner Inner page margin.
- * @param float $outer Outer page margin.
- * @access public
+ * @param $booklet (boolean) true set the booklet mode on, false otherwise.
+ * @param $inner (float) Inner page margin.
+ * @param $outer (float) Outer page margin.
+ * @public
* @since 4.2.000 (2008-10-29)
*/
public function SetBooklet($booklet=true, $inner=-1, $outer=-1) {
@@ -21947,8 +21929,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Swap the left and right margins.
- * @param boolean $reverse if true swap left and right margins.
- * @access protected
+ * @param $reverse (boolean) if true swap left and right margins.
+ * @protected
* @since 4.2.000 (2008-10-29)
*/
protected function swapMargins($reverse=true) {
@@ -21971,8 +21953,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* the second level contains 0 for opening tags or 1 for closing tags,
* the third level contains the vertical space unit (h) and the number spaces to add (n).
* If the h parameter is not specified, default values are used.
- * @param array $tagvs array of tags and relative vertical spaces.
- * @access public
+ * @param $tagvs (array) array of tags and relative vertical spaces.
+ * @public
* @since 4.2.001 (2008-10-30)
*/
public function setHtmlVSpace($tagvs) {
@@ -21981,8 +21963,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set custom width for list indentation.
- * @param float $width width of the indentation. Use negative value to disable it.
- * @access public
+ * @param $width (float) width of the indentation. Use negative value to disable it.
+ * @public
* @since 4.2.007 (2008-11-12)
*/
public function setListIndentWidth($width) {
@@ -21991,8 +21973,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set the top/bottom cell sides to be open or closed when the cell cross the page.
- * @param boolean $isopen if true keeps the top/bottom border open for the cell sides that cross the page.
- * @access public
+ * @param $isopen (boolean) if true keeps the top/bottom border open for the cell sides that cross the page.
+ * @public
* @since 4.2.010 (2008-11-14)
*/
public function setOpenCell($isopen) {
@@ -22001,9 +21983,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set the color and font style for HTML links.
- * @param array $color RGB array of colors
- * @param string $fontstyle additional font styles to add
- * @access public
+ * @param $color (array) RGB array of colors
+ * @param $fontstyle (string) additional font styles to add
+ * @public
* @since 4.4.003 (2008-12-09)
*/
public function setHtmlLinksStyle($color=array(0,0,255), $fontstyle='U') {
@@ -22013,12 +21995,12 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Convert HTML string containing value and unit of measure to user's units or points.
- * @param string $htmlval string containing values and unit
- * @param string $refsize reference value in points
- * @param string $defaultunit default unit (can be one of the following: %, em, ex, px, in, mm, pc, pt).
- * @param boolean $point if true returns points, otherwise returns value in user's units
+ * @param $htmlval (string) string containing values and unit
+ * @param $refsize (string) reference value in points
+ * @param $defaultunit (string) default unit (can be one of the following: %, em, ex, px, in, mm, pc, pt).
+ * @param $points (boolean) if true returns points, otherwise returns value in user's units
* @return float value in user's unit or point if $points=true
- * @access public
+ * @public
* @since 4.4.004 (2008-12-10)
*/
public function getHTMLUnitToUnits($htmlval, $refsize=1, $defaultunit='px', $points=false) {
@@ -22095,10 +22077,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Returns the Roman representation of an integer number
- * @param int number to convert
+ * @param $number (int) number to convert
* @return string roman representation of the specified number
- * @access public
* @since 4.4.004 (2008-12-10)
+ * @public
*/
public function intToRoman($number) {
$roman = '';
@@ -22159,10 +22141,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Output an HTML list bullet or ordered item symbol
- * @param int $listdepth list nesting level
- * @param string $listtype type of list
- * @param float $size current font size
- * @access protected
+ * @param $listdepth (int) list nesting level
+ * @param $listtype (string) type of list
+ * @param $size (float) current font size
+ * @protected
* @since 4.4.004 (2008-12-10)
*/
protected function putHtmlListBullet($listdepth, $listtype='', $size=10) {
@@ -22345,7 +22327,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Returns current graphic variables as array.
* @return array of graphic variables
- * @access protected
+ * @protected
* @since 4.2.010 (2008-11-14)
*/
protected function getGraphicVars() {
@@ -22403,9 +22385,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set graphic variables.
- * @param array $gvars array of graphic variablesto restore
- * @param boolean $extended if true restore extended graphic variables
- * @access protected
+ * @param $gvars (array) array of graphic variablesto restore
+ * @param $extended (boolean) if true restore extended graphic variables
+ * @protected
* @since 4.2.010 (2008-11-14)
*/
protected function setGraphicVars($gvars, $extended=false) {
@@ -22466,10 +22448,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Returns a temporary filename for caching object on filesystem.
- * @param string $prefix prefix to add to filename
- * return string filename.
- * @access protected
+ * @param $name (string) prefix to add to filename
+ * @return string filename.
* @since 4.5.000 (2008-12-31)
+ * @protected
*/
protected function getObjFilename($name) {
return tempnam(K_PATH_CACHE, $name.'_');
@@ -22477,11 +22459,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Writes data to a temporary file on filesystem.
- * @param string $file file name
- * @param mixed $data data to write on file
- * @param boolean $append if true append data, false replace.
- * @access protected
+ * @param $filename (string) file name
+ * @param $data (mixed) data to write on file
+ * @param $append (boolean) if true append data, false replace.
* @since 4.5.000 (2008-12-31)
+ * @protected
*/
protected function writeDiskCache($filename, $data, $append=false) {
if ($append) {
@@ -22506,10 +22488,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Read data from a temporary file on filesystem.
- * @param string $file file name
+ * @param $filename (string) file name
* @return mixed retrieved data
- * @access protected
* @since 4.5.000 (2008-12-31)
+ * @protected
*/
protected function readDiskCache($filename) {
return file_get_contents($filename);
@@ -22517,8 +22499,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set buffer content (always append data).
- * @param string $data data
- * @access protected
+ * @param $data (string) data
+ * @protected
* @since 4.5.000 (2009-01-02)
*/
protected function setBuffer($data) {
@@ -22535,8 +22517,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Replace the buffer content
- * @param string $data data
- * @access protected
+ * @param $data (string) data
+ * @protected
* @since 5.5.000 (2010-06-22)
*/
protected function replaceBuffer($data) {
@@ -22554,7 +22536,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Get buffer content.
* @return string buffer content
- * @access protected
+ * @protected
* @since 4.5.000 (2009-01-02)
*/
protected function getBuffer() {
@@ -22567,10 +22549,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set page buffer content.
- * @param int $page page number
- * @param string $data page data
- * @param boolean $append if true append data, false replace.
- * @access protected
+ * @param $page (int) page number
+ * @param $data (string) page data
+ * @param $append (boolean) if true append data, false replace.
+ * @protected
* @since 4.5.000 (2008-12-31)
*/
protected function setPageBuffer($page, $data, $append=false) {
@@ -22595,9 +22577,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Get page buffer content.
- * @param int $page page number
+ * @param $page (int) page number
* @return string page buffer content or false in case of error
- * @access protected
+ * @protected
* @since 4.5.000 (2008-12-31)
*/
protected function getPageBuffer($page) {
@@ -22611,9 +22593,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set image buffer content.
- * @param string $image image key
- * @param array $data image data
- * @access protected
+ * @param $image (string) image key
+ * @param $data (array) image data
+ * @protected
* @since 4.5.000 (2008-12-31)
*/
protected function setImageBuffer($image, $data) {
@@ -22633,10 +22615,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set image buffer content for a specified sub-key.
- * @param string $image image key
- * @param string $key image sub-key
- * @param array $data image data
- * @access protected
+ * @param $image (string) image key
+ * @param $key (string) image sub-key
+ * @param $data (array) image data
+ * @protected
* @since 4.5.000 (2008-12-31)
*/
protected function setImageSubBuffer($image, $key, $data) {
@@ -22654,9 +22636,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Get image buffer content.
- * @param string $image image key
+ * @param $image (string) image key
* @return string image buffer content or false in case of error
- * @access protected
+ * @protected
* @since 4.5.000 (2008-12-31)
*/
protected function getImageBuffer($image) {
@@ -22670,9 +22652,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set font buffer content.
- * @param string $font font key
- * @param array $data font data
- * @access protected
+ * @param $font (string) font key
+ * @param $data (array) font data
+ * @protected
* @since 4.5.000 (2009-01-02)
*/
protected function setFontBuffer($font, $data) {
@@ -22695,10 +22677,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set font buffer content.
- * @param string $font font key
- * @param string $key font sub-key
- * @param array $data font data
- * @access protected
+ * @param $font (string) font key
+ * @param $key (string) font sub-key
+ * @param $data (array) font data
+ * @protected
* @since 4.5.000 (2009-01-02)
*/
protected function setFontSubBuffer($font, $key, $data) {
@@ -22716,9 +22698,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Get font buffer content.
- * @param string $font font key
+ * @param $font (string) font key
* @return string font buffer content or false in case of error
- * @access protected
+ * @protected
* @since 4.5.000 (2009-01-02)
*/
protected function getFontBuffer($font) {
@@ -22732,10 +22714,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Move a page to a previous position.
- * @param int $frompage number of the source page
- * @param int $topage number of the destination page (must be less than $frompage)
+ * @param $frompage (int) number of the source page
+ * @param $topage (int) number of the destination page (must be less than $frompage)
* @return true in case of success, false in case of error.
- * @access public
+ * @public
* @since 4.5.000 (2009-01-02)
*/
public function movePage($frompage, $topage) {
@@ -22876,9 +22858,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Remove the specified page.
- * @param int $page page to remove
+ * @param $page (int) page to remove
* @return true in case of success, false in case of error.
- * @access public
+ * @public
* @since 4.6.004 (2009-04-23)
*/
public function deletePage($page) {
@@ -23019,9 +23001,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Clone the specified page to a new page.
- * @param int $page number of page to copy (0 = current page)
+ * @param $page (int) number of page to copy (0 = current page)
* @return true in case of success, false in case of error.
- * @access public
+ * @public
* @since 4.9.015 (2010-04-20)
*/
public function copyPage($page=0) {
@@ -23085,11 +23067,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* Before calling this method you have to open the page using the addTOCPage() method.
* After calling this method you have to call endTOCPage() to close the TOC page.
* You can override this method to achieve different styles.
- * @param int $page page number where this TOC should be inserted (leave empty for current page).
- * @param string $numbersfont set the font for page numbers (please use monospaced font for better alignment).
- * @param string $filler string used to fill the space between text and page number.
- * @param string $toc_name name to use for TOC bookmark.
- * @access public
+ * @param $page (int) page number where this TOC should be inserted (leave empty for current page).
+ * @param $numbersfont (string) set the font for page numbers (please use monospaced font for better alignment).
+ * @param $filler (string) string used to fill the space between text and page number.
+ * @param $toc_name (string) name to use for TOC bookmark.
+ * @public
* @author Nicola Asuni
* @since 4.5.000 (2009-01-02)
* @see addTOCPage(), endTOCPage(), addHTMLTOC()
@@ -23257,11 +23239,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* Output a Table Of Content Index (TOC) using HTML templates.
* Before calling this method you have to open the page using the addTOCPage() method.
* After calling this method you have to call endTOCPage() to close the TOC page.
- * @param int $page page number where this TOC should be inserted (leave empty for current page).
- * @param string $toc_name name to use for TOC bookmark.
- * @param array $templates array of html templates. Use: #TOC_DESCRIPTION# for bookmark title, #TOC_PAGE_NUMBER# for page number.
- * @param boolean $correct_align if true correct the number alignment (numbers must be in monospaced font like courier and right aligned on LTR, or left aligned on RTL)
- * @access public
+ * @param $page (int) page number where this TOC should be inserted (leave empty for current page).
+ * @param $toc_name (string) name to use for TOC bookmark.
+ * @param $templates (array) array of html templates. Use: "#TOC_DESCRIPTION#" for bookmark title, "#TOC_PAGE_NUMBER#" for page number.
+ * @param $correct_align (boolean) if true correct the number alignment (numbers must be in monospaced font like courier and right aligned on LTR, or left aligned on RTL)
+ * @public
* @author Nicola Asuni
* @since 5.0.001 (2010-05-06)
* @see addTOCPage(), endTOCPage(), addTOC()
@@ -23370,7 +23352,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Stores a copy of the current TCPDF object used for undo operation.
- * @access public
+ * @public
* @since 4.5.029 (2009-03-19)
*/
public function startTransaction() {
@@ -23387,7 +23369,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Delete the copy of the current TCPDF object used for undo operation.
- * @access public
+ * @public
* @since 4.5.029 (2009-03-19)
*/
public function commitTransaction() {
@@ -23399,9 +23381,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* This method allows to undo the latest transaction by returning the latest saved TCPDF object with startTransaction().
- * @param boolean $self if true restores current class object to previous state without the need of reassignment via the returned value.
+ * @param $self (boolean) if true restores current class object to previous state without the need of reassignment via the returned value.
* @return TCPDF object.
- * @access public
+ * @public
* @since 4.5.029 (2009-03-19)
*/
public function rollbackTransaction($self=false) {
@@ -23428,9 +23410,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Creates a copy of a class object
- * @param object $object class object to be cloned
+ * @param $object (object) class object to be cloned
* @return cloned object
- * @access public
+ * @public
* @since 4.5.029 (2009-03-19)
*/
public function objclone($object) {
@@ -23439,9 +23421,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Determine whether a string is empty.
- * @param string $str string to be checked
+ * @param $str (string) string to be checked
* @return boolean true if string is empty
- * @access public
+ * @public
* @since 4.5.044 (2009-04-16)
*/
public function empty_string($str) {
@@ -23450,11 +23432,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Find position of last occurrence of a substring in a string
- * @param string $haystack The string to search in.
- * @param string $needle substring to search.
- * @param int $offset May be specified to begin searching an arbitrary number of characters into the string.
+ * @param $haystack (string) The string to search in.
+ * @param $needle (string) substring to search.
+ * @param $offset (int) May be specified to begin searching an arbitrary number of characters into the string.
* @return Returns the position where the needle exists. Returns FALSE if the needle was not found.
- * @access public
+ * @public
* @since 4.8.038 (2010-03-13)
*/
public function revstrpos($haystack, $needle, $offset = 0) {
@@ -23468,10 +23450,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set multiple columns of the same size
- * @param int $numcols number of columns (set to zero to disable columns mode)
- * @param int $width column width
- * @param int $y column starting Y position (leave empty for current Y position)
- * @access public
+ * @param $numcols (int) number of columns (set to zero to disable columns mode)
+ * @param $width (int) column width
+ * @param $y (int) column starting Y position (leave empty for current Y position)
+ * @public
* @since 4.9.001 (2010-03-28)
*/
public function setEqualColumns($numcols=0, $width=0, $y='') {
@@ -23503,8 +23485,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set columns array.
* Each column is represented by an array of arrays with the following keys: (w = width, s = space between columns, y = column top position).
- * @param array $columns
- * @access public
+ * @param $columns (array)
+ * @public
* @since 4.9.001 (2010-03-28)
*/
public function setColumnsArray($columns) {
@@ -23516,8 +23498,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set position at a given column
- * @param int $col column number (from 0 to getNumberOfColumns()-1); empty string = current column.
- * @access public
+ * @param $col (int) column number (from 0 to getNumberOfColumns()-1); empty string = current column.
+ * @public
* @since 4.9.001 (2010-03-28)
*/
public function selectColumn($col='') {
@@ -23592,7 +23574,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Return the current column number
* @return int current column number
- * @access public
+ * @public
* @since 5.5.011 (2010-07-08)
*/
public function getColumn() {
@@ -23602,7 +23584,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Return the current number of columns.
* @return int number of columns
- * @access public
+ * @public
* @since 5.8.018 (2010-08-25)
*/
public function getNumberOfColumns() {
@@ -23611,9 +23593,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Serialize an array of parameters to be used with TCPDF tag in HTML code.
- * @param array $pararray parameters array
+ * @param $pararray (array) parameters array
* @return sting containing serialized data
- * @access public
+ * @public
* @since 4.9.006 (2010-04-02)
*/
public function serializeTCPDFtagParameters($pararray) {
@@ -23622,10 +23604,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set Text rendering mode.
- * @param int $stroke outline size in user units (0 = disable).
- * @param boolean $fill if true fills the text (default).
- * @param boolean $clip if true activate clipping mode
- * @access public
+ * @param $stroke (int) outline size in user units (0 = disable).
+ * @param $fill (boolean) if true fills the text (default).
+ * @param $clip (boolean) if true activate clipping mode
+ * @public
* @since 4.9.008 (2009-04-02)
*/
public function setTextRenderingMode($stroke=0, $fill=true, $clip=false) {
@@ -23679,17 +23661,17 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Returns an array of chars containing soft hyphens.
- * @param array $word array of chars
- * @param array $patterns Array of hypenation patterns.
- * @param array $dictionary Array of words to be returned without applying the hyphenation algoritm.
- * @param int $leftmin Minimum number of character to leave on the left of the word without applying the hyphens.
- * @param int $rightmin Minimum number of character to leave on the right of the word without applying the hyphens.
- * @param int $charmin Minimum word lenght to apply the hyphenation algoritm.
- * @param int $charmax Maximum lenght of broken piece of word.
+ * @param $word (array) array of chars
+ * @param $patterns (array) Array of hypenation patterns.
+ * @param $dictionary (array) Array of words to be returned without applying the hyphenation algoritm.
+ * @param $leftmin (int) Minimum number of character to leave on the left of the word without applying the hyphens.
+ * @param $rightmin (int) Minimum number of character to leave on the right of the word without applying the hyphens.
+ * @param $charmin (int) Minimum word lenght to apply the hyphenation algoritm.
+ * @param $charmax (int) Maximum lenght of broken piece of word.
* @return array text with soft hyphens
* @author Nicola Asuni
* @since 4.9.012 (2010-04-12)
- * @access protected
+ * @protected
*/
protected function hyphenateWord($word, $patterns, $dictionary=array(), $leftmin=1, $rightmin=2, $charmin=1, $charmax=8) {
$hyphenword = array(); // hyphens positions
@@ -23755,11 +23737,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Returns an array of hyphenation patterns.
- * @param string $file TEX file containing hypenation patterns. TEX pattrns can be downloaded from http://www.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/
+ * @param $file (string) TEX file containing hypenation patterns. TEX pattrns can be downloaded from http://www.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/
* @return array of hyphenation patterns
* @author Nicola Asuni
* @since 4.9.012 (2010-04-12)
- * @access public
+ * @public
*/
public function getHyphenPatternsFromTEX($file) {
// TEX patterns are available at:
@@ -23788,17 +23770,17 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Returns text with soft hyphens.
- * @param string $text text to process
- * @param mixed $patterns Array of hypenation patterns or a TEX file containing hypenation patterns. TEX patterns can be downloaded from http://www.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/
- * @param array $dictionary Array of words to be returned without applying the hyphenation algoritm.
- * @param int $leftmin Minimum number of character to leave on the left of the word without applying the hyphens.
- * @param int $rightmin Minimum number of character to leave on the right of the word without applying the hyphens.
- * @param int $charmin Minimum word lenght to apply the hyphenation algoritm.
- * @param int $charmax Maximum lenght of broken piece of word.
+ * @param $text (string) text to process
+ * @param $patterns (mixed) Array of hypenation patterns or a TEX file containing hypenation patterns. TEX patterns can be downloaded from http://www.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/
+ * @param $dictionary (array) Array of words to be returned without applying the hyphenation algoritm.
+ * @param $leftmin (int) Minimum number of character to leave on the left of the word without applying the hyphens.
+ * @param $rightmin (int) Minimum number of character to leave on the right of the word without applying the hyphens.
+ * @param $charmin (int) Minimum word lenght to apply the hyphenation algoritm.
+ * @param $charmax (int) Maximum lenght of broken piece of word.
* @return array text with soft hyphens
* @author Nicola Asuni
* @since 4.9.012 (2010-04-12)
- * @access public
+ * @public
*/
public function hyphenateText($text, $patterns, $dictionary=array(), $leftmin=1, $rightmin=2, $charmin=1, $charmax=8) {
$text = $this->unhtmlentities($text);
@@ -23842,8 +23824,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Enable/disable rasterization of vector images using ImageMagick library.
- * @param boolean $mode if true enable rasterization, false otherwise.
- * @access public
+ * @param $mode (boolean) if true enable rasterization, false otherwise.
+ * @public
* @since 5.0.000 (2010-04-27)
*/
public function setRasterizeVectorImages($mode) {
@@ -23852,7 +23834,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Get the Path-Painting Operators.
- * @param string $style Style of rendering. Possible values are:
+ * @param $style (string) Style of rendering. Possible values are:
*
*
S or D: Stroke the path.
*
s or d: Close and stroke the path.
@@ -23866,11 +23848,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
*
CEO: Clipping mode using the nonzero winding number rule to determine which regions lie inside the clipping path
*
n: End the path object without filling or stroking it.
*
- * @param string $default default style
- * @param boolean $mode if true enable rasterization, false otherwise.
+ * @param $default (string) default style
* @author Nicola Asuni
- * @access protected
* @since 5.0.000 (2010-04-30)
+ * @protected
*/
protected function getPathPaintOperator($style, $default='S') {
$op = '';
@@ -23944,9 +23925,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Enable or disable default option for font subsetting.
- * @param boolean $enable if true enable font subsetting by default.
+ * @param $enable (boolean) if true enable font subsetting by default.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.3.002 (2010-06-07)
*/
public function setFontSubsetting($enable=true) {
@@ -23957,7 +23938,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* Return the default option for font subsetting.
* @return boolean default font subsetting state.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.3.002 (2010-06-07)
*/
public function getFontSubsetting() {
@@ -23966,11 +23947,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Left trim the input string
- * @param string $str string to trim
- * @param string $replace string that replace spaces.
+ * @param $str (string) string to trim
+ * @param $replace (string) string that replace spaces.
* @return left trimmed string
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.8.000 (2010-08-11)
*/
public function stringLeftTrim($str, $replace='') {
@@ -23979,11 +23960,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Right trim the input string
- * @param string $str string to trim
- * @param string $replace string that replace spaces.
+ * @param $str (string) string to trim
+ * @param $replace (string) string that replace spaces.
* @return right trimmed string
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.8.000 (2010-08-11)
*/
public function stringRightTrim($str, $replace='') {
@@ -23992,11 +23973,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Trim the input string
- * @param string $str string to trim
- * @param string $replace string that replace spaces.
+ * @param $str (string) string to trim
+ * @param $replace (string) string that replace spaces.
* @return trimmed string
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.8.000 (2010-08-11)
*/
public function stringTrim($str, $replace='') {
@@ -24009,7 +23990,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* Return true if the current font is unicode type.
* @return true for unicode font, false otherwise.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.8.002 (2010-08-14)
*/
public function isUnicodeFont() {
@@ -24018,10 +23999,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Return normalized font name
- * @param string $fontfamily property string containing font family names
+ * @param $fontfamily (string) property string containing font family names
* @return string normalized font name
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.8.004 (2010-08-17)
*/
public function getFontFamilyName($fontfamily) {
@@ -24058,11 +24039,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* An XObject Template is a PDF block that is a self-contained description of any sequence of graphics objects (including path objects, text objects, and sampled images).
* An XObject Template may be painted multiple times, either on several pages or at several locations on the same page and produces the same results each time, subject only to the graphics state at the time it is invoked.
* Note: X,Y coordinates will be reset to 0,0.
- * @param int $w Template width in user units (empty string or zero = page width less margins)
- * @param int $h Template height in user units (empty string or zero = page height less margins)
+ * @param $w (int) Template width in user units (empty string or zero = page width less margins)
+ * @param $h (int) Template height in user units (empty string or zero = page height less margins)
* @return int the XObject Template ID in case of success or false in case of error.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.8.017 (2010-08-24)
* @see endTemplate(), printTemplate()
*/
@@ -24122,7 +24103,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* An XObject Template may be painted multiple times, either on several pages or at several locations on the same page and produces the same results each time, subject only to the graphics state at the time it is invoked.
* @return int the XObject Template ID in case of success or false in case of error.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.8.017 (2010-08-24)
* @see startTemplate(), printTemplate()
*/
@@ -24142,16 +24123,16 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* You can print an XObject Template inside the currently opened Template.
* An XObject Template is a PDF block that is a self-contained description of any sequence of graphics objects (including path objects, text objects, and sampled images).
* An XObject Template may be painted multiple times, either on several pages or at several locations on the same page and produces the same results each time, subject only to the graphics state at the time it is invoked.
- * @param string $id The ID of XObject Template to print.
- * @param int $x X position in user units (empty string = current x position)
- * @param int $y Y position in user units (empty string = current y position)
- * @param int $w Width in user units (zero = remaining page width)
- * @param int $h Height in user units (zero = remaining page height)
- * @param string $align Indicates the alignment of the pointer next to template insertion relative to template height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
- * @param string $palign Allows to center or align the template on the current line. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
- * @param boolean $fitonpage if true the template is resized to not exceed page dimensions.
+ * @param $id (string) The ID of XObject Template to print.
+ * @param $x (int) X position in user units (empty string = current x position)
+ * @param $y (int) Y position in user units (empty string = current y position)
+ * @param $w (int) Width in user units (zero = remaining page width)
+ * @param $h (int) Height in user units (zero = remaining page height)
+ * @param $align (string) Indicates the alignment of the pointer next to template insertion relative to template height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
+ * @param $palign (string) Allows to center or align the template on the current line. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
+ * @param $fitonpage (boolean) if true the template is resized to not exceed page dimensions.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.8.017 (2010-08-24)
* @see startTemplate(), endTemplate()
*/
@@ -24274,9 +24255,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set the percentage of character stretching.
- * @param int $perc percentage of stretching (100 = no stretching)
+ * @param $perc (int) percentage of stretching (100 = no stretching)
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.9.000 (2010-09-29)
*/
public function setFontStretching($perc=100) {
@@ -24287,7 +24268,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* Get the percentage of character stretching.
* @return float stretching value
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.9.000 (2010-09-29)
*/
public function getFontStretching() {
@@ -24296,9 +24277,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Set the amount to increase or decrease the space between characters in a text.
- * @param float $spacing amount to increase or decrease the space between characters in a text (0 = default spacing)
+ * @param $spacing (float) amount to increase or decrease the space between characters in a text (0 = default spacing)
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.9.000 (2010-09-29)
*/
public function setFontSpacing($spacing=0) {
@@ -24309,7 +24290,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* Get the amount to increase or decrease the space between characters in a text.
* @return int font spacing (tracking/kerning) value
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.9.000 (2010-09-29)
*/
public function getFontSpacing() {
@@ -24320,7 +24301,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* Return an array of no-write page regions
* @return array of no-write page regions
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.9.003 (2010-10-13)
* @see setPageRegions(), addPageRegion()
*/
@@ -24333,9 +24314,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* A no-write region is a portion of the page with a rectangular or trapezium shape that will not be covered when writing text or html code.
* A region is always aligned on the left or right side of the page ad is defined using a vertical segment.
* You can set multiple regions for the same page.
- * @param array $regions array of no-write regions. For each region you can define an array as follow: ('page' => page number or empy for current page, 'xt' => X top, 'yt' => Y top, 'xb' => X bottom, 'yb' => Y bottom, 'side' => page side 'L' = left or 'R' = right). Omit this parameter to remove all regions.
+ * @param $regions (array) array of no-write regions. For each region you can define an array as follow: ('page' => page number or empy for current page, 'xt' => X top, 'yt' => Y top, 'xb' => X bottom, 'yb' => Y bottom, 'side' => page side 'L' = left or 'R' = right). Omit this parameter to remove all regions.
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.9.003 (2010-10-13)
* @see addPageRegion(), getPageRegions()
*/
@@ -24353,9 +24334,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* A no-write region is a portion of the page with a rectangular or trapezium shape that will not be covered when writing text or html code.
* A region is always aligned on the left or right side of the page ad is defined using a vertical segment.
* You can set multiple regions for the same page.
- * @param array $region array of a single no-write region array: ('page' => page number or empy for current page, 'xt' => X top, 'yt' => Y top, 'xb' => X bottom, 'yb' => Y bottom, 'side' => page side 'L' = left or 'R' = right).
+ * @param $region (array) array of a single no-write region array: ('page' => page number or empy for current page, 'xt' => X top, 'yt' => Y top, 'xb' => X bottom, 'yb' => Y bottom, 'side' => page side 'L' = left or 'R' = right).
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.9.003 (2010-10-13)
* @see setPageRegions(), getPageRegions()
*/
@@ -24372,9 +24353,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Remove a single no-write region.
- * @param int $key region key
+ * @param $key (int) region key
* @author Nicola Asuni
- * @access public
+ * @public
* @since 5.9.003 (2010-10-13)
* @see setPageRegions(), getPageRegions()
*/
@@ -24388,11 +24369,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* Check page for no-write regions and adapt current coordinates and page margins if necessary.
* A no-write region is a portion of the page with a rectangular or trapezium shape that will not be covered when writing text or html code.
* A region is always aligned on the left or right side of the page ad is defined using a vertical segment.
- * @param float $h height of the text/image/object to print in user units
- * @param float $x current X coordinate in user units
- * @param float $y current Y coordinate in user units
+ * @param $h (float) height of the text/image/object to print in user units
+ * @param $x (float) current X coordinate in user units
+ * @param $y (float) current Y coordinate in user units
* @author Nicola Asuni
- * @access protected
+ * @protected
* @since 5.9.003 (2010-10-13)
*/
protected function checkPageRegions($h, &$x, &$y) {
@@ -24467,19 +24448,19 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Embedd a Scalable Vector Graphics (SVG) image.
* NOTE: SVG standard is not yet fully implemented, use the setRasterizeVectorImages() method to enable/disable rasterization of vector images using ImageMagick library.
- * @param string $file Name of the SVG file or a '@' character followed by the SVG data string.
- * @param float $x Abscissa of the upper-left corner.
- * @param float $y Ordinate of the upper-left corner.
- * @param float $w Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
- * @param float $h Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
- * @param mixed $link URL or identifier returned by AddLink().
- * @param string $align Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
If the alignment is an empty string, then the pointer will be restored on the starting SVG position.
- * @param string $palign Allows to center or align the image on the current line. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
- * @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
- * @param boolean $fitonpage if true the image is resized to not exceed page dimensions.
+ * @param $file (string) Name of the SVG file or a '@' character followed by the SVG data string.
+ * @param $x (float) Abscissa of the upper-left corner.
+ * @param $y (float) Ordinate of the upper-left corner.
+ * @param $w (float) Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
+ * @param $h (float) Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
+ * @param $link (mixed) URL or identifier returned by AddLink().
+ * @param $align (string) Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
If the alignment is an empty string, then the pointer will be restored on the starting SVG position.
+ * @param $palign (string) Allows to center or align the image on the current line. Possible values are:
L : left align
C : center
R : right align
'' : empty string : left for LTR or right for RTL
+ * @param $border (mixed) Indicates if borders must be drawn around the cell. The value can be a number:
0: no border (default)
1: frame
or a string containing some or all of the following characters (in any order):
L: left
T: top
R: right
B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
+ * @param $fitonpage (boolean) if true the image is resized to not exceed page dimensions.
* @author Nicola Asuni
* @since 5.0.000 (2010-05-02)
- * @access public
+ * @public
*/
public function ImageSVG($file, $x='', $y='', $w=0, $h=0, $link='', $align='', $palign='', $border=0, $fitonpage=false) {
if ($this->rasterize_vector_images AND ($w > 0) AND ($h > 0)) {
@@ -24777,11 +24758,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Get the tranformation matrix from SVG transform attribute
- * @param string transformation
+ * @param $attribute (string) transformation
* @return array of transformations
* @author Nicola Asuni
* @since 5.0.000 (2010-05-02)
- * @access protected
+ * @protected
*/
protected function getSVGTransformMatrix($attribute) {
// identity matrix
@@ -24872,12 +24853,12 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Get the product of two SVG tranformation matrices
- * @param array $ta first SVG tranformation matrix
- * @param array $tb second SVG tranformation matrix
+ * @param $ta (array) first SVG tranformation matrix
+ * @param $tb (array) second SVG tranformation matrix
* @return transformation array
* @author Nicola Asuni
* @since 5.0.000 (2010-05-02)
- * @access protected
+ * @protected
*/
protected function getTransformationMatrixProduct($ta, $tb) {
$tm = array();
@@ -24892,9 +24873,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Convert SVG transformation matrix to PDF.
- * @param array $tm original SVG transformation matrix
+ * @param $tm (array) original SVG transformation matrix
* @return array transformation matrix
- * @access protected
+ * @protected
* @since 5.0.000 (2010-05-02)
*/
protected function convertSVGtMatrix($tm) {
@@ -24913,8 +24894,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Apply SVG graphic transformation matrix.
- * @param array $tm original SVG transformation matrix
- * @access protected
+ * @param $tm (array) original SVG transformation matrix
+ * @protected
* @since 5.0.000 (2010-05-02)
*/
protected function SVGTransform($tm) {
@@ -24923,18 +24904,18 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Apply the requested SVG styles (*** TO BE COMPLETED ***)
- * @param array $svgstyle array of SVG styles to apply
- * @param array $prevsvgstyle array of previous SVG style
- * @param int $x X origin of the bounding box
- * @param int $y Y origin of the bounding box
- * @param int $w width of the bounding box
- * @param int $h height of the bounding box
- * @param string $clip_function clip function
- * @param array $clip_params array of parameters for clipping function
+ * @param $svgstyle (array) array of SVG styles to apply
+ * @param $prevsvgstyle (array) array of previous SVG style
+ * @param $x (int) X origin of the bounding box
+ * @param $y (int) Y origin of the bounding box
+ * @param $w (int) width of the bounding box
+ * @param $h (int) height of the bounding box
+ * @param $clip_function (string) clip function
+ * @param $clip_params (array) array of parameters for clipping function
* @return object style
* @author Nicola Asuni
* @since 5.0.000 (2010-05-02)
- * @access protected
+ * @protected
*/
protected function setSVGStyles($svgstyle, $prevsvgstyle, $x=0, $y=0, $w=1, $h=1, $clip_function='', $clip_params=array()) {
$objstyle = '';
@@ -25200,8 +25181,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Draws an SVG path
- * @param string $d attribute d of the path SVG element
- * @param string $style Style of rendering. Possible values are:
+ * @param $d (string) attribute d of the path SVG element
+ * @param $style (string) Style of rendering. Possible values are:
*
*
D or empty string: Draw (default).
*
F: Fill.
@@ -25214,7 +25195,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
* @return array of container box measures (x, y, w, h)
* @author Nicola Asuni
* @since 5.0.000 (2010-05-02)
- * @access protected
+ * @protected
*/
protected function SVGPath($d, $style='') {
// set fill/stroke style
@@ -25532,13 +25513,13 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Returns the angle in radiants between two vectors
- * @param int $x1 X coordiante of first vector point
- * @param int $y1 Y coordiante of first vector point
- * @param int $x2 X coordiante of second vector point
- * @param int $y2 Y coordiante of second vector point
+ * @param $x1 (int) X coordiante of first vector point
+ * @param $y1 (int) Y coordiante of first vector point
+ * @param $x2 (int) X coordiante of second vector point
+ * @param $y2 (int) Y coordiante of second vector point
* @author Nicola Asuni
* @since 5.0.000 (2010-05-04)
- * @access protected
+ * @protected
*/
protected function getVectorsAngle($x1, $y1, $x2, $y2) {
$dprod = ($x1 * $x2) + ($y1 * $y2);
@@ -25556,13 +25537,13 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Sets the opening SVG element handler function for the XML parser. (*** TO BE COMPLETED ***)
- * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler.
- * @param string $name The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters.
- * @param array $attribs The third parameter, attribs, contains an associative array with the element's attributes (if any). The keys of this array are the attribute names, the values are the attribute values. Attribute names are case-folded on the same criteria as element names. Attribute values are not case-folded. The original order of the attributes can be retrieved by walking through attribs the normal way, using each(). The first key in the array was the first attribute, and so on.
- * @param array $ctm tranformation matrix for clipping mode (starting transformation matrix).
+ * @param $parser (resource) The first parameter, parser, is a reference to the XML parser calling the handler.
+ * @param $name (string) The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters.
+ * @param $attribs (array) The third parameter, attribs, contains an associative array with the element's attributes (if any). The keys of this array are the attribute names, the values are the attribute values. Attribute names are case-folded on the same criteria as element names. Attribute values are not case-folded. The original order of the attributes can be retrieved by walking through attribs the normal way, using each(). The first key in the array was the first attribute, and so on.
+ * @param $ctm (array) tranformation matrix for clipping mode (starting transformation matrix).
* @author Nicola Asuni
* @since 5.0.000 (2010-05-02)
- * @access protected
+ * @protected
*/
protected function startSVGElementHandler($parser, $name, $attribs, $ctm=array()) {
// check if we are in clip mode
@@ -26019,11 +26000,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Sets the closing SVG element handler function for the XML parser.
- * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler.
- * @param string $name The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters.
+ * @param $parser (resource) The first parameter, parser, is a reference to the XML parser calling the handler.
+ * @param $name (string) The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters.
* @author Nicola Asuni
* @since 5.0.000 (2010-05-02)
- * @access protected
+ * @protected
*/
protected function endSVGElementHandler($parser, $name) {
switch($name) {
@@ -26088,11 +26069,11 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
/**
* Sets the character data handler function for the XML parser.
- * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler.
- * @param string $data The second parameter, data, contains the character data as a string.
+ * @param $parser (resource) The first parameter, parser, is a reference to the XML parser calling the handler.
+ * @param $data (string) The second parameter, data, contains the character data as a string.
* @author Nicola Asuni
* @since 5.0.000 (2010-05-02)
- * @access protected
+ * @protected
*/
protected function segSVGContentHandler($parser, $data) {
$this->svgtext .= $data;
diff --git a/unicode_data.php b/unicode_data.php
index 190dbc5..80dc31b 100755
--- a/unicode_data.php
+++ b/unicode_data.php
@@ -1,9 +1,9 @@
'BN',
@@ -17870,10 +17864,8 @@ public $uni_type = array(
);
/**
- * @var Mirror unicode characters.
- * For information on bidi mirroring, see UAX #9: Bidirectional Algorithm,
- * at http://www.unicode.org/unicode/reports/tr9/
- * @access public
+ * Mirror unicode characters. For information on bidi mirroring, see UAX #9: Bidirectional Algorithm, at http://www.unicode.org/unicode/reports/tr9/
+ * @public
*/
public $uni_mirror = array (
0x0028=>0x0029,
@@ -18230,8 +18222,8 @@ public $uni_mirror = array (
0xFF63=>0xFF62);
/**
- * @var Arabic shape substitutions: char code => (isolated, final, initial, medial)
- * @access public
+ * Arabic shape substitutions: char code => (isolated, final, initial, medial).
+ * @public
*/
public $uni_arabicsubst = array(
1569=>array(65152),
@@ -18313,8 +18305,8 @@ public $uni_arabicsubst = array(
);
/**
- * @var Arabic laa letter: char code => isolated, final, initial, medial
- * @access public
+ * Arabic laa letter: (char code => isolated, final, initial, medial).
+ * @public
*/
public $uni_laa_array = array (
1570 =>array(65269, 65270, 65269, 65270),
@@ -18324,10 +18316,10 @@ public $uni_laa_array = array (
);
/**
- * @var Array of character substitutions for sequences of two diacritics symbols.
+ * Array of character substitutions for sequences of two diacritics symbols.
* Putting the combining mark and character in the same glyph allows us to avoid the two marks overlapping each other in an illegible manner.
* second NSM char code => substitution char
- * @access public
+ * @public
*/
public $uni_diacritics = array (
1612=>64606, # Shadda + Dammatan
@@ -18338,8 +18330,8 @@ public $uni_diacritics = array (
);
/**
- * @var Array of character substitutions from UTF-8 Unicode to Latin1
- * @access public
+ * Array of character substitutions from UTF-8 Unicode to Latin1.
+ * @public
*/
public $uni_utf8tolatin = array (
8364=>128, # Euro1