forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-32447 import latest tcpdf and point cache to tcpdf subdirectory o…
…f moodle cache dir
- Loading branch information
Showing
44 changed files
with
1,225 additions
and
701 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?php | ||
//============================================================+ | ||
// File name : 2dbarcodes.php | ||
// Version : 1.0.012 | ||
// Version : 1.0.013 | ||
// Begin : 2009-04-07 | ||
// Last Update : 2011-09-15 | ||
// Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - [email protected] | ||
// Last Update : 2012-01-12 | ||
// Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - [email protected] | ||
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html) | ||
// ------------------------------------------------------------------- | ||
// Copyright (C) 2009-2011 Nicola Asuni - Tecnick.com S.r.l. | ||
// Copyright (C) 2009-2012 Nicola Asuni - Tecnick.com LTD | ||
// | ||
// This file is part of TCPDF software library. | ||
// | ||
|
@@ -37,14 +37,14 @@ | |
* PHP class to creates array representations for 2D barcodes to be used with TCPDF. | ||
* @package com.tecnick.tcpdf | ||
* @author Nicola Asuni | ||
* @version 1.0.012 | ||
* @version 1.0.013 | ||
*/ | ||
|
||
/** | ||
* @class TCPDF2DBarcode | ||
* PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org). | ||
* @package com.tecnick.tcpdf | ||
* @version 1.0.012 | ||
* @version 1.0.013 | ||
* @author Nicola Asuni | ||
*/ | ||
class TCPDF2DBarcode { | ||
|
@@ -142,8 +142,7 @@ public function getBarcodeSVGcode($w=3, $h=3, $color='black') { | |
* @public | ||
*/ | ||
public function getBarcodeHTML($w=10, $h=10, $color='black') { | ||
// replace table for special characters | ||
$html = '<div style="font-size:0;position:relative;">'."\n"; | ||
$html = '<div style="font-size:0;position:relative;width:'.($w * $this->barcode_array['num_cols']).'px;height:'.($h * $this->barcode_array['num_rows']).'px;">'."\n"; | ||
// print barcode elements | ||
$y = 0; | ||
// for each row | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?php | ||
//============================================================+ | ||
// File name : barcodes.php | ||
// Version : 1.0.021 | ||
// Version : 1.0.023 | ||
// Begin : 2008-06-09 | ||
// Last Update : 2011-09-15 | ||
// Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - [email protected] | ||
// Last Update : 2012-01-14 | ||
// Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - [email protected] | ||
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html) | ||
// ------------------------------------------------------------------- | ||
// Copyright (C) 2008-2011 Nicola Asuni - Tecnick.com S.r.l. | ||
// Copyright (C) 2008-2012 Nicola Asuni - Tecnick.com LTD | ||
// | ||
// This file is part of TCPDF software library. | ||
// | ||
|
@@ -37,14 +37,14 @@ | |
* PHP class to creates array representations for common 1D barcodes to be used with TCPDF. | ||
* @package com.tecnick.tcpdf | ||
* @author Nicola Asuni | ||
* @version 1.0.021 | ||
* @version 1.0.023 | ||
*/ | ||
|
||
/** | ||
* @class TCPDFBarcode | ||
* PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br> | ||
* @package com.tecnick.tcpdf | ||
* @version 1.0.021 | ||
* @version 1.0.023 | ||
* @author Nicola Asuni | ||
*/ | ||
class TCPDFBarcode { | ||
|
@@ -145,8 +145,7 @@ public function getBarcodeSVGcode($w=2, $h=30, $color='black') { | |
* @public | ||
*/ | ||
public function getBarcodeHTML($w=2, $h=30, $color='black') { | ||
// replace table for special characters | ||
$html = '<div style="font-size:0;position:relative;">'."\n"; | ||
$html = '<div style="font-size:0;position:relative;width:'.($this->barcode_array['maxw'] * $w).'px;height:'.($h).'px;">'."\n"; | ||
// print bars | ||
$x = 0; | ||
foreach ($this->barcode_array['bcode'] as $k => $v) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,17 +5,27 @@ | |
// Last Update : 2011-04-15 | ||
// | ||
// Description : Configuration file for TCPDF. | ||
// Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - [email protected] | ||
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html) | ||
// ------------------------------------------------------------------- | ||
// Copyright (C) 2004-2012 Nicola Asuni - Tecnick.com LTD | ||
// | ||
// Author: Nicola Asuni | ||
// This file is part of TCPDF software library. | ||
// | ||
// (c) Copyright: | ||
// Nicola Asuni | ||
// Tecnick.com s.r.l. | ||
// Via Della Pace, 11 | ||
// 09044 Quartucciu (CA) | ||
// ITALY | ||
// www.tecnick.com | ||
// [email protected] | ||
// TCPDF is free software: you can redistribute it and/or modify it | ||
// under the terms of the GNU Lesser General Public License as | ||
// published by the Free Software Foundation, either version 3 of the | ||
// License, or (at your option) any later version. | ||
// | ||
// TCPDF is distributed in the hope that it will be useful, but | ||
// WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
// See the GNU Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public License | ||
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>. | ||
// | ||
// See LICENSE.TXT file for more information. | ||
//============================================================+ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,10 @@ | |
// Version : 1.0.001 | ||
// Begin : 2010-06-07 | ||
// Last Update : 2011-09-14 | ||
// Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - [email protected] | ||
// Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - [email protected] | ||
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html) | ||
// ------------------------------------------------------------------- | ||
// Copyright (C) 2010-2011 Nicola Asuni - Tecnick.com S.r.l. | ||
// Copyright (C) 2010-2012 Nicola Asuni - Tecnick.com LTD | ||
// | ||
// This file is part of TCPDF software library. | ||
// | ||
|
@@ -941,7 +941,7 @@ protected function getHighLevelEncoding($data) { | |
/** | ||
* Places "chr+bit" with appropriate wrapping within array[]. | ||
* (Annex F - ECC 200 symbol character placement) | ||
* @param $marr array Array of symbols. | ||
* @param $marr (array) Array of symbols. | ||
* @param $nrow (int) Number of rows. | ||
* @param $ncol (int) Number of columns. | ||
* @param $row (int) Row number. | ||
|
@@ -967,7 +967,7 @@ protected function placeModule($marr, $nrow, $ncol, $row, $col, $chr, $bit) { | |
/** | ||
* Places the 8 bits of a utah-shaped symbol character. | ||
* (Annex F - ECC 200 symbol character placement) | ||
* @param $marr array Array of symbols. | ||
* @param $marr (array) Array of symbols. | ||
* @param $nrow (int) Number of rows. | ||
* @param $ncol (int) Number of columns. | ||
* @param $row (int) Row number. | ||
|
@@ -991,7 +991,7 @@ protected function placeUtah($marr, $nrow, $ncol, $row, $col, $chr) { | |
/** | ||
* Places the 8 bits of the first special corner case. | ||
* (Annex F - ECC 200 symbol character placement) | ||
* @param $marr array Array of symbols. | ||
* @param $marr (array) Array of symbols. | ||
* @param $nrow (int) Number of rows. | ||
* @param $ncol (int) Number of columns. | ||
* @param $chr (int) Char byte. | ||
|
@@ -1013,7 +1013,7 @@ protected function placeCornerA($marr, $nrow, $ncol, $chr) { | |
/** | ||
* Places the 8 bits of the second special corner case. | ||
* (Annex F - ECC 200 symbol character placement) | ||
* @param $marr array Array of symbols. | ||
* @param $marr (array) Array of symbols. | ||
* @param $nrow (int) Number of rows. | ||
* @param $ncol (int) Number of columns. | ||
* @param $chr (int) Char byte. | ||
|
@@ -1035,7 +1035,7 @@ protected function placeCornerB($marr, $nrow, $ncol, $chr) { | |
/** | ||
* Places the 8 bits of the third special corner case. | ||
* (Annex F - ECC 200 symbol character placement) | ||
* @param $marr array Array of symbols. | ||
* @param $marr (array) Array of symbols. | ||
* @param $nrow (int) Number of rows. | ||
* @param $ncol (int) Number of columns. | ||
* @param $chr (int) Char byte. | ||
|
@@ -1057,7 +1057,7 @@ protected function placeCornerC($marr, $nrow, $ncol, $chr) { | |
/** | ||
* Places the 8 bits of the fourth special corner case. | ||
* (Annex F - ECC 200 symbol character placement) | ||
* @param $marr array Array of symbols. | ||
* @param $marr (array) Array of symbols. | ||
* @param $nrow (int) Number of rows. | ||
* @param $ncol (int) Number of columns. | ||
* @param $chr (int) Char byte. | ||
|
Oops, something went wrong.