From: vyshane
Date: Mon, 4 Sep 2006 08:11:37 +0000 (+0000)
Subject: TCPDF pdf library
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b331040e9e7a1945572719ac49095bd1a798e3aa;p=moodle.git
TCPDF pdf library
---
diff --git a/lib/tcpdf/README.TXT b/lib/tcpdf/README.TXT
new file mode 100755
index 0000000000..998db3de78
--- /dev/null
+++ b/lib/tcpdf/README.TXT
@@ -0,0 +1,70 @@
+
+This is a trimmed down distribution of TCPDF, tailored for Moodle. The API
+and code are the same. However, extra fonts and font-convertion utilities have
+been removed to keep the Moodle download size to a minimum.
+
+Following is the original TCPDF README.
+
+
+
+TCPDF - README
+============================================================
+
+Name:
+ TCPDF
+
+Version:
+ 1.53.0.TC023_PHP4
+
+Release date:
+ 2006-08-05
+
+Author:
+ Nicola Asuni
+
+Copyright (c) 2001-2006:
+ Tecnick.com S.r.l.
+ Via Ugo Foscolo n.19
+ 09045 Quartu Sant'Elena (CA)
+ ITALY
+ www.tecnick.com
+
+URLs:
+ http://tcpdf.sourceforge.net/
+ http://tcpdf.sf.net/
+
+Description:
+ TCPDF is a PHP4 class for generating PDF files on-the-fly without requiring external extensions.
+ TCPDF is an extension and improvement of the FPDF class by Olivier Plathey (http://www.fpdf.org).
+
+ Main Features:
+
+ - supports all ISO page formats;
+ - supports UTF-8 Unicode;
+ - includes methods to publish some xhtml code, supporting the following elements: h1, h2, h3, h4, h5, h6, b, u, i, a, img, p, br, strong, em, font, blockquote, li, ul, ol, hr, td, th, tr, table, sup, sub, small;
+ - includes a method to print various barcode formats using an improved version of "Generic Barcode Render Class" by Karim Mribti (http://www.mribti.com/barcode/) (require GD library: http://www.boutell.com/gd/)
+ - supports TrueTypeUnicode, TrueType, Type1 and encoding;
+ - supports custom page formats, margins and units of measure;
+ - includes methods for page header and footer management;
+ - supports automatic page break;
+ - supports automatic page numbering;
+ - supports automatic line break and text justification;
+ - supports JPEG and PNG images;
+ - supports colors;
+ - supports links;
+ - support page compression (require zlib extension: http://www.gzip.org/zlib/);
+ - the source code is full documented in PhpDocumentor Style (http://www.phpdoc.org).
+
+Installation:
+ 1. copy the folder on your Web server
+ 2. set your installation path on the config/tcpdf_config.php
+ 3. call the test_unicode.php page with your browser to see an example
+ NOTE: the test_old.php require proper font setup on tcpdf_config.
+
+Source Code Documentation:
+ doc/index.html
+
+License
+ GNU LESSER GENERAL PUBLIC LICENSE v.2.1
+ http://www.gnu.org/copyleft/lesser.html
+============================================================
\ No newline at end of file
diff --git a/lib/tcpdf/barcode/barcode.php b/lib/tcpdf/barcode/barcode.php
new file mode 100755
index 0000000000..133d8ce7c3
--- /dev/null
+++ b/lib/tcpdf/barcode/barcode.php
@@ -0,0 +1,441 @@
+mWidth = $Width;
+ $this->mHeight = $Height;
+ $this->mStyle = $Style;
+ $this->mFont = BCD_DEFAULT_FONT;
+ $this->mImg = ImageCreate($this->mWidth, $this->mHeight);
+ $dbColor = $this->mStyle & BCS_REVERSE_COLOR ? BCD_DEFAULT_FOREGROUND_COLOR : BCD_DEFAULT_BACKGROUND_COLOR;
+ $dfColor = $this->mStyle & BCS_REVERSE_COLOR ? BCD_DEFAULT_BACKGROUND_COLOR : BCD_DEFAULT_FOREGROUND_COLOR;
+ $this->mBgcolor = ImageColorAllocate($this->mImg, ($dbColor & 0xFF0000) >> 16,
+ ($dbColor & 0x00FF00) >> 8, $dbColor & 0x0000FF);
+ $this->mBrush = ImageColorAllocate($this->mImg, ($dfColor & 0xFF0000) >> 16,
+ ($dfColor & 0x00FF00) >> 8, $dfColor & 0x0000FF);
+ if (!($this->mStyle & BCS_TRANSPARENT)) {
+ ImageFill($this->mImg, $this->mWidth, $this->mHeight, $this->mBgcolor);
+ }
+ }
+
+ /**
+ * Returns the image object.
+ * @return object image.
+ * @author Nicola Asuni
+ * @since 1.5.2
+ */
+ function getImage() {
+ return $this->mImg;
+ }
+
+ /**
+ * Abstract method used to draw the barcode image.
+ * @param int $xres Horizontal resolution.
+ */
+ function DrawObject($xres) {
+ /* there is not implementation neded, is simply the asbsract function. */
+ return false;
+ }
+
+ /**
+ * Draws the barcode border.
+ * @access protected
+ */
+ function DrawBorder() {
+ ImageRectangle($this->mImg, 0, 0, $this->mWidth-1, $this->mHeight-1, $this->mBrush);
+ }
+
+ /**
+ * Draws the alphanumeric code.
+ * @param int $Font Font type.
+ * @param int $xPos Horiziontal position.
+ * @param int $yPos Vertical position.
+ * @param int $Char Alphanumeric code to write.
+ * @access protected
+ */
+ function DrawChar($Font, $xPos, $yPos, $Char) {
+ ImageString($this->mImg,$Font,$xPos,$yPos,$Char,$this->mBrush);
+ }
+
+ /**
+ * Draws a character string.
+ * @param int $Font Font type.
+ * @param int $xPos Horiziontal position.
+ * @param int $yPos Vertical position.
+ * @param int $Char string to write.
+ * @access protected
+ */
+ function DrawText($Font, $xPos, $yPos, $Char) {
+ ImageString($this->mImg,$Font,$xPos,$yPos,$Char,$this->mBrush);
+ }
+
+ /**
+ * Draws a single barcode bar.
+ * @param int $xPos Horiziontal position.
+ * @param int $yPos Vertical position.
+ * @param int $xSize Horizontal size.
+ * @param int $xSize Vertical size.
+ * @return bool trur in case of success, false otherwise.
+ * @access protected
+ */
+ function DrawSingleBar($xPos, $yPos, $xSize, $ySize) {
+ if ($xPos>=0 && $xPos<=$this->mWidth && ($xPos+$xSize)<=$this->mWidth &&
+ $yPos>=0 && $yPos<=$this->mHeight && ($yPos+$ySize)<=$this->mHeight) {
+ for ($i=0;$i<$xSize;$i++) {
+ ImageLine($this->mImg, $xPos+$i, $yPos, $xPos+$i, $yPos+$ySize, $this->mBrush);
+ }
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * Returns the current error message.
+ * @return string error message.
+ */
+ function GetError() {
+ return $this->mError;
+ }
+
+ /**
+ * Returns the font height.
+ * @param int $font font type.
+ * @return int font height.
+ */
+ function GetFontHeight($font) {
+ return ImageFontHeight($font);
+ }
+
+ /**
+ * Returns the font width.
+ * @param int $font font type.
+ * @return int font width.
+ */
+ function GetFontWidth($font) {
+ return ImageFontWidth($font);
+ }
+
+ /**
+ * Set font type.
+ * @param int $font font type.
+ */
+ function SetFont($font) {
+ $this->mFont = $font;
+ }
+
+ /**
+ * Returns barcode style.
+ * @return int barcode style.
+ */
+ function GetStyle() {
+ return $this->mStyle;
+ }
+
+ /**
+ * Set barcode style.
+ * @param int $Style barcode style.
+ */
+ function SetStyle ($Style) {
+ $this->mStyle = $Style;
+ }
+
+ /**
+ * Flush the barcode image.
+ */
+ function FlushObject() {
+ if (($this->mStyle & BCS_BORDER)) {
+ $this->DrawBorder();
+ }
+ if ($this->mStyle & BCS_IMAGE_PNG) {
+ Header("Content-Type: image/png");
+ ImagePng($this->mImg);
+ } else if ($this->mStyle & BCS_IMAGE_JPEG) {
+ Header("Content-Type: image/jpeg");
+ ImageJpeg($this->mImg);
+ }
+ }
+
+ /**
+ * Destroy the barcode image.
+ */
+ function DestroyObject() {
+ ImageDestroy($this->mImg);
+ }
+}
+
+//============================================================+
+// END OF FILE
+//============================================================+
+?>
\ No newline at end of file
diff --git a/lib/tcpdf/barcode/c128aobject.php b/lib/tcpdf/barcode/c128aobject.php
new file mode 100755
index 0000000000..15cbbfad51
--- /dev/null
+++ b/lib/tcpdf/barcode/c128aobject.php
@@ -0,0 +1,399 @@
+
+ * Code 128-A is a continuous, multilevel and include all upper case alphanumeric characters and ASCII control characters.
+ * @author Karim Mribti, Nicola Asuni
+ * @name BarcodeObject
+ * @package com.tecnick.tcpdf
+ * @version 0.0.8a 2001-04-01 (original code)
+ * @since 2001-03-25
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL
+ */
+
+/**
+ * Code 128-A Barcode Render Class for PHP using the GD graphics library.
+ * Code 128-A is a continuous, multilevel and include all upper case alphanumeric characters and ASCII control characters.
+ * @author Karim Mribti, Nicola Asuni
+ * @name BarcodeObject
+ * @package com.tecnick.tcpdf
+ * @version 0.0.8a 2001-04-01 (original code)
+ * @since 2001-03-25
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL
+ */
+class C128AObject extends BarcodeObject {
+
+ /**
+ * Class Constructor.
+ * @param int $Width Image width in pixels.
+ * @param int $Height Image height in pixels.
+ * @param int $Style Barcode style.
+ * @param int $Value value to print on barcode.
+ */
+ function C128AObject($Width, $Height, $Style, $Value) {
+ $this->BarcodeObject($Width, $Height, $Style);
+ $this->mValue = $Value;
+ $this->mChars = " !\"#$%&'()*+�-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_";
+ $this->mCharSet = array (
+ "212222", /* 00 */
+ "222122", /* 01 */
+ "222221", /* 02 */
+ "121223", /* 03 */
+ "121322", /* 04 */
+ "131222", /* 05 */
+ "122213", /* 06 */
+ "122312", /* 07 */
+ "132212", /* 08 */
+ "221213", /* 09 */
+ "221312", /* 10 */
+ "231212", /* 11 */
+ "112232", /* 12 */
+ "122132", /* 13 */
+ "122231", /* 14 */
+ "113222", /* 15 */
+ "123122", /* 16 */
+ "123221", /* 17 */
+ "223211", /* 18 */
+ "221132", /* 19 */
+ "221231", /* 20 */
+ "213212", /* 21 */
+ "223112", /* 22 */
+ "312131", /* 23 */
+ "311222", /* 24 */
+ "321122", /* 25 */
+ "321221", /* 26 */
+ "312212", /* 27 */
+ "322112", /* 28 */
+ "322211", /* 29 */
+ "212123", /* 30 */
+ "212321", /* 31 */
+ "232121", /* 32 */
+ "111323", /* 33 */
+ "131123", /* 34 */
+ "131321", /* 35 */
+ "112313", /* 36 */
+ "132113", /* 37 */
+ "132311", /* 38 */
+ "211313", /* 39 */
+ "231113", /* 40 */
+ "231311", /* 41 */
+ "112133", /* 42 */
+ "112331", /* 43 */
+ "132131", /* 44 */
+ "113123", /* 45 */
+ "113321", /* 46 */
+ "133121", /* 47 */
+ "313121", /* 48 */
+ "211331", /* 49 */
+ "231131", /* 50 */
+ "213113", /* 51 */
+ "213311", /* 52 */
+ "213131", /* 53 */
+ "311123", /* 54 */
+ "311321", /* 55 */
+ "331121", /* 56 */
+ "312113", /* 57 */
+ "312311", /* 58 */
+ "332111", /* 59 */
+ "314111", /* 60 */
+ "221411", /* 61 */
+ "431111", /* 62 */
+ "111224", /* 63 */
+ "111422", /* 64 */
+ "121124", /* 65 */
+ "121421", /* 66 */
+ "141122", /* 67 */
+ "141221", /* 68 */
+ "112214", /* 69 */
+ "112412", /* 70 */
+ "122114", /* 71 */
+ "122411", /* 72 */
+ "142112", /* 73 */
+ "142211", /* 74 */
+ "241211", /* 75 */
+ "221114", /* 76 */
+ "413111", /* 77 */
+ "241112", /* 78 */
+ "134111", /* 79 */
+ "111242", /* 80 */
+ "121142", /* 81 */
+ "121241", /* 82 */
+ "114212", /* 83 */
+ "124112", /* 84 */
+ "124211", /* 85 */
+ "411212", /* 86 */
+ "421112", /* 87 */
+ "421211", /* 88 */
+ "212141", /* 89 */
+ "214121", /* 90 */
+ "412121", /* 91 */
+ "111143", /* 92 */
+ "111341", /* 93 */
+ "131141", /* 94 */
+ "114113", /* 95 */
+ "114311", /* 96 */
+ "411113", /* 97 */
+ "411311", /* 98 */
+ "113141", /* 99 */
+ "114131", /* 100 */
+ "311141", /* 101 */
+ "411131" /* 102 */
+ );
+ }
+
+ /**
+ * Returns the character index.
+ * @param char $char character.
+ * @return int character index or -1 in case of error.
+ * @access private
+ */
+ function GetCharIndex($char) {
+ for ($i=0;$i<64;$i++) {
+ if ($this->mChars[$i] == $char) {
+ return $i;
+ }
+ }
+ return -1;
+ }
+
+ /**
+ * Returns the bar size.
+ * @param int $xres Horizontal resolution.
+ * @param char $char Character.
+ * @return int barcode size.
+ * @access private
+ */
+ function GetBarSize($xres, $char) {
+ switch ($char) {
+ case '1': {
+ $cVal = BCD_C128_BAR_1;
+ break;
+ }
+ case '2': {
+ $cVal = BCD_C128_BAR_2;
+ break;
+ }
+ case '3': {
+ $cVal = BCD_C128_BAR_3;
+ break;
+ }
+ case '4': {
+ $cVal = BCD_C128_BAR_4;
+ break;
+ }
+ default: {
+ $cVal = 0;
+ }
+ }
+ return $cVal * $xres;
+ }
+
+ /**
+ * Returns barcode size.
+ * @param int $xres Horizontal resolution.
+ * @return barcode size.
+ * @access private
+ */
+ function GetSize($xres) {
+ $len = strlen($this->mValue);
+
+ if ($len == 0) {
+ $this->mError = "Null value";
+ return false;
+ }
+ $ret = 0;
+ for ($i=0;$i<$len;$i++) {
+ if (($id = $this->GetCharIndex($this->mValue[$i])) == -1) {
+ $this->mError = "C128A not include the char '".$this->mValue[$i]."'";
+ return false;
+ } else {
+ $cset = $this->mCharSet[$id];
+ $ret += $this->GetBarSize($xres, $cset[0]);
+ $ret += $this->GetBarSize($xres, $cset[1]);
+ $ret += $this->GetBarSize($xres, $cset[2]);
+ $ret += $this->GetBarSize($xres, $cset[3]);
+ $ret += $this->GetBarSize($xres, $cset[4]);
+ $ret += $this->GetBarSize($xres, $cset[5]);
+ }
+ }
+
+ /* length of Check character */
+ $cset = $this->GetCheckCharValue();
+ $CheckSize = 0;
+ for ($i=0;$i<6;$i++) {
+ $CheckSize += $this->GetBarSize($cset[$i], $xres);
+ }
+ $StartSize = 2*BCD_C128_BAR_2*$xres + 3*BCD_C128_BAR_1*$xres + BCD_C128_BAR_4*$xres;
+ $StopSize = 2*BCD_C128_BAR_2*$xres + 3*BCD_C128_BAR_1*$xres + 2*BCD_C128_BAR_3*$xres;
+ return $StartSize + $ret + $CheckSize + $StopSize;
+ }
+
+ /**
+ * Returns the check-char value.
+ * @return string.
+ * @access private
+ */
+ function GetCheckCharValue() {
+ $len = strlen($this->mValue);
+ $sum = 103; // 'A' type;
+ for ($i=0;$i<$len;$i++) {
+ $sum += $this->GetCharIndex($this->mValue[$i]) * ($i+1);
+ }
+ $check = $sum % 103;
+ return $this->mCharSet[$check];
+ }
+
+ /**
+ * Draws the start code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawStart($DrawPos, $yPos, $ySize, $xres) {
+ /* Start code is '211412' */
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('2', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('1', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $DrawPos += $this->GetBarSize('4', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('1', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the stop code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawStop($DrawPos, $yPos, $ySize, $xres) {
+ /* Stop code is '2331112' */
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('2', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ $DrawPos += $this->GetBarSize('3', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('3', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('3', $xres);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('1', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('2', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the check-char code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawCheckChar($DrawPos, $yPos, $ySize, $xres) {
+ $cset = $this->GetCheckCharValue();
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[0], $xres) , $ySize);
+ $DrawPos += $this->GetBarSize($cset[0], $xres);
+ $DrawPos += $this->GetBarSize($cset[1], $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[2], $xres) , $ySize);
+ $DrawPos += $this->GetBarSize($cset[2], $xres);
+ $DrawPos += $this->GetBarSize($cset[3], $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[4], $xres) , $ySize);
+ $DrawPos += $this->GetBarSize($cset[4], $xres);
+ $DrawPos += $this->GetBarSize($cset[5], $xres);
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the barcode object.
+ * @param int $xres Horizontal resolution.
+ * @return bool true in case of success.
+ */
+ function DrawObject($xres) {
+ $len = strlen($this->mValue);
+ if (($size = $this->GetSize($xres))==0) {
+ return false;
+ }
+
+ if ($this->mStyle & BCS_ALIGN_CENTER) $sPos = (integer)(($this->mWidth - $size ) / 2);
+ else if ($this->mStyle & BCS_ALIGN_RIGHT) $sPos = $this->mWidth - $size;
+ else $sPos = 0;
+
+ /* Total height of bar code -Bars only- */
+ if ($this->mStyle & BCS_DRAW_TEXT) $ysize = $this->mHeight - BCD_DEFAULT_MAR_Y1 - BCD_DEFAULT_MAR_Y2 - $this->GetFontHeight($this->mFont);
+ else $ysize = $this->mHeight - BCD_DEFAULT_MAR_Y1 - BCD_DEFAULT_MAR_Y2;
+
+ /* Draw text */
+ if ($this->mStyle & BCS_DRAW_TEXT) {
+ if ($this->mStyle & BCS_STRETCH_TEXT) {
+ for ($i=0;$i<$len;$i++) {
+ $this->DrawChar($this->mFont, $sPos+(2*BCD_C128_BAR_2*$xres + 3*BCD_C128_BAR_1*$xres + BCD_C128_BAR_4*$xres)+($size/$len)*$i,
+ $ysize + BCD_DEFAULT_MAR_Y1 + BCD_DEFAULT_TEXT_OFFSET, $this->mValue[$i]);
+ }
+ } else {/* Center */
+ $text_width = $this->GetFontWidth($this->mFont) * strlen($this->mValue);
+ $this->DrawText($this->mFont, $sPos+(($size-$text_width)/2)+(2*BCD_C128_BAR_2*$xres + 3*BCD_C128_BAR_1*$xres + BCD_C128_BAR_4*$xres),
+ $ysize + BCD_DEFAULT_MAR_Y1 + BCD_DEFAULT_TEXT_OFFSET, $this->mValue);
+ }
+ }
+
+ $cPos = 0;
+ $DrawPos = $this->DrawStart($sPos, BCD_DEFAULT_MAR_Y1 , $ysize, $xres);
+ do {
+ $c = $this->GetCharIndex($this->mValue[$cPos]);
+ $cset = $this->mCharSet[$c];
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[0], $xres) , $ysize);
+ $DrawPos += $this->GetBarSize($cset[0], $xres);
+ $DrawPos += $this->GetBarSize($cset[1], $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[2], $xres) , $ysize);
+ $DrawPos += $this->GetBarSize($cset[2], $xres);
+ $DrawPos += $this->GetBarSize($cset[3], $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[4], $xres) , $ysize);
+ $DrawPos += $this->GetBarSize($cset[4], $xres);
+ $DrawPos += $this->GetBarSize($cset[5], $xres);
+ $cPos++;
+ } while ($cPos<$len);
+ $DrawPos = $this->DrawCheckChar($DrawPos, BCD_DEFAULT_MAR_Y1 , $ysize, $xres);
+ $DrawPos = $this->DrawStop($DrawPos, BCD_DEFAULT_MAR_Y1 , $ysize, $xres);
+ return true;
+ }
+}
+
+//============================================================+
+// END OF FILE
+//============================================================+
+?>
\ No newline at end of file
diff --git a/lib/tcpdf/barcode/c128bobject.php b/lib/tcpdf/barcode/c128bobject.php
new file mode 100755
index 0000000000..f3d5540575
--- /dev/null
+++ b/lib/tcpdf/barcode/c128bobject.php
@@ -0,0 +1,399 @@
+
+* Code 128-B is a continuous, multilevel and full ASCII code.
+* @author Karim Mribti, Nicola Asuni
+* @name BarcodeObject
+* @package com.tecnick.tcpdf
+* @version 0.0.8a 2001-04-01 (original code)
+* @since 2001-03-25
+* @license http://www.gnu.org/copyleft/lesser.html LGPL
+*/
+
+/**
+* Code 128-B Barcode Render Class for PHP using the GD graphics library.
+* Code 128-B is a continuous, multilevel and full ASCII code.
+* @author Karim Mribti, Nicola Asuni
+* @name BarcodeObject
+* @package com.tecnick.tcpdf
+* @version 0.0.8a 2001-04-01 (original code)
+* @since 2001-03-25
+* @license http://www.gnu.org/copyleft/lesser.html LGPL
+*/
+class C128BObject extends BarcodeObject {
+
+ /**
+ * Class Constructor.
+ * @param int $Width Image width in pixels.
+ * @param int $Height Image height in pixels.
+ * @param int $Style Barcode style.
+ * @param int $Value value to print on barcode.
+ */
+ function C128BObject($Width, $Height, $Style, $Value) {
+ $this->BarcodeObject($Width, $Height, $Style);
+ $this->mValue = $Value;
+ $this->mChars = " !\"#$%&'()*+�-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{ }~";
+ $this->mCharSet = array (
+ "212222", /* 00 */
+ "222122", /* 01 */
+ "222221", /* 02 */
+ "121223", /* 03 */
+ "121322", /* 04 */
+ "131222", /* 05 */
+ "122213", /* 06 */
+ "122312", /* 07 */
+ "132212", /* 08 */
+ "221213", /* 09 */
+ "221312", /* 10 */
+ "231212", /* 11 */
+ "112232", /* 12 */
+ "122132", /* 13 */
+ "122231", /* 14 */
+ "113222", /* 15 */
+ "123122", /* 16 */
+ "123221", /* 17 */
+ "223211", /* 18 */
+ "221132", /* 19 */
+ "221231", /* 20 */
+ "213212", /* 21 */
+ "223112", /* 22 */
+ "312131", /* 23 */
+ "311222", /* 24 */
+ "321122", /* 25 */
+ "321221", /* 26 */
+ "312212", /* 27 */
+ "322112", /* 28 */
+ "322211", /* 29 */
+ "212123", /* 30 */
+ "212321", /* 31 */
+ "232121", /* 32 */
+ "111323", /* 33 */
+ "131123", /* 34 */
+ "131321", /* 35 */
+ "112313", /* 36 */
+ "132113", /* 37 */
+ "132311", /* 38 */
+ "211313", /* 39 */
+ "231113", /* 40 */
+ "231311", /* 41 */
+ "112133", /* 42 */
+ "112331", /* 43 */
+ "132131", /* 44 */
+ "113123", /* 45 */
+ "113321", /* 46 */
+ "133121", /* 47 */
+ "313121", /* 48 */
+ "211331", /* 49 */
+ "231131", /* 50 */
+ "213113", /* 51 */
+ "213311", /* 52 */
+ "213131", /* 53 */
+ "311123", /* 54 */
+ "311321", /* 55 */
+ "331121", /* 56 */
+ "312113", /* 57 */
+ "312311", /* 58 */
+ "332111", /* 59 */
+ "314111", /* 60 */
+ "221411", /* 61 */
+ "431111", /* 62 */
+ "111224", /* 63 */
+ "111422", /* 64 */
+ "121124", /* 65 */
+ "121421", /* 66 */
+ "141122", /* 67 */
+ "141221", /* 68 */
+ "112214", /* 69 */
+ "112412", /* 70 */
+ "122114", /* 71 */
+ "122411", /* 72 */
+ "142112", /* 73 */
+ "142211", /* 74 */
+ "241211", /* 75 */
+ "221114", /* 76 */
+ "413111", /* 77 */
+ "241112", /* 78 */
+ "134111", /* 79 */
+ "111242", /* 80 */
+ "121142", /* 81 */
+ "121241", /* 82 */
+ "114212", /* 83 */
+ "124112", /* 84 */
+ "124211", /* 85 */
+ "411212", /* 86 */
+ "421112", /* 87 */
+ "421211", /* 88 */
+ "212141", /* 89 */
+ "214121", /* 90 */
+ "412121", /* 91 */
+ "111143", /* 92 */
+ "111341", /* 93 */
+ "131141", /* 94 */
+ "114113", /* 95 */
+ "114311", /* 96 */
+ "411113", /* 97 */
+ "411311", /* 98 */
+ "113141", /* 99 */
+ "114131", /* 100 */
+ "311141", /* 101 */
+ "411131" /* 102 */
+ );
+ }
+
+ /**
+ * Returns the character index.
+ * @param char $char character.
+ * @return int character index or -1 in case of error.
+ * @access private
+ */
+ function GetCharIndex($char) {
+ for ($i=0;$i<95;$i++) {
+ if ($this->mChars[$i] == $char) {
+ return $i;
+ }
+ }
+ return -1;
+ }
+
+ /**
+ * Returns the bar size.
+ * @param int $xres Horizontal resolution.
+ * @param char $char Character.
+ * @return int barcode size.
+ * @access private
+ */
+ function GetBarSize($xres, $char) {
+ switch ($char) {
+ case '1': {
+ $cVal = BCD_C128_BAR_1;
+ break;
+ }
+ case '2': {
+ $cVal = BCD_C128_BAR_2;
+ break;
+ }
+ case '3': {
+ $cVal = BCD_C128_BAR_3;
+ break;
+ }
+ case '4': {
+ $cVal = BCD_C128_BAR_4;
+ break;
+ }
+ default: {
+ $cVal = 0;
+ }
+ }
+ return $cVal * $xres;
+ }
+
+ /**
+ * Returns barcode size.
+ * @param int $xres Horizontal resolution.
+ * @return barcode size.
+ * @access private
+ */
+ function GetSize($xres) {
+ $len = strlen($this->mValue);
+
+ if ($len == 0) {
+ $this->mError = "Null value";
+ return false;
+ }
+ $ret = 0;
+ for ($i=0;$i<$len;$i++) {
+ if (($id = $this->GetCharIndex($this->mValue[$i])) == -1) {
+ $this->mError = "C128B not include the char '".$this->mValue[$i]."'";
+ return false;
+ } else {
+ $cset = $this->mCharSet[$id];
+ $ret += $this->GetBarSize($xres, $cset[0]);
+ $ret += $this->GetBarSize($xres, $cset[1]);
+ $ret += $this->GetBarSize($xres, $cset[2]);
+ $ret += $this->GetBarSize($xres, $cset[3]);
+ $ret += $this->GetBarSize($xres, $cset[4]);
+ $ret += $this->GetBarSize($xres, $cset[5]);
+ }
+ }
+ /* length of Check character */
+ $cset = $this->GetCheckCharValue();
+ $CheckSize = 0;
+ for ($i=0;$i<6;$i++) {
+ $CheckSize += $this->GetBarSize($cset[$i], $xres);
+ }
+
+ $StartSize = 2*BCD_C128_BAR_2*$xres + 3*BCD_C128_BAR_1*$xres + BCD_C128_BAR_4*$xres;
+ $StopSize = 2*BCD_C128_BAR_2*$xres + 3*BCD_C128_BAR_1*$xres + 2*BCD_C128_BAR_3*$xres;
+
+ return $StartSize + $ret + $CheckSize + $StopSize;
+ }
+
+ /**
+ * Returns the check-char value.
+ * @return string.
+ * @access private
+ */
+ function GetCheckCharValue() {
+ $len = strlen($this->mValue);
+ $sum = 104; // 'B' type;
+ for ($i=0;$i<$len;$i++) {
+ $sum += $this->GetCharIndex($this->mValue[$i]) * ($i+1);
+ }
+ $check = $sum % 103;
+ return $this->mCharSet[$check];
+ }
+
+ /**
+ * Draws the start code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawStart($DrawPos, $yPos, $ySize, $xres) {
+ /* Start code is '211214' */
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('2', $xres), $ySize);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('1', $xres), $ySize);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('1', $xres), $ySize);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $DrawPos += $this->GetBarSize('4', $xres);
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the stop code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawStop($DrawPos, $yPos, $ySize, $xres) {
+ /* Stop code is '2331112' */
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('2', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ $DrawPos += $this->GetBarSize('3', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('3', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('3', $xres);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('1', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('2', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the check-char code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawCheckChar($DrawPos, $yPos, $ySize, $xres) {
+ $cset = $this->GetCheckCharValue();
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[0], $xres) , $ySize);
+ $DrawPos += $this->GetBarSize($cset[0], $xres);
+ $DrawPos += $this->GetBarSize($cset[1], $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[2], $xres) , $ySize);
+ $DrawPos += $this->GetBarSize($cset[2], $xres);
+ $DrawPos += $this->GetBarSize($cset[3], $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[4], $xres) , $ySize);
+ $DrawPos += $this->GetBarSize($cset[4], $xres);
+ $DrawPos += $this->GetBarSize($cset[5], $xres);
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the barcode object.
+ * @param int $xres Horizontal resolution.
+ * @return bool true in case of success.
+ */
+ function DrawObject($xres) {
+ $len = strlen($this->mValue);
+ if (($size = $this->GetSize($xres))==0) {
+ return false;
+ }
+
+ if ($this->mStyle & BCS_ALIGN_CENTER) $sPos = (integer)(($this->mWidth - $size ) / 2);
+ else if ($this->mStyle & BCS_ALIGN_RIGHT) $sPos = $this->mWidth - $size;
+ else $sPos = 0;
+
+ /* Total height of bar code -Bars only- */
+ if ($this->mStyle & BCS_DRAW_TEXT) $ysize = $this->mHeight - BCD_DEFAULT_MAR_Y1 - BCD_DEFAULT_MAR_Y2 - $this->GetFontHeight($this->mFont);
+ else $ysize = $this->mHeight - BCD_DEFAULT_MAR_Y1 - BCD_DEFAULT_MAR_Y2;
+
+ /* Draw text */
+ if ($this->mStyle & BCS_DRAW_TEXT) {
+ if ($this->mStyle & BCS_STRETCH_TEXT) {
+ for ($i=0;$i<$len;$i++) {
+ $this->DrawChar($this->mFont, $sPos+(2*BCD_C128_BAR_2*$xres + 3*BCD_C128_BAR_1*$xres + BCD_C128_BAR_4*$xres)+($size/$len)*$i,
+ $ysize + BCD_DEFAULT_MAR_Y1 + BCD_DEFAULT_TEXT_OFFSET, $this->mValue[$i]);
+ }
+ } else {/* Center */
+ $text_width = $this->GetFontWidth($this->mFont) * strlen($this->mValue);
+ $this->DrawText($this->mFont, $sPos+(($size-$text_width)/2)+(2*BCD_C128_BAR_2*$xres + 3*BCD_C128_BAR_1*$xres + BCD_C128_BAR_4*$xres),
+ $ysize + BCD_DEFAULT_MAR_Y1 + BCD_DEFAULT_TEXT_OFFSET, $this->mValue);
+ }
+ }
+
+ $cPos = 0;
+ $DrawPos = $this->DrawStart($sPos, BCD_DEFAULT_MAR_Y1 , $ysize, $xres);
+ do {
+ $c = $this->GetCharIndex($this->mValue[$cPos]);
+ $cset = $this->mCharSet[$c];
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[0], $xres) , $ysize);
+ $DrawPos += $this->GetBarSize($cset[0], $xres);
+ $DrawPos += $this->GetBarSize($cset[1], $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[2], $xres) , $ysize);
+ $DrawPos += $this->GetBarSize($cset[2], $xres);
+ $DrawPos += $this->GetBarSize($cset[3], $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[4], $xres) , $ysize);
+ $DrawPos += $this->GetBarSize($cset[4], $xres);
+ $DrawPos += $this->GetBarSize($cset[5], $xres);
+ $cPos++;
+ } while ($cPos<$len);
+ $DrawPos = $this->DrawCheckChar($DrawPos, BCD_DEFAULT_MAR_Y1 , $ysize, $xres);
+ $DrawPos = $this->DrawStop($DrawPos, BCD_DEFAULT_MAR_Y1 , $ysize, $xres);
+ return true;
+ }
+}
+
+//============================================================+
+// END OF FILE
+//============================================================+
+?>
\ No newline at end of file
diff --git a/lib/tcpdf/barcode/c128cobject.php b/lib/tcpdf/barcode/c128cobject.php
new file mode 100755
index 0000000000..cb4923c6ef
--- /dev/null
+++ b/lib/tcpdf/barcode/c128cobject.php
@@ -0,0 +1,419 @@
+
+ * Code 128-C is numeric only and provides the most efficiency.
+ * @author Karim Mribti, Nicola Asuni
+ * @name BarcodeObject
+ * @package com.tecnick.tcpdf
+ * @version 0.0.8a 2001-04-01 (original code)
+ * @since 2001-03-25
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL
+ */
+
+/**
+ * Code 128-C Barcode Render Class for PHP using the GD graphics library.
+ * Code 128-C is numeric only and provides the most efficiency.
+ * @author Karim Mribti, Nicola Asuni
+ * @name BarcodeObject
+ * @package com.tecnick.tcpdf
+ * @version 0.0.8a 2001-04-01 (original code)
+ * @since 2001-03-25
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL
+ */
+class C128CObject extends BarcodeObject {
+
+ /**
+ * Class Constructor.
+ * @param int $Width Image width in pixels.
+ * @param int $Height Image height in pixels.
+ * @param int $Style Barcode style.
+ * @param int $Value value to print on barcode.
+ */
+ function C128CObject($Width, $Height, $Style, $Value) {
+ $this->BarcodeObject($Width, $Height, $Style);
+ $this->mValue = $Value;
+ $this->mChars = array (
+ "00", "01", "02", "03", "04", "05", "06", "07", "08", "09",
+ "10", "11", "12", "13", "14", "15", "16", "17", "18", "19",
+ "20", "21", "22", "23", "24", "25", "26", "27", "28", "29",
+ "30", "31", "32", "33", "34", "35", "36", "37", "38", "39",
+ "40", "41", "42", "43", "44", "45", "46", "47", "48", "49",
+ "50", "51", "52", "53", "54", "55", "56", "57", "58", "59",
+ "60", "61", "62", "63", "64", "65", "66", "67", "68", "69",
+ "70", "71", "72", "73", "74", "75", "76", "77", "78", "79",
+ "80", "81", "82", "83", "84", "85", "86", "87", "88", "89",
+ "90", "91", "92", "93", "94", "95", "96", "97", "98", "99",
+ );
+ $this->mCharSet = array (
+ "212222", /* 00 */
+ "222122", /* 01 */
+ "222221", /* 02 */
+ "121223", /* 03 */
+ "121322", /* 04 */
+ "131222", /* 05 */
+ "122213", /* 06 */
+ "122312", /* 07 */
+ "132212", /* 08 */
+ "221213", /* 09 */
+ "221312", /* 10 */
+ "231212", /* 11 */
+ "112232", /* 12 */
+ "122132", /* 13 */
+ "122231", /* 14 */
+ "113222", /* 15 */
+ "123122", /* 16 */
+ "123221", /* 17 */
+ "223211", /* 18 */
+ "221132", /* 19 */
+ "221231", /* 20 */
+ "213212", /* 21 */
+ "223112", /* 22 */
+ "312131", /* 23 */
+ "311222", /* 24 */
+ "321122", /* 25 */
+ "321221", /* 26 */
+ "312212", /* 27 */
+ "322112", /* 28 */
+ "322211", /* 29 */
+ "212123", /* 30 */
+ "212321", /* 31 */
+ "232121", /* 32 */
+ "111323", /* 33 */
+ "131123", /* 34 */
+ "131321", /* 35 */
+ "112313", /* 36 */
+ "132113", /* 37 */
+ "132311", /* 38 */
+ "211313", /* 39 */
+ "231113", /* 40 */
+ "231311", /* 41 */
+ "112133", /* 42 */
+ "112331", /* 43 */
+ "132131", /* 44 */
+ "113123", /* 45 */
+ "113321", /* 46 */
+ "133121", /* 47 */
+ "313121", /* 48 */
+ "211331", /* 49 */
+ "231131", /* 50 */
+ "213113", /* 51 */
+ "213311", /* 52 */
+ "213131", /* 53 */
+ "311123", /* 54 */
+ "311321", /* 55 */
+ "331121", /* 56 */
+ "312113", /* 57 */
+ "312311", /* 58 */
+ "332111", /* 59 */
+ "314111", /* 60 */
+ "221411", /* 61 */
+ "431111", /* 62 */
+ "111224", /* 63 */
+ "111422", /* 64 */
+ "121124", /* 65 */
+ "121421", /* 66 */
+ "141122", /* 67 */
+ "141221", /* 68 */
+ "112214", /* 69 */
+ "112412", /* 70 */
+ "122114", /* 71 */
+ "122411", /* 72 */
+ "142112", /* 73 */
+ "142211", /* 74 */
+ "241211", /* 75 */
+ "221114", /* 76 */
+ "413111", /* 77 */
+ "241112", /* 78 */
+ "134111", /* 79 */
+ "111242", /* 80 */
+ "121142", /* 81 */
+ "121241", /* 82 */
+ "114212", /* 83 */
+ "124112", /* 84 */
+ "124211", /* 85 */
+ "411212", /* 86 */
+ "421112", /* 87 */
+ "421211", /* 88 */
+ "212141", /* 89 */
+ "214121", /* 90 */
+ "412121", /* 91 */
+ "111143", /* 92 */
+ "111341", /* 93 */
+ "131141", /* 94 */
+ "114113", /* 95 */
+ "114311", /* 96 */
+ "411113", /* 97 */
+ "411311", /* 98 */
+ "113141", /* 99 */
+ );
+ }
+
+ /**
+ * Returns the character index.
+ * @param char $char character.
+ * @return int character index or -1 in case of error.
+ * @access private
+ */
+ function GetCharIndex($char) {
+ for ($i=0;$i<100;$i++) {
+ if ($this->mChars[$i] == $char) {
+ return $i;
+ }
+ }
+ return -1;
+ }
+
+ /**
+ * Returns the bar size.
+ * @param int $xres Horizontal resolution.
+ * @param char $char Character.
+ * @return int barcode size.
+ * @access private
+ */
+ function GetBarSize($xres, $char) {
+ switch ($char) {
+ case '1': {
+ $cVal = BCD_C128_BAR_1;
+ break;
+ }
+ case '2': {
+ $cVal = BCD_C128_BAR_2;
+ break;
+ }
+ case '3': {
+ $cVal = BCD_C128_BAR_3;
+ break;
+ }
+ case '4': {
+ $cVal = BCD_C128_BAR_4;
+ break;
+ }
+ default: {
+ $cVal = 0;
+ }
+ }
+ return $cVal * $xres;
+ }
+
+ /**
+ * Returns barcode size.
+ * @param int $xres Horizontal resolution.
+ * @return barcode size.
+ * @access private
+ */
+ function GetSize($xres) {
+ $len = strlen($this->mValue);
+
+ if ($len == 0) {
+ $this->mError = "Null value";
+ return false;
+ }
+ $ret = 0;
+
+ for ($i=0;$i<$len;$i++) {
+ if ((ord($this->mValue[$i])<48) || (ord($this->mValue[$i])>57)) {
+ $this->mError = "Code-128C is numeric only";
+ return false;
+ }
+ }
+
+ if (($len%2) != 0) {
+ $this->mError = "The length of barcode value must be even. You must pad the number with zeros.";
+ return false;
+ }
+
+ for ($i=0;$i<$len;$i+=2) {
+ $id = $this->GetCharIndex($this->mValue[$i].$this->mValue[$i+1]);
+ $cset = $this->mCharSet[$id];
+ $ret += $this->GetBarSize($xres, $cset[0]);
+ $ret += $this->GetBarSize($xres, $cset[1]);
+ $ret += $this->GetBarSize($xres, $cset[2]);
+ $ret += $this->GetBarSize($xres, $cset[3]);
+ $ret += $this->GetBarSize($xres, $cset[4]);
+ $ret += $this->GetBarSize($xres, $cset[5]);
+ }
+ /* length of Check character */
+ $cset = $this->GetCheckCharValue();
+ $CheckSize = 0;
+ for ($i=0;$i<6;$i++) {
+ $CheckSize += $this->GetBarSize($cset[$i], $xres);
+ }
+
+ $StartSize = 2*BCD_C128_BAR_2*$xres + 3*BCD_C128_BAR_1*$xres + BCD_C128_BAR_4*$xres;
+ $StopSize = 2*BCD_C128_BAR_2*$xres + 3*BCD_C128_BAR_1*$xres + 2*BCD_C128_BAR_3*$xres;
+ return $StartSize + $ret + $CheckSize + $StopSize;
+ }
+
+ /**
+ * Returns the check-char value.
+ * @return string.
+ * @access private
+ */
+ function GetCheckCharValue() {
+ $len = strlen($this->mValue);
+ $sum = 105; // 'C' type;
+ $m = 0;
+ for ($i=0;$i<$len;$i+=2) {
+ $m++;
+ $sum += $this->GetCharIndex($this->mValue[$i].$this->mValue[$i+1]) * $m;
+ }
+ $check = $sum % 103;
+ return $this->mCharSet[$check];
+ }
+
+ /**
+ * Draws the start code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawStart($DrawPos, $yPos, $ySize, $xres) {
+ /* Start code is '211232' */
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('2', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('1', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('3', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('3', $xres);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the stop code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawStop($DrawPos, $yPos, $ySize, $xres) {
+ /* Stop code is '2331112' */
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('2', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ $DrawPos += $this->GetBarSize('3', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('3', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('3', $xres);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('1', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $DrawPos += $this->GetBarSize('1', $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize('2', $xres) , $ySize);
+ $DrawPos += $this->GetBarSize('2', $xres);
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the check-char code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawCheckChar($DrawPos, $yPos, $ySize, $xres) {
+ $cset = $this->GetCheckCharValue();
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[0], $xres) , $ySize);
+ $DrawPos += $this->GetBarSize($cset[0], $xres);
+ $DrawPos += $this->GetBarSize($cset[1], $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[2], $xres) , $ySize);
+ $DrawPos += $this->GetBarSize($cset[2], $xres);
+ $DrawPos += $this->GetBarSize($cset[3], $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[4], $xres) , $ySize);
+ $DrawPos += $this->GetBarSize($cset[4], $xres);
+ $DrawPos += $this->GetBarSize($cset[5], $xres);
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the barcode object.
+ * @param int $xres Horizontal resolution.
+ * @return bool true in case of success.
+ */
+ function DrawObject($xres) {
+ $len = strlen($this->mValue);
+ if (($size = $this->GetSize($xres))==0) {
+ return false;
+ }
+
+ if ($this->mStyle & BCS_ALIGN_CENTER) $sPos = (integer)(($this->mWidth - $size ) / 2);
+ else if ($this->mStyle & BCS_ALIGN_RIGHT) $sPos = $this->mWidth - $size;
+ else $sPos = 0;
+
+ /* Total height of bar code -Bars only- */
+ if ($this->mStyle & BCS_DRAW_TEXT) $ysize = $this->mHeight - BCD_DEFAULT_MAR_Y1 - BCD_DEFAULT_MAR_Y2 - $this->GetFontHeight($this->mFont);
+ else $ysize = $this->mHeight - BCD_DEFAULT_MAR_Y1 - BCD_DEFAULT_MAR_Y2;
+
+ /* Draw text */
+ if ($this->mStyle & BCS_DRAW_TEXT) {
+ if ($this->mStyle & BCS_STRETCH_TEXT) {
+ for ($i=0;$i<$len;$i++) {
+ $this->DrawChar($this->mFont, $sPos+(2*BCD_C128_BAR_2*$xres + 3*BCD_C128_BAR_1*$xres + BCD_C128_BAR_4*$xres)+($size/$len)*$i,
+ $ysize + BCD_DEFAULT_MAR_Y1 + BCD_DEFAULT_TEXT_OFFSET, $this->mValue[$i]);
+ }
+ } else {/* Center */
+ $text_width = $this->GetFontWidth($this->mFont) * strlen($this->mValue);
+ $this->DrawText($this->mFont, $sPos+(($size-$text_width)/2)+(2*BCD_C128_BAR_2*$xres + 3*BCD_C128_BAR_1*$xres + BCD_C128_BAR_4*$xres),
+ $ysize + BCD_DEFAULT_MAR_Y1 + BCD_DEFAULT_TEXT_OFFSET, $this->mValue);
+ }
+ }
+
+ $cPos = 0;
+ $DrawPos = $this->DrawStart($sPos, BCD_DEFAULT_MAR_Y1 , $ysize, $xres);
+ do {
+ $c = $this->GetCharIndex($this->mValue[$cPos].$this->mValue[$cPos+1]);
+ $cset = $this->mCharSet[$c];
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[0], $xres) , $ysize);
+ $DrawPos += $this->GetBarSize($cset[0], $xres);
+ $DrawPos += $this->GetBarSize($cset[1], $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[2], $xres) , $ysize);
+ $DrawPos += $this->GetBarSize($cset[2], $xres);
+ $DrawPos += $this->GetBarSize($cset[3], $xres);
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, $this->GetBarSize($cset[4], $xres) , $ysize);
+ $DrawPos += $this->GetBarSize($cset[4], $xres);
+ $DrawPos += $this->GetBarSize($cset[5], $xres);
+ $cPos += 2;
+ } while ($cPos<$len);
+ $DrawPos = $this->DrawCheckChar($DrawPos, BCD_DEFAULT_MAR_Y1 , $ysize, $xres);
+ $DrawPos = $this->DrawStop($DrawPos, BCD_DEFAULT_MAR_Y1 , $ysize, $xres);
+ return true;
+ }
+}
+
+//============================================================+
+// END OF FILE
+//============================================================+
+?>
diff --git a/lib/tcpdf/barcode/c39object.php b/lib/tcpdf/barcode/c39object.php
new file mode 100755
index 0000000000..bb253cb096
--- /dev/null
+++ b/lib/tcpdf/barcode/c39object.php
@@ -0,0 +1,283 @@
+
+ * Code 39 is an alphanumeric bar code that can encode decimal number, case alphabet and some special symbols.
+ * @author Karim Mribti, Nicola Asuni
+ * @name BarcodeObject
+ * @package com.tecnick.tcpdf
+ * @version 0.0.8a 2001-04-01 (original code)
+ * @since 2001-03-25
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL
+ */
+
+/**
+ * Code 39 Barcode Render Class.
+ * Code 39 is an alphanumeric bar code that can encode decimal number, case alphabet and some special symbols.
+ * @author Karim Mribti, Nicola Asuni
+ * @name BarcodeObject
+ * @package com.tecnick.tcpdf
+ * @version 0.0.8a 2001-04-01 (original code)
+ * @since 2001-03-25
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL
+ */
+class C39Object extends BarcodeObject {
+
+ /**
+ * Class Constructor.
+ * @param int $Width Image width in pixels.
+ * @param int $Height Image height in pixels.
+ * @param int $Style Barcode style.
+ * @param int $Value value to print on barcode.
+ */
+ function C39Object($Width, $Height, $Style, $Value) {
+ $this->BarcodeObject($Width, $Height, $Style);
+ $this->mValue = $Value;
+ $this->mChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. *$/+%";
+ $this->mCharSet = array (
+ /* 0 */ "000110100",
+ /* 1 */ "100100001",
+ /* 2 */ "001100001",
+ /* 3 */ "101100000",
+ /* 4 */ "000110001",
+ /* 5 */ "100110000",
+ /* 6 */ "001110000",
+ /* 7 */ "000100101",
+ /* 8 */ "100100100",
+ /* 9 */ "001100100",
+ /* A */ "100001001",
+ /* B */ "001001001",
+ /* C */ "101001000",
+ /* D */ "000011001",
+ /* E */ "100011000",
+ /* F */ "001011000",
+ /* G */ "000001101",
+ /* H */ "100001100",
+ /* I */ "001001100",
+ /* J */ "000011100",
+ /* K */ "100000011",
+ /* L */ "001000011",
+ /* M */ "101000010",
+ /* N */ "000010011",
+ /* O */ "100010010",
+ /* P */ "001010010",
+ /* Q */ "000000111",
+ /* R */ "100000110",
+ /* S */ "001000110",
+ /* T */ "000010110",
+ /* U */ "110000001",
+ /* V */ "011000001",
+ /* W */ "111000000",
+ /* X */ "010010001",
+ /* Y */ "110010000",
+ /* Z */ "011010000",
+ /* - */ "010000101",
+ /* . */ "110000100",
+ /* SP */ "011000100",
+ /* * */ "010010100",
+ /* $ */ "010101000",
+ /* / */ "010100010",
+ /* + */ "010001010",
+ /* % */ "000101010"
+ );
+ }
+
+ /**
+ * Returns the character index.
+ * @param char $char character.
+ * @return int character index or -1 in case of error.
+ * @access private
+ */
+ function GetCharIndex($char) {
+ for ($i=0;$i<44;$i++) {
+ if ($this->mChars[$i] == $char) {
+ return $i;
+ }
+ }
+ return -1;
+ }
+
+ /**
+ * Returns barcode size.
+ * @param int $xres Horizontal resolution.
+ * @return barcode size.
+ * @access private
+ */
+ function GetSize($xres) {
+ $len = strlen($this->mValue);
+
+ if ($len == 0) {
+ $this->mError = "Null value";
+ return false;
+ }
+
+ for ($i=0;$i<$len;$i++) {
+ if ($this->GetCharIndex($this->mValue[$i]) == -1 || $this->mValue[$i] == '*') {
+ /* The asterisk is only used as a start and stop code */
+ $this->mError = "C39 not include the char '".$this->mValue[$i]."'";
+ return false;
+ }
+ }
+
+ /* Start, Stop is 010010100 == '*' */
+ $StartSize = BCD_C39_NARROW_BAR * $xres * 6 + BCD_C39_WIDE_BAR * $xres * 3;
+ $StopSize = BCD_C39_NARROW_BAR * $xres * 6 + BCD_C39_WIDE_BAR * $xres * 3;
+ $CharSize = BCD_C39_NARROW_BAR * $xres * 6 + BCD_C39_WIDE_BAR * $xres * 3; /* Same for all chars */
+
+ return $CharSize * $len + $StartSize + $StopSize + /* Space between chars */ BCD_C39_NARROW_BAR * $xres * ($len-1);
+ }
+
+ /**
+ * Draws the start code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawStart($DrawPos, $yPos, $ySize, $xres) {
+ /* Start code is '*' */
+ $narrow = BCD_C39_NARROW_BAR * $xres;
+ $wide = BCD_C39_WIDE_BAR * $xres;
+ $this->DrawSingleBar($DrawPos, $yPos, $narrow , $ySize);
+ $DrawPos += $narrow;
+ $DrawPos += $wide;
+ $this->DrawSingleBar($DrawPos, $yPos, $narrow , $ySize);
+ $DrawPos += $narrow;
+ $DrawPos += $narrow;
+ $this->DrawSingleBar($DrawPos, $yPos, $wide , $ySize);
+ $DrawPos += $wide;
+ $DrawPos += $narrow;
+ $this->DrawSingleBar($DrawPos, $yPos, $wide , $ySize);
+ $DrawPos += $wide;
+ $DrawPos += $narrow;
+ $this->DrawSingleBar($DrawPos, $yPos, $narrow, $ySize);
+ $DrawPos += $narrow;
+ $DrawPos += $narrow; /* Space between chars */
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the stop code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawStop($DrawPos, $yPos, $ySize, $xres) {
+ /* Stop code is '*' */
+ $narrow = BCD_C39_NARROW_BAR * $xres;
+ $wide = BCD_C39_WIDE_BAR * $xres;
+ $this->DrawSingleBar($DrawPos, $yPos, $narrow , $ySize);
+ $DrawPos += $narrow;
+ $DrawPos += $wide;
+ $this->DrawSingleBar($DrawPos, $yPos, $narrow , $ySize);
+ $DrawPos += $narrow;
+ $DrawPos += $narrow;
+ $this->DrawSingleBar($DrawPos, $yPos, $wide , $ySize);
+ $DrawPos += $wide;
+ $DrawPos += $narrow;
+ $this->DrawSingleBar($DrawPos, $yPos, $wide , $ySize);
+ $DrawPos += $wide;
+ $DrawPos += $narrow;
+ $this->DrawSingleBar($DrawPos, $yPos, $narrow, $ySize);
+ $DrawPos += $narrow;
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the barcode object.
+ * @param int $xres Horizontal resolution.
+ * @return bool true in case of success.
+ */
+ function DrawObject($xres) {
+ $len = strlen($this->mValue);
+
+ $narrow = BCD_C39_NARROW_BAR * $xres;
+ $wide = BCD_C39_WIDE_BAR * $xres;
+
+ if (($size = $this->GetSize($xres))==0) {
+ return false;
+ }
+
+ $cPos = 0;
+ if ($this->mStyle & BCS_ALIGN_CENTER) $sPos = (integer)(($this->mWidth - $size ) / 2);
+ else if ($this->mStyle & BCS_ALIGN_RIGHT) $sPos = $this->mWidth - $size;
+ else $sPos = 0;
+
+ /* Total height of bar code -Bars only- */
+ if ($this->mStyle & BCS_DRAW_TEXT) $ysize = $this->mHeight - BCD_DEFAULT_MAR_Y1 - BCD_DEFAULT_MAR_Y2 - $this->GetFontHeight($this->mFont);
+ else $ysize = $this->mHeight - BCD_DEFAULT_MAR_Y1 - BCD_DEFAULT_MAR_Y2;
+
+ /* Draw text */
+ if ($this->mStyle & BCS_DRAW_TEXT) {
+ if ($this->mStyle & BCS_STRETCH_TEXT) {
+ for ($i=0;$i<$len;$i++) {
+ $this->DrawChar($this->mFont, $sPos+($narrow*6+$wide*3)+($size/$len)*$i,
+ $ysize + BCD_DEFAULT_MAR_Y1 + BCD_DEFAULT_TEXT_OFFSET, $this->mValue[$i]);
+ }
+ } else {/* Center */
+ $text_width = $this->GetFontWidth($this->mFont) * strlen($this->mValue);
+ $this->DrawText($this->mFont, $sPos+(($size-$text_width)/2)+($narrow*6+$wide*3),
+ $ysize + BCD_DEFAULT_MAR_Y1 + BCD_DEFAULT_TEXT_OFFSET, $this->mValue);
+ }
+ }
+
+ $DrawPos = $this->DrawStart($sPos, BCD_DEFAULT_MAR_Y1 , $ysize, $xres);
+ do {
+ $c = $this->GetCharIndex($this->mValue[$cPos]);
+ $cset = $this->mCharSet[$c];
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, ($cset[0] == '0') ? $narrow : $wide , $ysize);
+ $DrawPos += ($cset[0] == '0') ? $narrow : $wide;
+ $DrawPos += ($cset[1] == '0') ? $narrow : $wide;
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, ($cset[2] == '0') ? $narrow : $wide , $ysize);
+ $DrawPos += ($cset[2] == '0') ? $narrow : $wide;
+ $DrawPos += ($cset[3] == '0') ? $narrow : $wide;
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, ($cset[4] == '0') ? $narrow : $wide , $ysize);
+ $DrawPos += ($cset[4] == '0') ? $narrow : $wide;
+ $DrawPos += ($cset[5] == '0') ? $narrow : $wide;
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, ($cset[6] == '0') ? $narrow : $wide , $ysize);
+ $DrawPos += ($cset[6] == '0') ? $narrow : $wide;
+ $DrawPos += ($cset[7] == '0') ? $narrow : $wide;
+ $this->DrawSingleBar($DrawPos, BCD_DEFAULT_MAR_Y1, ($cset[8] == '0') ? $narrow : $wide , $ysize);
+ $DrawPos += ($cset[8] == '0') ? $narrow : $wide;
+ $DrawPos += $narrow; /* Space between chars */
+ $cPos++;
+ } while ($cPos<$len);
+ $DrawPos = $this->DrawStop($DrawPos, BCD_DEFAULT_MAR_Y1 , $ysize, $xres);
+ return true;
+ }
+}
+
+//============================================================+
+// END OF FILE
+//============================================================+
+?>
\ No newline at end of file
diff --git a/lib/tcpdf/barcode/i25object.php b/lib/tcpdf/barcode/i25object.php
new file mode 100755
index 0000000000..3e589597c3
--- /dev/null
+++ b/lib/tcpdf/barcode/i25object.php
@@ -0,0 +1,217 @@
+BarcodeObject($Width, $Height, $Style);
+ $this->mValue = $Value;
+ $this->mCharSet = array (
+ /* 0 */ "00110",
+ /* 1 */ "10001",
+ /* 2 */ "01001",
+ /* 3 */ "11000",
+ /* 4 */ "00101",
+ /* 5 */ "10100",
+ /* 6 */ "01100",
+ /* 7 */ "00011",
+ /* 8 */ "10010",
+ /* 9 */ "01010"
+ );
+ }
+
+ /**
+ * Returns barcode size.
+ * @param int $xres Horizontal resolution.
+ * @return barcode size.
+ * @access private
+ */
+ function GetSize($xres) {
+ $len = strlen($this->mValue);
+
+ if ($len == 0) {
+ $this->mError = "Null value";
+ return false;
+ }
+
+ for ($i=0;$i<$len;$i++) {
+ if ((ord($this->mValue[$i])<48) || (ord($this->mValue[$i])>57)) {
+ $this->mError = "I25 is numeric only";
+ return false;
+ }
+ }
+
+ if (($len%2) != 0) {
+ $this->mError = "The length of barcode value must be even";
+ return false;
+ }
+ $StartSize = BCD_I25_NARROW_BAR * 4 * $xres;
+ $StopSize = BCD_I25_WIDE_BAR * $xres + 2 * BCD_I25_NARROW_BAR * $xres;
+ $cPos = 0;
+ $sPos = 0;
+ do {
+ $c1 = $this->mValue[$cPos];
+ $c2 = $this->mValue[$cPos+1];
+ $cset1 = $this->mCharSet[$c1];
+ $cset2 = $this->mCharSet[$c2];
+
+ for ($i=0;$i<5;$i++) {
+ $type1 = ($cset1[$i]==0) ? (BCD_I25_NARROW_BAR * $xres) : (BCD_I25_WIDE_BAR * $xres);
+ $type2 = ($cset2[$i]==0) ? (BCD_I25_NARROW_BAR * $xres) : (BCD_I25_WIDE_BAR * $xres);
+ $sPos += ($type1 + $type2);
+ }
+ $cPos+=2;
+ } while ($cPos<$len);
+
+ return $sPos + $StartSize + $StopSize;
+ }
+
+ /**
+ * Draws the start code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawStart($DrawPos, $yPos, $ySize, $xres) {
+ /* Start code is "0000" */
+ $this->DrawSingleBar($DrawPos, $yPos, BCD_I25_NARROW_BAR * $xres , $ySize);
+ $DrawPos += BCD_I25_NARROW_BAR * $xres;
+ $DrawPos += BCD_I25_NARROW_BAR * $xres;
+ $this->DrawSingleBar($DrawPos, $yPos, BCD_I25_NARROW_BAR * $xres , $ySize);
+ $DrawPos += BCD_I25_NARROW_BAR * $xres;
+ $DrawPos += BCD_I25_NARROW_BAR * $xres;
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the stop code.
+ * @param int $DrawPos Drawing position.
+ * @param int $yPos Vertical position.
+ * @param int $ySize Vertical size.
+ * @param int $xres Horizontal resolution.
+ * @return int drawing position.
+ * @access private
+ */
+ function DrawStop($DrawPos, $yPos, $ySize, $xres) {
+ /* Stop code is "100" */
+ $this->DrawSingleBar($DrawPos, $yPos, BCD_I25_WIDE_BAR * $xres , $ySize);
+ $DrawPos += BCD_I25_WIDE_BAR * $xres;
+ $DrawPos += BCD_I25_NARROW_BAR * $xres;
+ $this->DrawSingleBar($DrawPos, $yPos, BCD_I25_NARROW_BAR * $xres , $ySize);
+ $DrawPos += BCD_I25_NARROW_BAR * $xres;
+ return $DrawPos;
+ }
+
+ /**
+ * Draws the barcode object.
+ * @param int $xres Horizontal resolution.
+ * @return bool true in case of success.
+ */
+ function DrawObject($xres) {
+ $len = strlen($this->mValue);
+
+ if (($size = $this->GetSize($xres))==0) {
+ return false;
+ }
+
+ $cPos = 0;
+
+ if ($this->mStyle & BCS_DRAW_TEXT) $ysize = $this->mHeight - BCD_DEFAULT_MAR_Y1 - BCD_DEFAULT_MAR_Y2 - $this->GetFontHeight($this->mFont);
+ else $ysize = $this->mHeight - BCD_DEFAULT_MAR_Y1 - BCD_DEFAULT_MAR_Y2;
+
+ if ($this->mStyle & BCS_ALIGN_CENTER) $sPos = (integer)(($this->mWidth - $size ) / 2);
+ else if ($this->mStyle & BCS_ALIGN_RIGHT) $sPos = $this->mWidth - $size;
+ else $sPos = 0;
+
+ if ($this->mStyle & BCS_DRAW_TEXT) {
+ if ($this->mStyle & BCS_STRETCH_TEXT) {
+ /* Stretch */
+ for ($i=0;$i<$len;$i++) {
+ $this->DrawChar($this->mFont, $sPos+BCD_I25_NARROW_BAR*4*$xres+($size/$len)*$i,
+ $ysize + BCD_DEFAULT_MAR_Y1 + BCD_DEFAULT_TEXT_OFFSET , $this->mValue[$i]);
+ }
+ }else {/* Center */
+ $text_width = $this->GetFontWidth($this->mFont) * strlen($this->mValue);
+ $this->DrawText($this->mFont, $sPos+(($size-$text_width)/2)+(BCD_I25_NARROW_BAR*4*$xres),
+ $ysize + BCD_DEFAULT_MAR_Y1 + BCD_DEFAULT_TEXT_OFFSET, $this->mValue);
+ }
+ }
+
+ $sPos = $this->DrawStart($sPos, BCD_DEFAULT_MAR_Y1, $ysize, $xres);
+ do {
+ $c1 = $this->mValue[$cPos];
+ $c2 = $this->mValue[$cPos+1];
+ $cset1 = $this->mCharSet[$c1];
+ $cset2 = $this->mCharSet[$c2];
+
+ for ($i=0;$i<5;$i++) {
+ $type1 = ($cset1[$i]==0) ? (BCD_I25_NARROW_BAR * $xres) : (BCD_I25_WIDE_BAR * $xres);
+ $type2 = ($cset2[$i]==0) ? (BCD_I25_NARROW_BAR * $xres) : (BCD_I25_WIDE_BAR * $xres);
+ $this->DrawSingleBar($sPos, BCD_DEFAULT_MAR_Y1, $type1 , $ysize);
+ $sPos += ($type1 + $type2);
+ }
+ $cPos+=2;
+ } while ($cPos<$len);
+ $sPos = $this->DrawStop($sPos, BCD_DEFAULT_MAR_Y1, $ysize, $xres);
+ return true;
+ }
+}
+
+//============================================================+
+// END OF FILE
+//============================================================+
+?>
\ No newline at end of file
diff --git a/lib/tcpdf/barcode/image.php b/lib/tcpdf/barcode/image.php
new file mode 100755
index 0000000000..056eace288
--- /dev/null
+++ b/lib/tcpdf/barcode/image.php
@@ -0,0 +1,88 @@
+SetFont($_REQUEST['font']);
+ $obj->DrawObject($_REQUEST['xres']);
+ $obj->FlushObject();
+ $obj->DestroyObject();
+ unset($obj); /* clean */
+}
+
+//============================================================+
+// END OF FILE
+//============================================================+
+?>
\ No newline at end of file
diff --git a/lib/tcpdf/config/lang/eng.php b/lib/tcpdf/config/lang/eng.php
new file mode 100755
index 0000000000..a86a3bbf59
--- /dev/null
+++ b/lib/tcpdf/config/lang/eng.php
@@ -0,0 +1,49 @@
+
diff --git a/lib/tcpdf/config/tcpdf_config.php b/lib/tcpdf/config/tcpdf_config.php
new file mode 100755
index 0000000000..34863cef4e
--- /dev/null
+++ b/lib/tcpdf/config/tcpdf_config.php
@@ -0,0 +1,197 @@
+dirroot.'/lib/tcpdf/');
+
+/**
+ * url path
+ */
+define ('K_PATH_URL', $CFG->wwwroot.'/lib/tcpdf/');
+
+/**
+ * path for PDF fonts
+ */
+define ("FPDF_FONTPATH", K_PATH_MAIN."fonts/");
+
+/**
+ * cache directory for temporary files (full path)
+ */
+define ("K_PATH_CACHE", K_PATH_MAIN."cache/");
+
+/**
+ * cache directory for temporary files (url path)
+ */
+define ("K_PATH_URL_CACHE", K_PATH_URL."cache/");
+
+/**
+ *images directory
+ */
+define ("K_PATH_IMAGES", K_PATH_MAIN."images/");
+
+/**
+ * blank image
+ */
+define ("K_BLANK_IMAGE", K_PATH_IMAGES."_blank.png");
+
+/**
+ * page format
+ */
+define ("PDF_PAGE_FORMAT", "A4");
+
+/**
+ * page orientation (P=portrait, L=landscape)
+ */
+define ("PDF_PAGE_ORIENTATION", "P");
+
+/**
+ * document creator
+ */
+define ("PDF_CREATOR", "pdf creator");
+
+/**
+ * document author
+ */
+define ("PDF_AUTHOR", "pdf author");
+
+/**
+ * header title
+ */
+define ("PDF_HEADER_TITLE", "header title");
+
+/**
+ * header description string
+ */
+define ("PDF_HEADER_STRING", "first row\nsecond row\nthird row");
+
+/**
+ * image logo
+ */
+define ("PDF_HEADER_LOGO", "logo_example.png");
+
+/**
+ * header logo image width [mm]
+ */
+define ("PDF_HEADER_LOGO_WIDTH", 20);
+
+/**
+ * document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
+ */
+define ("PDF_UNIT", "mm");
+
+/**
+ * header margin
+ */
+define ("PDF_MARGIN_HEADER", 5);
+
+/**
+ * footer margin
+ */
+define ("PDF_MARGIN_FOOTER", 10);
+
+/**
+ * top margin
+ */
+define ("PDF_MARGIN_TOP", 27);
+
+/**
+ * bottom margin
+ */
+define ("PDF_MARGIN_BOTTOM", 25);
+
+/**
+ * left margin
+ */
+define ("PDF_MARGIN_LEFT", 15);
+
+/**
+ * right margin
+ */
+define ("PDF_MARGIN_RIGHT", 15);
+
+/**
+ * main font name
+ */
+define ("PDF_FONT_NAME_MAIN", "FreeSans"); //vera
+
+/**
+ * main font size
+ */
+define ("PDF_FONT_SIZE_MAIN", 10);
+
+/**
+ * data font name
+ */
+define ("PDF_FONT_NAME_DATA", "FreeSerif"); //verase
+
+/**
+ * data font size
+ */
+define ("PDF_FONT_SIZE_DATA", 8);
+
+/**
+ * scale factor for images (number of points in user unit)
+ */
+define ("PDF_IMAGE_SCALE_RATIO", 4);
+
+/**
+ * magnification factor for titles
+ */
+define("HEAD_MAGNIFICATION", 1.1);
+
+/**
+ * height of cell repect font height
+ */
+define("K_CELL_HEIGHT_RATIO", 1.25);
+
+/**
+ * title magnification respect main font size
+ */
+define("K_TITLE_MAGNIFICATION", 1.3);
+
+/**
+ * reduction factor for small font
+ */
+define("K_SMALL_RATIO", 2/3);
+
+//============================================================+
+// END OF FILE
+//============================================================+
+?>
\ No newline at end of file
diff --git a/lib/tcpdf/fonts/FreeMono.ctg.z b/lib/tcpdf/fonts/FreeMono.ctg.z
new file mode 100755
index 0000000000..07f15d5c32
Binary files /dev/null and b/lib/tcpdf/fonts/FreeMono.ctg.z differ
diff --git a/lib/tcpdf/fonts/FreeMono.z b/lib/tcpdf/fonts/FreeMono.z
new file mode 100755
index 0000000000..08ff94d707
Binary files /dev/null and b/lib/tcpdf/fonts/FreeMono.z differ
diff --git a/lib/tcpdf/fonts/FreeMonoBold.ctg.z b/lib/tcpdf/fonts/FreeMonoBold.ctg.z
new file mode 100755
index 0000000000..529813d5fa
Binary files /dev/null and b/lib/tcpdf/fonts/FreeMonoBold.ctg.z differ
diff --git a/lib/tcpdf/fonts/FreeMonoBold.z b/lib/tcpdf/fonts/FreeMonoBold.z
new file mode 100755
index 0000000000..6a42eebd41
Binary files /dev/null and b/lib/tcpdf/fonts/FreeMonoBold.z differ
diff --git a/lib/tcpdf/fonts/FreeMonoBoldOblique.ctg.z b/lib/tcpdf/fonts/FreeMonoBoldOblique.ctg.z
new file mode 100755
index 0000000000..f8b2d722d3
Binary files /dev/null and b/lib/tcpdf/fonts/FreeMonoBoldOblique.ctg.z differ
diff --git a/lib/tcpdf/fonts/FreeMonoBoldOblique.z b/lib/tcpdf/fonts/FreeMonoBoldOblique.z
new file mode 100755
index 0000000000..ceb9777181
Binary files /dev/null and b/lib/tcpdf/fonts/FreeMonoBoldOblique.z differ
diff --git a/lib/tcpdf/fonts/FreeMonoOblique.ctg.z b/lib/tcpdf/fonts/FreeMonoOblique.ctg.z
new file mode 100755
index 0000000000..d9d3189c17
Binary files /dev/null and b/lib/tcpdf/fonts/FreeMonoOblique.ctg.z differ
diff --git a/lib/tcpdf/fonts/FreeMonoOblique.z b/lib/tcpdf/fonts/FreeMonoOblique.z
new file mode 100755
index 0000000000..dc879ea2fc
Binary files /dev/null and b/lib/tcpdf/fonts/FreeMonoOblique.z differ
diff --git a/lib/tcpdf/fonts/FreeSans.ctg.z b/lib/tcpdf/fonts/FreeSans.ctg.z
new file mode 100755
index 0000000000..8b70df1c31
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSans.ctg.z differ
diff --git a/lib/tcpdf/fonts/FreeSans.z b/lib/tcpdf/fonts/FreeSans.z
new file mode 100755
index 0000000000..b7fffac84d
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSans.z differ
diff --git a/lib/tcpdf/fonts/FreeSansBold.ctg.z b/lib/tcpdf/fonts/FreeSansBold.ctg.z
new file mode 100755
index 0000000000..f8d288a0e3
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSansBold.ctg.z differ
diff --git a/lib/tcpdf/fonts/FreeSansBold.z b/lib/tcpdf/fonts/FreeSansBold.z
new file mode 100755
index 0000000000..312eab6022
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSansBold.z differ
diff --git a/lib/tcpdf/fonts/FreeSansBoldOblique.ctg.z b/lib/tcpdf/fonts/FreeSansBoldOblique.ctg.z
new file mode 100755
index 0000000000..b843f234e3
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSansBoldOblique.ctg.z differ
diff --git a/lib/tcpdf/fonts/FreeSansBoldOblique.z b/lib/tcpdf/fonts/FreeSansBoldOblique.z
new file mode 100755
index 0000000000..f9131c338c
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSansBoldOblique.z differ
diff --git a/lib/tcpdf/fonts/FreeSansOblique.ctg.z b/lib/tcpdf/fonts/FreeSansOblique.ctg.z
new file mode 100755
index 0000000000..35f90ff207
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSansOblique.ctg.z differ
diff --git a/lib/tcpdf/fonts/FreeSansOblique.z b/lib/tcpdf/fonts/FreeSansOblique.z
new file mode 100755
index 0000000000..c55489e22b
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSansOblique.z differ
diff --git a/lib/tcpdf/fonts/FreeSerif.ctg.z b/lib/tcpdf/fonts/FreeSerif.ctg.z
new file mode 100755
index 0000000000..fc6a0eaa6f
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSerif.ctg.z differ
diff --git a/lib/tcpdf/fonts/FreeSerif.z b/lib/tcpdf/fonts/FreeSerif.z
new file mode 100755
index 0000000000..cd055f50d3
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSerif.z differ
diff --git a/lib/tcpdf/fonts/FreeSerifBold.ctg.z b/lib/tcpdf/fonts/FreeSerifBold.ctg.z
new file mode 100755
index 0000000000..8b1e07e686
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSerifBold.ctg.z differ
diff --git a/lib/tcpdf/fonts/FreeSerifBold.z b/lib/tcpdf/fonts/FreeSerifBold.z
new file mode 100755
index 0000000000..191b712655
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSerifBold.z differ
diff --git a/lib/tcpdf/fonts/FreeSerifBoldItalic.ctg.z b/lib/tcpdf/fonts/FreeSerifBoldItalic.ctg.z
new file mode 100755
index 0000000000..7448663d1a
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSerifBoldItalic.ctg.z differ
diff --git a/lib/tcpdf/fonts/FreeSerifBoldItalic.z b/lib/tcpdf/fonts/FreeSerifBoldItalic.z
new file mode 100755
index 0000000000..a403900450
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSerifBoldItalic.z differ
diff --git a/lib/tcpdf/fonts/FreeSerifItalic.ctg.z b/lib/tcpdf/fonts/FreeSerifItalic.ctg.z
new file mode 100755
index 0000000000..57b56f0eb4
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSerifItalic.ctg.z differ
diff --git a/lib/tcpdf/fonts/FreeSerifItalic.z b/lib/tcpdf/fonts/FreeSerifItalic.z
new file mode 100755
index 0000000000..52d40c569a
Binary files /dev/null and b/lib/tcpdf/fonts/FreeSerifItalic.z differ
diff --git a/lib/tcpdf/fonts/README.TXT b/lib/tcpdf/fonts/README.TXT
new file mode 100755
index 0000000000..25fbf11b7b
--- /dev/null
+++ b/lib/tcpdf/fonts/README.TXT
@@ -0,0 +1,25 @@
+To embed TrueType fonts (.TTF) files, you need to extract the font metrics and
+build the required tables using the ttf2ufm utility.
+
+TTF2UFM is a modified version of Mark Heath's TTF 2 PT1 converter
+(http://ttf2pt1.sourceforge.net/) by Steven Wittens
+(http://www.acko.net/blog/ufpdf).
+
+ttf2ufm, is not bundled with the Moodle distribution, but it is available with
+the standard TCPDF distribution (http://tcpdf.sourceforge.net/):
+
+ - Source code is avaialable in in /ttf2ufm-src.
+ - The /fonts/ttf2ufm folder contains a compiled Windows binary.
+
+TTF 2 UFM is identical to TTF 2 PT1 except that it also generates a .ufm file
+for usage with makefontuni.php.
+
+
+Setting up a Truetype font for usage with TCPDF:
+ 1) Generate the font's .ufm metrics file by processing it with the provided
+ ttf2ufm program (modified ttf2pt1). For example:
+ $ ttf2ufm -a -F myfont.ttf
+ 2) Run makefontuni.php with the .ttf and .ufm filenames as argument:
+ $ php -q makefontuni.php myfont.ttf myfont.ufm
+ 3) Copy the resulting .php, .z and .ctg.z file to the TCPDF font directory.
+
\ No newline at end of file
diff --git a/lib/tcpdf/fonts/freemono.php b/lib/tcpdf/fonts/freemono.php
new file mode 100755
index 0000000000..1e1c35be50
--- /dev/null
+++ b/lib/tcpdf/fonts/freemono.php
@@ -0,0 +1,174 @@
+1057,'Descent'=>-319,'CapHeight'=>1057,'Flags'=>32,'FontBBox'=>'[-557 -319 699 1057]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>600);
+$up=-100;
+$ut=50;
+$cw=array(
+ 13=>333, 32=>600, 33=>600, 34=>600, 35=>600, 36=>600, 37=>600, 38=>600, 39=>600, 40=>600, 41=>600, 42=>600, 43=>600, 44=>600, 45=>600, 46=>600,
+ 47=>600, 48=>600, 49=>600, 50=>600, 51=>600, 52=>600, 53=>600, 54=>600, 55=>600, 56=>600, 57=>600, 58=>600, 59=>600, 60=>600, 61=>600, 62=>600,
+ 63=>600, 64=>600, 65=>600, 66=>600, 67=>600, 68=>600, 69=>600, 70=>600, 71=>600, 72=>600, 73=>600, 74=>600, 75=>600, 76=>600, 77=>600, 78=>600,
+ 79=>600, 80=>600, 81=>600, 82=>600, 83=>600, 84=>600, 85=>600, 86=>600, 87=>600, 88=>600, 89=>600, 90=>600, 91=>600, 92=>600, 93=>600, 94=>600,
+ 95=>600, 96=>600, 97=>600, 98=>600, 99=>600, 100=>600, 101=>600, 102=>600, 103=>600, 104=>600, 105=>600, 106=>600, 107=>600, 108=>600, 109=>600, 110=>600,
+ 111=>600, 112=>600, 113=>600, 114=>600, 115=>600, 116=>600, 117=>600, 118=>600, 119=>600, 120=>600, 121=>600, 122=>600, 123=>600, 124=>600, 125=>600, 126=>600,
+ 8364=>600, 1027=>600, 8218=>600, 402=>600, 8222=>600, 8230=>600, 8224=>600, 8225=>600, 710=>600, 8240=>600, 352=>600, 8249=>600, 338=>600, 1036=>600, 381=>600, 1039=>600,
+ 8216=>600, 8217=>600, 8220=>600, 8221=>600, 8226=>600, 8211=>600, 8212=>600, 732=>600, 8482=>600, 353=>600, 8250=>600, 339=>600, 1116=>600, 382=>600, 376=>600, 160=>600,
+ 161=>600, 162=>600, 163=>600, 164=>600, 165=>600, 166=>600, 167=>600, 168=>600, 169=>600, 170=>600, 171=>600, 172=>600, 173=>600, 174=>600, 175=>600, 176=>600,
+ 177=>600, 178=>600, 179=>600, 180=>600, 181=>600, 182=>600, 183=>600, 184=>600, 185=>600, 186=>600, 187=>600, 188=>600, 189=>600, 190=>600, 191=>600, 192=>600,
+ 193=>600, 194=>600, 195=>600, 196=>600, 197=>600, 198=>600, 199=>600, 200=>600, 201=>600, 202=>600, 203=>600, 204=>600, 205=>600, 206=>600, 207=>600, 208=>600,
+ 209=>600, 210=>600, 211=>600, 212=>600, 213=>600, 214=>600, 215=>600, 216=>600, 217=>600, 218=>600, 219=>600, 220=>600, 221=>600, 222=>600, 223=>600, 224=>600,
+ 225=>600, 226=>600, 227=>600, 228=>600, 229=>600, 230=>600, 231=>600, 232=>600, 233=>600, 234=>600, 235=>600, 236=>600, 237=>600, 238=>600, 239=>600, 240=>600,
+ 241=>600, 242=>600, 243=>600, 244=>600, 245=>600, 246=>600, 247=>600, 248=>600, 249=>600, 250=>600, 251=>600, 252=>600, 253=>600, 254=>600, 255=>600, 256=>600,
+ 257=>600, 258=>600, 259=>600, 260=>600, 261=>600, 262=>600, 263=>600, 264=>600, 265=>600, 266=>600, 267=>600, 268=>600, 269=>600, 270=>600, 271=>600, 272=>600,
+ 273=>600, 274=>600, 275=>600, 276=>600, 277=>600, 278=>600, 279=>600, 280=>600, 281=>600, 282=>600, 283=>600, 284=>600, 285=>600, 286=>600, 287=>600, 288=>600,
+ 289=>600, 290=>600, 291=>600, 292=>600, 293=>600, 294=>600, 295=>600, 296=>600, 297=>600, 298=>600, 299=>600, 300=>600, 301=>600, 302=>600, 303=>600, 304=>600,
+ 305=>600, 306=>600, 307=>600, 308=>600, 309=>600, 310=>600, 311=>600, 312=>600, 313=>600, 314=>600, 315=>600, 316=>600, 317=>600, 318=>600, 319=>600, 320=>600,
+ 321=>600, 322=>600, 323=>600, 324=>600, 325=>600, 326=>600, 327=>600, 328=>600, 329=>600, 330=>600, 331=>600, 332=>600, 333=>600, 334=>600, 335=>600, 336=>600,
+ 337=>600, 340=>600, 341=>600, 342=>600, 343=>600, 344=>600, 345=>600, 346=>600, 347=>600, 348=>600, 349=>600, 350=>600, 351=>600, 354=>600, 355=>600, 356=>600,
+ 357=>600, 358=>600, 359=>600, 360=>600, 361=>600, 362=>600, 363=>600, 364=>600, 365=>600, 366=>600, 367=>600, 368=>600, 369=>600, 370=>600, 371=>600, 372=>600,
+ 373=>600, 374=>600, 375=>600, 377=>600, 378=>600, 379=>600, 380=>600, 383=>600, 384=>600, 385=>600, 386=>600, 387=>600, 388=>600, 389=>600, 390=>600, 391=>600,
+ 392=>600, 393=>600, 394=>600, 395=>600, 396=>600, 397=>600, 398=>600, 399=>600, 400=>600, 401=>600, 403=>600, 404=>600, 405=>600, 406=>600, 407=>600, 408=>600,
+ 409=>600, 410=>600, 411=>600, 412=>600, 413=>600, 414=>600, 415=>600, 416=>600, 417=>600, 418=>600, 419=>600, 420=>600, 421=>600, 422=>600, 423=>600, 424=>600,
+ 425=>600, 426=>600, 427=>600, 428=>600, 429=>600, 430=>600, 431=>600, 432=>600, 433=>600, 434=>600, 435=>600, 436=>600, 437=>600, 438=>600, 439=>600, 440=>600,
+ 441=>600, 442=>600, 443=>600, 444=>600, 445=>600, 446=>600, 447=>600, 448=>600, 449=>600, 450=>600, 451=>600, 452=>600, 453=>600, 454=>600, 455=>600, 456=>600,
+ 457=>600, 458=>600, 459=>600, 460=>600, 461=>600, 462=>600, 463=>600, 464=>600, 465=>600, 466=>600, 467=>600, 468=>600, 469=>600, 470=>600, 471=>600, 472=>600,
+ 473=>600, 474=>600, 475=>600, 476=>600, 477=>600, 478=>600, 479=>600, 480=>600, 481=>600, 482=>600, 483=>600, 484=>600, 485=>600, 486=>600, 487=>600, 488=>600,
+ 489=>600, 490=>600, 491=>600, 492=>600, 493=>600, 494=>600, 495=>600, 496=>600, 497=>600, 498=>600, 499=>600, 500=>600, 501=>600, 502=>600, 503=>600, 504=>600,
+ 505=>600, 506=>600, 507=>600, 508=>600, 509=>600, 510=>600, 511=>600, 512=>600, 513=>600, 514=>600, 515=>600, 516=>600, 517=>600, 518=>600, 519=>600, 520=>600,
+ 521=>600, 522=>600, 523=>600, 524=>600, 525=>600, 526=>600, 527=>600, 528=>600, 529=>600, 530=>600, 531=>600, 532=>600, 533=>600, 534=>600, 535=>600, 536=>600,
+ 537=>600, 538=>600, 539=>600, 540=>600, 541=>600, 542=>600, 543=>600, 548=>600, 549=>600, 550=>600, 551=>600, 552=>600, 553=>600, 554=>600, 555=>600, 556=>600,
+ 557=>600, 558=>600, 559=>600, 560=>600, 561=>600, 562=>600, 563=>600, 577=>600, 578=>600, 592=>600, 593=>600, 594=>600, 595=>600, 596=>600, 597=>600, 598=>600,
+ 599=>600, 600=>600, 601=>600, 602=>600, 603=>600, 604=>600, 607=>600, 608=>600, 609=>600, 610=>600, 611=>600, 612=>600, 613=>600, 614=>600, 615=>600, 616=>600,
+ 617=>600, 618=>600, 619=>600, 620=>600, 621=>600, 623=>600, 624=>600, 625=>600, 626=>600, 627=>600, 628=>600, 629=>600, 630=>600, 632=>600, 633=>600, 634=>600,
+ 635=>600, 636=>600, 637=>600, 638=>600, 639=>600, 640=>600, 641=>600, 642=>600, 643=>600, 644=>600, 645=>600, 646=>600, 647=>600, 648=>600, 649=>600, 652=>600,
+ 653=>600, 654=>600, 655=>600, 656=>600, 657=>600, 658=>600, 660=>600, 661=>600, 662=>600, 663=>600, 665=>600, 667=>600, 668=>600, 669=>600, 670=>600, 671=>600,
+ 672=>600, 673=>600, 674=>600, 675=>600, 676=>600, 678=>600, 679=>600, 699=>600, 700=>600, 701=>600, 702=>600, 703=>600, 711=>600, 712=>600, 713=>600, 714=>600,
+ 715=>600, 720=>600, 721=>600, 722=>600, 723=>600, 724=>600, 725=>600, 726=>600, 727=>600, 728=>600, 729=>600, 730=>600, 731=>600, 733=>600, 735=>600, 750=>600,
+ 768=>0, 769=>0, 770=>0, 771=>0, 772=>0, 773=>0, 774=>0, 775=>0, 776=>0, 777=>0, 778=>0, 779=>0, 780=>0, 781=>0, 782=>0, 783=>0,
+ 784=>0, 785=>0, 795=>0, 801=>0, 802=>0, 807=>0, 808=>0, 819=>600, 821=>0, 822=>0, 823=>0, 824=>0, 834=>0, 836=>0, 890=>600, 900=>600,
+ 901=>600, 902=>600, 903=>600, 904=>600, 905=>600, 906=>600, 908=>600, 910=>600, 911=>600, 912=>600, 913=>600, 914=>600, 915=>600, 916=>600, 917=>600, 918=>600,
+ 919=>600, 920=>600, 921=>600, 922=>600, 923=>600, 924=>600, 925=>600, 926=>600, 927=>600, 928=>600, 929=>600, 930=>600, 931=>600, 932=>600, 933=>600, 934=>600,
+ 935=>600, 936=>600, 937=>600, 938=>600, 939=>600, 940=>600, 941=>600, 942=>600, 943=>600, 944=>600, 945=>600, 946=>600, 947=>600, 948=>600, 949=>600, 950=>600,
+ 951=>600, 952=>600, 953=>600, 954=>600, 955=>600, 956=>600, 957=>600, 958=>600, 959=>600, 960=>600, 961=>600, 962=>600, 963=>600, 964=>600, 965=>600, 966=>600,
+ 967=>600, 968=>600, 969=>600, 970=>600, 971=>600, 972=>600, 973=>600, 974=>600, 976=>600, 977=>600, 978=>600, 979=>600, 981=>600, 986=>600, 987=>600, 988=>600,
+ 1024=>600, 1025=>600, 1026=>600, 1028=>600, 1029=>600, 1030=>600, 1031=>600, 1032=>600, 1033=>600, 1034=>600, 1035=>600, 1037=>600, 1038=>600, 1040=>600, 1041=>600, 1042=>600,
+ 1043=>600, 1044=>600, 1045=>600, 1046=>600, 1047=>600, 1048=>600, 1049=>600, 1050=>600, 1051=>600, 1052=>600, 1053=>600, 1054=>600, 1055=>600, 1056=>600, 1057=>600, 1058=>600,
+ 1059=>600, 1060=>600, 1061=>600, 1062=>600, 1063=>600, 1064=>600, 1065=>600, 1066=>600, 1067=>600, 1068=>600, 1069=>600, 1070=>600, 1071=>600, 1072=>600, 1073=>600, 1074=>600,
+ 1075=>600, 1076=>600, 1077=>600, 1078=>600, 1079=>600, 1080=>600, 1081=>600, 1082=>600, 1083=>600, 1084=>600, 1085=>600, 1086=>600, 1087=>600, 1088=>600, 1089=>600, 1090=>600,
+ 1091=>600, 1092=>600, 1093=>600, 1094=>600, 1095=>600, 1096=>600, 1097=>600, 1098=>600, 1099=>600, 1100=>600, 1101=>600, 1102=>600, 1103=>600, 1104=>600, 1105=>600, 1106=>600,
+ 1107=>600, 1108=>600, 1109=>600, 1110=>600, 1111=>600, 1112=>600, 1113=>600, 1114=>600, 1115=>600, 1117=>600, 1118=>600, 1119=>600, 1124=>600, 1130=>600, 1132=>600, 1136=>600,
+ 1137=>600, 1164=>600, 1165=>600, 1166=>600, 1167=>600, 1168=>600, 1169=>600, 1170=>600, 1171=>600, 1172=>600, 1173=>600, 1174=>600, 1175=>600, 1176=>600, 1177=>600, 1178=>600,
+ 1179=>600, 1180=>600, 1181=>600, 1182=>600, 1183=>600, 1184=>600, 1185=>600, 1186=>600, 1187=>600, 1188=>600, 1189=>600, 1190=>600, 1191=>600, 1192=>600, 1193=>600, 1194=>600,
+ 1195=>600, 1196=>600, 1197=>600, 1198=>600, 1199=>600, 1200=>600, 1201=>600, 1202=>600, 1203=>600, 1204=>600, 1205=>600, 1206=>600, 1207=>600, 1208=>600, 1209=>600, 1210=>600,
+ 1211=>600, 1212=>600, 1213=>600, 1214=>600, 1215=>600, 1216=>600, 1217=>600, 1218=>600, 1219=>600, 1220=>600, 1223=>600, 1224=>600, 1227=>600, 1228=>600, 1232=>600, 1233=>600,
+ 1234=>600, 1235=>600, 1236=>600, 1237=>600, 1238=>600, 1239=>600, 1240=>600, 1241=>600, 1242=>600, 1243=>600, 1244=>600, 1245=>600, 1246=>600, 1247=>600, 1248=>600, 1249=>600,
+ 1250=>600, 1251=>600, 1252=>600, 1253=>600, 1254=>600, 1255=>600, 1256=>600, 1257=>600, 1258=>600, 1259=>600, 1260=>600, 1261=>600, 1262=>600, 1263=>600, 1264=>600, 1265=>600,
+ 1266=>600, 1267=>600, 1268=>600, 1269=>600, 1272=>600, 1273=>600, 1329=>600, 1330=>600, 1331=>600, 1332=>600, 1333=>600, 1334=>600, 1335=>600, 1336=>600, 1337=>600, 1338=>600,
+ 1339=>600, 1340=>600, 1341=>600, 1342=>600, 1343=>600, 1344=>600, 1345=>600, 1346=>600, 1347=>600, 1348=>600, 1349=>600, 1350=>600, 1351=>600, 1352=>600, 1353=>600, 1354=>600,
+ 1355=>600, 1356=>600, 1357=>600, 1358=>600, 1359=>600, 1360=>600, 1361=>600, 1362=>600, 1363=>600, 1364=>600, 1365=>600, 1366=>600, 1377=>600, 1378=>600, 1379=>600, 1380=>600,
+ 1381=>600, 1382=>600, 1383=>600, 1384=>600, 1385=>600, 1386=>600, 1387=>600, 1388=>600, 1389=>600, 1390=>600, 1391=>600, 1392=>600, 1393=>600, 1394=>600, 1395=>600, 1396=>600,
+ 1397=>600, 1398=>600, 1399=>600, 1400=>600, 1401=>600, 1402=>600, 1403=>600, 1404=>600, 1405=>600, 1406=>600, 1407=>600, 1408=>600, 1409=>600, 1410=>600, 1411=>600, 1412=>600,
+ 1413=>600, 1414=>600, 1418=>600, 1456=>600, 1457=>600, 1458=>600, 1459=>600, 1460=>600, 1461=>600, 1462=>600, 1463=>600, 1464=>600, 1465=>600, 1467=>600, 1468=>600, 1469=>600,
+ 1470=>600, 1471=>600, 1472=>600, 1473=>600, 1474=>600, 1475=>600, 1476=>600, 1488=>600, 1489=>600, 1490=>600, 1491=>600, 1492=>600, 1493=>600, 1494=>600, 1495=>600, 1496=>600,
+ 1497=>600, 1498=>600, 1499=>600, 1500=>600, 1501=>600, 1502=>600, 1503=>600, 1504=>600, 1505=>600, 1506=>600, 1507=>600, 1508=>600, 1509=>600, 1510=>600, 1511=>600, 1512=>600,
+ 1513=>600, 1514=>600, 1520=>600, 1521=>600, 1522=>600, 1523=>600, 1524=>600, 5792=>600, 5793=>600, 5794=>600, 5795=>600, 5796=>600, 5797=>600, 5798=>600, 5799=>600, 5800=>600,
+ 5801=>600, 5802=>600, 5803=>600, 5804=>600, 5805=>600, 5806=>600, 5807=>600, 5808=>600, 5809=>600, 5810=>600, 5811=>600, 5812=>600, 5813=>600, 5814=>600, 5815=>600, 5816=>600,
+ 5817=>600, 5818=>600, 5819=>600, 5820=>600, 5821=>600, 5822=>600, 5823=>600, 5824=>600, 5825=>600, 5826=>600, 5827=>600, 5828=>600, 5829=>600, 5830=>600, 5831=>600, 5832=>600,
+ 5833=>600, 5834=>600, 5835=>600, 5836=>600, 5837=>600, 5838=>600, 5839=>600, 5840=>600, 5841=>600, 5842=>600, 5843=>600, 5844=>600, 5845=>600, 5846=>600, 5847=>600, 5848=>600,
+ 5849=>600, 5850=>600, 5851=>600, 5852=>600, 5853=>600, 5854=>600, 5855=>600, 5856=>600, 5857=>600, 5858=>600, 5859=>600, 5860=>600, 5861=>600, 5862=>600, 5863=>600, 5864=>600,
+ 5865=>600, 5866=>600, 5867=>600, 5868=>600, 5869=>600, 5870=>600, 5871=>600, 5872=>600, 7680=>600, 7681=>600, 7682=>600, 7683=>600, 7684=>600, 7685=>600, 7686=>600, 7687=>600,
+ 7688=>600, 7689=>600, 7690=>600, 7691=>600, 7692=>600, 7693=>600, 7694=>600, 7695=>600, 7696=>600, 7697=>600, 7698=>600, 7699=>600, 7700=>600, 7701=>600, 7702=>600, 7703=>600,
+ 7704=>600, 7705=>600, 7706=>600, 7707=>600, 7708=>600, 7709=>600, 7710=>600, 7711=>600, 7712=>600, 7713=>600, 7714=>600, 7715=>600, 7716=>600, 7717=>600, 7718=>600, 7719=>600,
+ 7720=>600, 7721=>600, 7722=>600, 7723=>600, 7724=>600, 7725=>600, 7726=>600, 7727=>600, 7728=>600, 7729=>600, 7730=>600, 7731=>600, 7732=>600, 7733=>600, 7734=>600, 7735=>600,
+ 7736=>600, 7737=>600, 7738=>600, 7739=>600, 7740=>600, 7741=>600, 7742=>600, 7743=>600, 7744=>600, 7745=>600, 7746=>600, 7747=>600, 7748=>600, 7749=>600, 7750=>600, 7751=>600,
+ 7752=>600, 7753=>600, 7754=>600, 7755=>600, 7756=>600, 7757=>600, 7758=>600, 7759=>600, 7760=>600, 7761=>600, 7762=>600, 7763=>600, 7764=>600, 7765=>600, 7766=>600, 7767=>600,
+ 7768=>600, 7769=>600, 7770=>600, 7771=>600, 7772=>600, 7773=>600, 7774=>600, 7775=>600, 7776=>600, 7777=>600, 7778=>600, 7779=>600, 7780=>600, 7781=>600, 7782=>600, 7783=>600,
+ 7784=>600, 7785=>600, 7786=>600, 7787=>600, 7788=>600, 7789=>600, 7790=>600, 7791=>600, 7792=>600, 7793=>600, 7794=>600, 7795=>600, 7796=>600, 7797=>600, 7798=>600, 7799=>600,
+ 7800=>600, 7801=>600, 7802=>600, 7803=>600, 7804=>600, 7805=>600, 7806=>600, 7807=>600, 7808=>600, 7809=>600, 7810=>600, 7811=>600, 7812=>600, 7813=>600, 7814=>600, 7815=>600,
+ 7816=>600, 7817=>600, 7818=>600, 7819=>600, 7820=>600, 7821=>600, 7822=>600, 7823=>600, 7824=>600, 7825=>600, 7826=>600, 7827=>600, 7828=>600, 7829=>600, 7830=>600, 7831=>600,
+ 7832=>600, 7833=>600, 7834=>600, 7835=>600, 7840=>600, 7841=>600, 7842=>600, 7843=>600, 7844=>600, 7845=>600, 7846=>600, 7847=>600, 7848=>600, 7849=>600, 7850=>600, 7851=>600,
+ 7852=>600, 7853=>600, 7854=>600, 7855=>600, 7856=>600, 7857=>600, 7858=>600, 7859=>600, 7860=>600, 7861=>600, 7862=>600, 7863=>600, 7864=>600, 7865=>600, 7866=>600, 7867=>600,
+ 7868=>600, 7869=>600, 7870=>600, 7871=>600, 7872=>600, 7873=>600, 7874=>600, 7875=>600, 7876=>600, 7877=>600, 7878=>600, 7879=>600, 7880=>600, 7881=>600, 7882=>600, 7883=>600,
+ 7884=>600, 7885=>600, 7886=>600, 7887=>600, 7888=>600, 7889=>600, 7890=>600, 7891=>600, 7892=>600, 7893=>600, 7894=>600, 7895=>600, 7896=>600, 7897=>600, 7898=>600, 7899=>600,
+ 7900=>600, 7901=>600, 7902=>600, 7903=>600, 7904=>600, 7905=>600, 7906=>600, 7907=>600, 7908=>600, 7909=>600, 7910=>600, 7911=>600, 7912=>600, 7913=>600, 7914=>600, 7915=>600,
+ 7916=>600, 7917=>600, 7918=>600, 7919=>600, 7920=>600, 7921=>600, 7922=>600, 7923=>600, 7924=>600, 7925=>600, 7926=>600, 7927=>600, 7928=>600, 7929=>600, 7936=>600, 7937=>600,
+ 7938=>600, 7939=>600, 7940=>600, 7941=>600, 7942=>600, 7943=>600, 7944=>600, 7945=>600, 7946=>600, 7947=>600, 7948=>600, 7949=>600, 7950=>600, 7951=>600, 7952=>600, 7953=>600,
+ 7954=>600, 7955=>600, 7956=>600, 7957=>600, 7960=>600, 7961=>600, 7962=>600, 7963=>600, 7964=>600, 7965=>600, 7968=>600, 7969=>600, 7970=>600, 7971=>600, 7972=>600, 7973=>600,
+ 7974=>600, 7975=>600, 7976=>600, 7977=>600, 7978=>600, 7979=>600, 7980=>600, 7981=>600, 7982=>600, 7983=>600, 7984=>600, 7985=>600, 7986=>600, 7987=>600, 7988=>600, 7989=>600,
+ 7990=>600, 7991=>600, 7992=>600, 7993=>600, 7994=>600, 7995=>600, 7996=>600, 7997=>600, 7998=>600, 7999=>600, 8000=>600, 8001=>600, 8002=>600, 8003=>600, 8004=>600, 8005=>600,
+ 8008=>600, 8009=>600, 8010=>600, 8011=>600, 8012=>600, 8013=>600, 8016=>600, 8017=>600, 8018=>600, 8019=>600, 8020=>600, 8021=>600, 8022=>600, 8023=>600, 8025=>600, 8027=>600,
+ 8029=>600, 8031=>600, 8032=>600, 8033=>600, 8034=>600, 8035=>600, 8036=>600, 8037=>600, 8038=>600, 8039=>600, 8040=>600, 8041=>600, 8042=>600, 8043=>600, 8044=>600, 8045=>600,
+ 8046=>600, 8047=>600, 8048=>600, 8049=>600, 8050=>600, 8051=>600, 8052=>600, 8053=>600, 8054=>600, 8055=>600, 8056=>600, 8057=>600, 8058=>600, 8059=>600, 8060=>600, 8061=>600,
+ 8064=>600, 8065=>600, 8066=>600, 8067=>600, 8068=>600, 8069=>600, 8070=>600, 8071=>600, 8072=>600, 8073=>600, 8074=>600, 8075=>600, 8076=>600, 8077=>600, 8078=>600, 8079=>600,
+ 8080=>600, 8081=>600, 8082=>600, 8083=>600, 8084=>600, 8085=>600, 8086=>600, 8087=>600, 8088=>600, 8089=>600, 8090=>600, 8091=>600, 8092=>600, 8093=>600, 8094=>600, 8095=>600,
+ 8096=>600, 8097=>600, 8098=>600, 8099=>600, 8100=>600, 8101=>600, 8102=>600, 8103=>600, 8104=>600, 8105=>600, 8106=>600, 8107=>600, 8108=>600, 8109=>600, 8110=>600, 8111=>600,
+ 8112=>600, 8113=>600, 8114=>600, 8115=>600, 8116=>600, 8118=>600, 8119=>600, 8120=>600, 8121=>600, 8122=>600, 8123=>600, 8124=>600, 8125=>600, 8126=>600, 8127=>600, 8128=>600,
+ 8129=>600, 8130=>600, 8131=>600, 8132=>600, 8134=>600, 8135=>600, 8136=>600, 8137=>600, 8138=>600, 8139=>600, 8140=>600, 8141=>600, 8142=>600, 8143=>600, 8144=>600, 8145=>600,
+ 8146=>600, 8147=>600, 8150=>600, 8151=>600, 8152=>600, 8153=>600, 8154=>600, 8155=>600, 8157=>600, 8158=>600, 8159=>600, 8160=>600, 8161=>600, 8162=>600, 8163=>600, 8164=>600,
+ 8165=>600, 8166=>600, 8167=>600, 8168=>600, 8169=>600, 8170=>600, 8171=>600, 8172=>600, 8173=>600, 8175=>600, 8178=>600, 8179=>600, 8180=>600, 8182=>600, 8183=>600, 8184=>600,
+ 8185=>600, 8186=>600, 8187=>600, 8188=>600, 8189=>600, 8190=>600, 8208=>600, 8213=>600, 8215=>600, 8219=>600, 8223=>600, 8229=>600, 8241=>600, 8242=>600, 8243=>600, 8244=>600,
+ 8245=>600, 8246=>600, 8247=>600, 8252=>600, 8253=>600, 8254=>600, 8259=>600, 8260=>600, 8261=>600, 8262=>600, 8264=>600, 8265=>600, 8267=>600, 8304=>600, 8305=>600, 8306=>600,
+ 8307=>600, 8308=>600, 8309=>600, 8310=>600, 8311=>600, 8312=>600, 8313=>600, 8314=>600, 8315=>600, 8316=>600, 8317=>600, 8318=>600, 8319=>600, 8320=>600, 8321=>600, 8322=>600,
+ 8323=>600, 8324=>600, 8325=>600, 8326=>600, 8327=>600, 8328=>600, 8329=>600, 8330=>600, 8331=>600, 8332=>600, 8333=>600, 8334=>600, 8355=>600, 8356=>600, 8359=>600, 8362=>600,
+ 8448=>600, 8449=>600, 8450=>600, 8451=>600, 8453=>600, 8454=>600, 8455=>600, 8461=>600, 8464=>600, 8465=>600, 8466=>600, 8467=>600, 8468=>600, 8469=>600, 8470=>600, 8471=>600,
+ 8472=>600, 8473=>600, 8474=>600, 8477=>600, 8478=>600, 8484=>600, 8485=>600, 8486=>600, 8487=>600, 8490=>600, 8491=>600, 8498=>600, 8501=>600, 8531=>600, 8532=>600, 8533=>600,
+ 8534=>600, 8535=>600, 8536=>600, 8537=>600, 8538=>600, 8539=>600, 8540=>600, 8541=>600, 8542=>600, 8543=>600, 8544=>600, 8545=>600, 8546=>600, 8547=>600, 8548=>600, 8549=>600,
+ 8550=>600, 8551=>600, 8552=>600, 8553=>600, 8554=>600, 8555=>600, 8556=>600, 8557=>600, 8558=>600, 8559=>600, 8592=>600, 8593=>600, 8594=>600, 8595=>600, 8596=>600, 8597=>600,
+ 8598=>600, 8599=>600, 8600=>600, 8601=>600, 8602=>600, 8603=>600, 8604=>600, 8605=>600, 8606=>600, 8607=>600, 8608=>600, 8609=>600, 8610=>600, 8611=>600, 8612=>600, 8613=>600,
+ 8614=>600, 8615=>600, 8616=>600, 8617=>600, 8618=>600, 8619=>600, 8620=>600, 8621=>600, 8622=>600, 8623=>600, 8624=>600, 8625=>600, 8626=>600, 8627=>600, 8628=>600, 8629=>600,
+ 8630=>600, 8631=>600, 8632=>600, 8633=>600, 8634=>600, 8635=>600, 8636=>600, 8637=>600, 8638=>600, 8639=>600, 8640=>600, 8641=>600, 8642=>600, 8643=>600, 8644=>600, 8645=>600,
+ 8646=>600, 8647=>600, 8648=>600, 8649=>600, 8650=>600, 8651=>600, 8652=>600, 8653=>600, 8654=>600, 8655=>600, 8656=>600, 8657=>600, 8658=>600, 8659=>600, 8660=>600, 8661=>600,
+ 8704=>600, 8705=>600, 8706=>600, 8707=>600, 8708=>600, 8709=>600, 8710=>600, 8711=>600, 8712=>600, 8713=>600, 8714=>600, 8715=>600, 8716=>600, 8717=>600, 8719=>600, 8721=>600,
+ 8722=>600, 8723=>600, 8724=>600, 8725=>600, 8729=>600, 8730=>600, 8731=>600, 8732=>600, 8733=>600, 8734=>600, 8735=>600, 8743=>600, 8744=>600, 8745=>600, 8746=>600, 8747=>600,
+ 8748=>600, 8749=>600, 8750=>600, 8751=>600, 8752=>600, 8756=>600, 8757=>600, 8759=>600, 8764=>600, 8765=>600, 8769=>600, 8770=>600, 8771=>600, 8772=>600, 8773=>600, 8776=>600,
+ 8784=>600, 8785=>600, 8786=>600, 8787=>600, 8793=>600, 8794=>600, 8800=>600, 8801=>600, 8804=>600, 8805=>600, 8806=>600, 8807=>600, 8810=>600, 8811=>600, 8812=>600, 8814=>600,
+ 8815=>600, 8822=>600, 8823=>600, 8834=>600, 8835=>600, 8838=>600, 8839=>600, 8853=>600, 8854=>600, 8855=>600, 8856=>600, 8857=>600, 8858=>600, 8859=>600, 8860=>600, 8861=>600,
+ 8866=>600, 8867=>600, 8868=>600, 8869=>600, 8870=>600, 8871=>600, 8872=>600, 8873=>600, 8874=>600, 8875=>600, 8876=>600, 8877=>600, 8878=>600, 8879=>600, 8894=>600, 8901=>600,
+ 8902=>600, 8960=>600, 8962=>600, 8963=>600, 8968=>600, 8969=>600, 8970=>600, 8971=>600, 8972=>600, 8973=>600, 8974=>600, 8975=>600, 8976=>600, 8981=>600, 8988=>600, 8989=>600,
+ 8990=>600, 8991=>600, 9001=>600, 9002=>600, 9115=>600, 9116=>600, 9117=>600, 9118=>600, 9119=>600, 9120=>600, 9121=>600, 9122=>600, 9123=>600, 9124=>600, 9125=>600, 9126=>600,
+ 9127=>600, 9128=>600, 9129=>600, 9130=>600, 9131=>600, 9132=>600, 9133=>600, 9134=>600, 9135=>600, 9136=>600, 9137=>600, 9138=>600, 9139=>600, 9140=>600, 9143=>600, 9146=>600,
+ 9147=>600, 9148=>600, 9149=>600, 9472=>600, 9473=>600, 9474=>600, 9475=>600, 9476=>600, 9477=>600, 9478=>600, 9479=>600, 9480=>600, 9481=>600, 9482=>600, 9483=>600, 9484=>600,
+ 9485=>600, 9486=>600, 9487=>600, 9488=>600, 9489=>600, 9490=>600, 9491=>600, 9492=>600, 9493=>600, 9494=>600, 9495=>600, 9496=>600, 9497=>600, 9498=>600, 9499=>600, 9500=>600,
+ 9501=>600, 9502=>600, 9503=>600, 9504=>600, 9505=>600, 9506=>600, 9507=>600, 9508=>600, 9509=>600, 9510=>600, 9511=>600, 9512=>600, 9513=>600, 9514=>600, 9515=>600, 9516=>600,
+ 9517=>600, 9518=>600, 9519=>600, 9520=>600, 9521=>600, 9522=>600, 9523=>600, 9524=>600, 9525=>600, 9526=>600, 9527=>600, 9528=>600, 9529=>600, 9530=>600, 9531=>600, 9532=>600,
+ 9533=>600, 9534=>600, 9535=>600, 9536=>600, 9537=>600, 9538=>600, 9539=>600, 9540=>600, 9541=>600, 9542=>600, 9543=>600, 9544=>600, 9545=>600, 9546=>600, 9547=>600, 9548=>600,
+ 9549=>600, 9550=>600, 9551=>600, 9552=>600, 9553=>600, 9554=>600, 9555=>600, 9556=>600, 9557=>600, 9558=>600, 9559=>600, 9560=>600, 9561=>600, 9562=>600, 9563=>600, 9564=>600,
+ 9565=>600, 9566=>600, 9567=>600, 9568=>600, 9569=>600, 9570=>600, 9571=>600, 9572=>600, 9573=>600, 9574=>600, 9575=>600, 9576=>600, 9577=>600, 9578=>600, 9579=>600, 9580=>600,
+ 9581=>600, 9582=>600, 9583=>600, 9584=>600, 9585=>600, 9586=>600, 9587=>600, 9588=>600, 9589=>600, 9590=>600, 9591=>600, 9592=>600, 9593=>600, 9594=>600, 9595=>600, 9596=>600,
+ 9597=>600, 9598=>600, 9599=>600, 9600=>600, 9601=>600, 9602=>600, 9603=>600, 9604=>600, 9605=>600, 9606=>600, 9607=>600, 9608=>600, 9609=>600, 9610=>600, 9611=>600, 9612=>600,
+ 9613=>600, 9614=>600, 9615=>600, 9616=>600, 9617=>600, 9618=>600, 9619=>600, 9620=>600, 9621=>600, 9622=>600, 9623=>600, 9624=>600, 9625=>600, 9626=>600, 9627=>600, 9628=>600,
+ 9629=>600, 9630=>600, 9631=>600, 9632=>600, 9633=>600, 9634=>600, 9635=>600, 9636=>600, 9637=>600, 9638=>600, 9639=>600, 9640=>600, 9641=>600, 9642=>600, 9643=>600, 9644=>600,
+ 9645=>600, 9646=>600, 9647=>600, 9648=>600, 9649=>600, 9650=>600, 9651=>600, 9652=>600, 9653=>600, 9654=>600, 9655=>600, 9656=>600, 9657=>600, 9658=>600, 9659=>600, 9660=>600,
+ 9661=>600, 9662=>600, 9663=>600, 9664=>600, 9665=>600, 9666=>600, 9667=>600, 9668=>600, 9669=>600, 9670=>600, 9671=>600, 9672=>600, 9673=>600, 9674=>600, 9675=>600, 9676=>600,
+ 9677=>600, 9678=>600, 9679=>600, 9680=>600, 9681=>600, 9682=>600, 9683=>600, 9684=>600, 9685=>600, 9686=>600, 9687=>600, 9688=>600, 9689=>600, 9690=>600, 9691=>600, 9692=>600,
+ 9693=>600, 9694=>600, 9695=>600, 9696=>600, 9697=>600, 9698=>600, 9699=>600, 9700=>600, 9701=>600, 9702=>600, 9703=>600, 9704=>600, 9705=>600, 9706=>600, 9707=>600, 9708=>600,
+ 9709=>600, 9710=>600, 9711=>600, 9712=>600, 9713=>600, 9714=>600, 9715=>600, 9716=>600, 9717=>600, 9718=>600, 9719=>600, 9720=>600, 9721=>600, 9722=>600, 9723=>600, 9724=>600,
+ 9725=>600, 9726=>600, 9727=>600, 9728=>600, 9729=>600, 9730=>600, 9733=>600, 9734=>600, 9735=>600, 9736=>600, 9737=>600, 9744=>600, 9745=>600, 9746=>600, 9756=>600, 9758=>600,
+ 9766=>600, 9768=>600, 9769=>600, 9774=>600, 9776=>600, 9777=>600, 9778=>600, 9779=>600, 9780=>600, 9781=>600, 9782=>600, 9783=>600, 9785=>600, 9786=>600, 9787=>600, 9788=>600,
+ 9791=>600, 9792=>600, 9793=>600, 9794=>600, 9833=>600, 9834=>600, 9835=>600, 9836=>600, 9837=>600, 9838=>600, 9839=>600, 10214=>600, 10215=>600, 10216=>600, 10217=>600, 10218=>600,
+ 10219=>600, 10240=>600, 10241=>600, 10242=>600, 10243=>600, 10244=>600, 10245=>600, 10246=>600, 10247=>600, 10248=>600, 10249=>600, 10250=>600, 10251=>600, 10252=>600, 10253=>600, 10254=>600,
+ 10255=>600, 10256=>600, 10257=>600, 10258=>600, 10259=>600, 10260=>600, 10261=>600, 10262=>600, 10263=>600, 10264=>600, 10265=>600, 10266=>600, 10267=>600, 10268=>600, 10269=>600, 10270=>600,
+ 10271=>600, 10272=>600, 10273=>600, 10274=>600, 10275=>600, 10276=>600, 10277=>600, 10278=>600, 10279=>600, 10280=>600, 10281=>600, 10282=>600, 10283=>600, 10284=>600, 10285=>600, 10286=>600,
+ 10287=>600, 10288=>600, 10289=>600, 10290=>600, 10291=>600, 10292=>600, 10293=>600, 10294=>600, 10295=>600, 10296=>600, 10297=>600, 10298=>600, 10299=>600, 10300=>600, 10301=>600, 10302=>600,
+ 10303=>600, 10304=>600, 10305=>600, 10306=>600, 10307=>600, 10308=>600, 10309=>600, 10310=>600, 10311=>600, 10312=>600, 10313=>600, 10314=>600, 10315=>600, 10316=>600, 10317=>600, 10318=>600,
+ 10319=>600, 10320=>600, 10321=>600, 10322=>600, 10323=>600, 10324=>600, 10325=>600, 10326=>600, 10327=>600, 10328=>600, 10329=>600, 10330=>600, 10331=>600, 10332=>600, 10333=>600, 10334=>600,
+ 10335=>600, 10336=>600, 10337=>600, 10338=>600, 10339=>600, 10340=>600, 10341=>600, 10342=>600, 10343=>600, 10344=>600, 10345=>600, 10346=>600, 10347=>600, 10348=>600, 10349=>600, 10350=>600,
+ 10351=>600, 10352=>600, 10353=>600, 10354=>600, 10355=>600, 10356=>600, 10357=>600, 10358=>600, 10359=>600, 10360=>600, 10361=>600, 10362=>600, 10363=>600, 10364=>600, 10365=>600, 10366=>600,
+ 10367=>600, 10368=>600, 10369=>600, 10370=>600, 10371=>600, 10372=>600, 10373=>600, 10374=>600, 10375=>600, 10376=>600, 10377=>600, 10378=>600, 10379=>600, 10380=>600, 10381=>600, 10382=>600,
+ 10383=>600, 10384=>600, 10385=>600, 10386=>600, 10387=>600, 10388=>600, 10389=>600, 10390=>600, 10391=>600, 10392=>600, 10393=>600, 10394=>600, 10395=>600, 10396=>600, 10397=>600, 10398=>600,
+ 10399=>600, 10400=>600, 10401=>600, 10402=>600, 10403=>600, 10404=>600, 10405=>600, 10406=>600, 10407=>600, 10408=>600, 10409=>600, 10410=>600, 10411=>600, 10412=>600, 10413=>600, 10414=>600,
+ 10415=>600, 10416=>600, 10417=>600, 10418=>600, 10419=>600, 10420=>600, 10421=>600, 10422=>600, 10423=>600, 10424=>600, 10425=>600, 10426=>600, 10427=>600, 10428=>600, 10429=>600, 10430=>600,
+ 10431=>600, 10432=>600, 10433=>600, 10434=>600, 10435=>600, 10436=>600, 10437=>600, 10438=>600, 10439=>600, 10440=>600, 10441=>600, 10442=>600, 10443=>600, 10444=>600, 10445=>600, 10446=>600,
+ 10447=>600, 10448=>600, 10449=>600, 10450=>600, 10451=>600, 10452=>600, 10453=>600, 10454=>600, 10455=>600, 10456=>600, 10457=>600, 10458=>600, 10459=>600, 10460=>600, 10461=>600, 10462=>600,
+ 10463=>600, 10464=>600, 10465=>600, 10466=>600, 10467=>600, 10468=>600, 10469=>600, 10470=>600, 10471=>600, 10472=>600, 10473=>600, 10474=>600, 10475=>600, 10476=>600, 10477=>600, 10478=>600,
+ 10479=>600, 10480=>600, 10481=>600, 10482=>600, 10483=>600, 10484=>600, 10485=>600, 10486=>600, 10487=>600, 10488=>600, 10489=>600, 10490=>600, 10491=>600, 10492=>600, 10493=>600, 10494=>600,
+ 10495=>600, 63171=>600, 64256=>600, 64257=>600, 64258=>600, 64261=>600, 64262=>600, 64285=>600, 64286=>600, 64287=>600, 64288=>600, 64289=>600, 64290=>600, 64291=>600, 64292=>600, 64293=>600,
+ 64294=>600, 64295=>600, 64296=>600, 64297=>600, 64298=>600, 64299=>600, 64300=>600, 64301=>600, 64302=>600, 64303=>600, 64304=>600, 64305=>600, 64306=>600, 64307=>600, 64308=>600, 64309=>600,
+ 64310=>600, 64312=>600, 64313=>600, 64314=>600, 64315=>600, 64316=>600, 64318=>600, 64320=>600, 64321=>600, 64323=>600, 64324=>600, 64326=>600, 64327=>600, 64328=>600, 64329=>600, 64330=>600,
+ 64331=>600, 64332=>600, 64333=>600, 64334=>600, 64335=>600, 65533=>600, 8174=>600);
+$enc='';
+$diff='';
+$file='FreeMono.z';
+$ctg='FreeMono.ctg.z';
+$originalsize=293572;
+?>
diff --git a/lib/tcpdf/fonts/freemonob.php b/lib/tcpdf/fonts/freemonob.php
new file mode 100755
index 0000000000..1020dcc39d
--- /dev/null
+++ b/lib/tcpdf/fonts/freemonob.php
@@ -0,0 +1,107 @@
+1155,'Descent'=>-365,'CapHeight'=>1155,'Flags'=>32,'FontBBox'=>'[-656 -365 950 1155]','ItalicAngle'=>0,'StemV'=>120,'MissingWidth'=>600);
+$up=-100;
+$ut=50;
+$cw=array(
+ 13=>333, 32=>600, 33=>600, 34=>600, 35=>600, 36=>600, 37=>600, 38=>600, 39=>600, 40=>600, 41=>600, 42=>600, 43=>600, 44=>600, 45=>600, 46=>600,
+ 47=>600, 48=>600, 49=>600, 50=>600, 51=>600, 52=>600, 53=>600, 54=>600, 55=>600, 56=>600, 57=>600, 58=>600, 59=>600, 60=>600, 61=>600, 62=>600,
+ 63=>600, 64=>600, 65=>600, 66=>600, 67=>600, 68=>600, 69=>600, 70=>600, 71=>600, 72=>600, 73=>600, 74=>600, 75=>600, 76=>600, 77=>600, 78=>600,
+ 79=>600, 80=>600, 81=>600, 82=>600, 83=>600, 84=>600, 85=>600, 86=>600, 87=>600, 88=>600, 89=>600, 90=>600, 91=>600, 92=>600, 93=>600, 94=>600,
+ 95=>600, 96=>600, 97=>600, 98=>600, 99=>600, 100=>600, 101=>600, 102=>600, 103=>600, 104=>600, 105=>600, 106=>600, 107=>600, 108=>600, 109=>600, 110=>600,
+ 111=>600, 112=>600, 113=>600, 114=>600, 115=>600, 116=>600, 117=>600, 118=>600, 119=>600, 120=>600, 121=>600, 122=>600, 123=>600, 124=>600, 125=>600, 126=>600,
+ 8364=>600, 1027=>600, 8218=>600, 402=>600, 8222=>600, 8230=>600, 8224=>600, 8225=>600, 710=>600, 8240=>600, 352=>600, 8249=>600, 338=>600, 1036=>600, 381=>600, 1039=>600,
+ 8216=>600, 8217=>600, 8220=>600, 8221=>600, 8226=>600, 8211=>600, 8212=>600, 732=>600, 8482=>600, 353=>600, 8250=>600, 339=>600, 1116=>600, 382=>600, 376=>600, 160=>600,
+ 161=>600, 162=>600, 163=>600, 164=>600, 165=>600, 166=>600, 167=>600, 168=>600, 169=>600, 170=>600, 171=>600, 172=>600, 173=>600, 174=>600, 175=>600, 176=>600,
+ 177=>600, 178=>600, 179=>600, 180=>600, 181=>600, 182=>600, 183=>600, 184=>600, 185=>600, 186=>600, 187=>600, 188=>600, 189=>600, 190=>600, 191=>600, 192=>600,
+ 193=>600, 194=>600, 195=>600, 196=>600, 197=>600, 198=>600, 199=>600, 200=>600, 201=>600, 202=>600, 203=>600, 204=>600, 205=>600, 206=>600, 207=>600, 208=>600,
+ 209=>600, 210=>600, 211=>600, 212=>600, 213=>600, 214=>600, 215=>600, 216=>600, 217=>600, 218=>600, 219=>600, 220=>600, 221=>600, 222=>600, 223=>600, 224=>600,
+ 225=>600, 226=>600, 227=>600, 228=>600, 229=>600, 230=>600, 231=>600, 232=>600, 233=>600, 234=>600, 235=>600, 236=>600, 237=>600, 238=>600, 239=>600, 240=>600,
+ 241=>600, 242=>600, 243=>600, 244=>600, 245=>600, 246=>600, 247=>600, 248=>600, 249=>600, 250=>600, 251=>600, 252=>600, 253=>600, 254=>600, 255=>600, 256=>600,
+ 257=>600, 258=>600, 259=>600, 260=>600, 261=>600, 262=>600, 263=>600, 264=>600, 265=>600, 266=>600, 267=>600, 268=>600, 269=>600, 270=>600, 271=>600, 272=>600,
+ 273=>600, 274=>600, 275=>600, 276=>600, 277=>600, 278=>600, 279=>600, 280=>600, 281=>600, 282=>600, 283=>600, 284=>600, 285=>600, 286=>600, 287=>600, 288=>600,
+ 289=>600, 290=>600, 291=>600, 292=>600, 293=>600, 294=>600, 295=>600, 296=>600, 297=>600, 298=>600, 299=>600, 300=>600, 301=>600, 302=>600, 303=>600, 304=>600,
+ 305=>600, 306=>600, 307=>600, 308=>600, 309=>600, 310=>600, 311=>600, 312=>600, 313=>600, 314=>600, 315=>600, 316=>600, 317=>600, 318=>600, 319=>600, 320=>600,
+ 321=>600, 322=>600, 323=>600, 324=>600, 325=>600, 326=>600, 327=>600, 328=>600, 329=>600, 330=>600, 331=>600, 332=>600, 333=>600, 334=>600, 335=>600, 336=>600,
+ 337=>600, 340=>600, 341=>600, 342=>600, 343=>600, 344=>600, 345=>600, 346=>600, 347=>600, 348=>600, 349=>600, 350=>600, 351=>600, 354=>600, 355=>600, 356=>600,
+ 357=>600, 358=>600, 359=>600, 360=>600, 361=>600, 362=>600, 363=>600, 364=>600, 365=>600, 366=>600, 367=>600, 368=>600, 369=>600, 370=>600, 371=>600, 372=>600,
+ 373=>600, 374=>600, 375=>600, 377=>600, 378=>600, 379=>600, 380=>600, 383=>600, 384=>600, 385=>600, 386=>600, 387=>600, 390=>600, 391=>600, 392=>600, 393=>600,
+ 394=>600, 395=>600, 396=>600, 397=>600, 398=>600, 400=>600, 401=>600, 403=>600, 405=>600, 406=>600, 407=>600, 409=>600, 410=>600, 411=>600, 412=>600, 413=>600,
+ 414=>600, 415=>600, 416=>600, 417=>600, 418=>600, 419=>600, 420=>600, 421=>600, 422=>600, 423=>600, 424=>600, 425=>600, 427=>600, 428=>600, 429=>600, 430=>600,
+ 431=>600, 432=>600, 435=>600, 436=>600, 437=>600, 438=>600, 439=>600, 440=>600, 443=>600, 448=>600, 449=>600, 451=>600, 455=>600, 456=>600, 457=>600, 459=>600,
+ 460=>600, 461=>600, 462=>600, 463=>600, 464=>600, 465=>600, 466=>600, 467=>600, 468=>600, 469=>600, 470=>600, 471=>600, 472=>600, 473=>600, 474=>600, 475=>600,
+ 476=>600, 477=>600, 478=>600, 479=>600, 480=>600, 481=>600, 482=>600, 483=>600, 484=>600, 485=>600, 486=>600, 487=>600, 488=>600, 489=>600, 490=>600, 491=>600,
+ 492=>600, 493=>600, 494=>600, 496=>600, 500=>600, 501=>600, 502=>600, 504=>600, 505=>600, 506=>600, 507=>600, 508=>600, 509=>600, 510=>600, 511=>600, 512=>600,
+ 513=>600, 514=>600, 515=>600, 516=>600, 517=>600, 518=>600, 519=>600, 520=>600, 521=>600, 522=>600, 523=>600, 524=>600, 525=>600, 526=>600, 527=>600, 528=>600,
+ 529=>600, 530=>600, 531=>600, 532=>600, 533=>600, 534=>600, 535=>600, 536=>600, 537=>600, 538=>600, 539=>600, 542=>600, 543=>600, 548=>600, 549=>600, 550=>600,
+ 551=>600, 552=>600, 553=>600, 554=>600, 555=>600, 556=>600, 557=>600, 558=>600, 559=>600, 560=>600, 561=>600, 562=>600, 563=>600, 592=>600, 593=>600, 594=>600,
+ 595=>600, 596=>600, 598=>600, 599=>600, 600=>600, 601=>600, 603=>600, 604=>600, 607=>600, 608=>600, 609=>600, 613=>600, 614=>600, 615=>600, 616=>600, 617=>600,
+ 618=>600, 619=>600, 621=>600, 623=>600, 624=>600, 625=>600, 626=>600, 627=>600, 628=>600, 629=>600, 633=>600, 634=>600, 635=>600, 636=>600, 637=>600, 638=>600,
+ 639=>600, 640=>600, 641=>600, 642=>600, 643=>600, 644=>600, 645=>600, 647=>600, 648=>600, 649=>600, 652=>600, 653=>600, 654=>600, 656=>600, 660=>600, 661=>600,
+ 662=>600, 663=>600, 664=>600, 668=>600, 670=>600, 671=>600, 672=>600, 673=>600, 674=>600, 711=>600, 720=>600, 721=>600, 728=>600, 729=>600, 730=>600, 731=>600,
+ 733=>600, 768=>0, 769=>0, 770=>0, 771=>0, 772=>0, 773=>0, 774=>0, 775=>0, 776=>0, 777=>0, 778=>0, 779=>0, 780=>0, 781=>0, 782=>0,
+ 783=>0, 784=>0, 785=>0, 795=>0, 801=>0, 802=>0, 807=>0, 808=>0, 823=>0, 884=>600, 885=>600, 890=>600, 894=>600, 900=>600, 901=>600, 902=>600,
+ 903=>600, 904=>600, 905=>600, 906=>600, 908=>600, 910=>600, 911=>600, 912=>600, 913=>600, 914=>600, 915=>600, 916=>600, 917=>600, 918=>600, 919=>600, 920=>600,
+ 921=>600, 922=>600, 923=>600, 924=>600, 925=>600, 926=>600, 927=>600, 928=>600, 929=>600, 931=>600, 932=>600, 933=>600, 934=>600, 935=>600, 936=>600, 937=>600,
+ 938=>600, 939=>600, 940=>600, 941=>600, 942=>600, 943=>600, 944=>600, 945=>600, 946=>600, 947=>600, 948=>600, 949=>600, 950=>600, 951=>600, 952=>600, 953=>600,
+ 954=>600, 955=>600, 956=>600, 957=>600, 958=>600, 959=>600, 960=>600, 961=>600, 962=>600, 963=>600, 964=>600, 965=>600, 966=>600, 967=>600, 968=>600, 969=>600,
+ 970=>600, 971=>600, 972=>600, 973=>600, 974=>600, 976=>600, 977=>600, 981=>600, 1009=>600, 1024=>600, 1025=>600, 1026=>600, 1028=>600, 1029=>600, 1030=>600, 1031=>600,
+ 1032=>600, 1033=>600, 1034=>600, 1035=>600, 1037=>600, 1038=>600, 1040=>600, 1041=>600, 1042=>600, 1043=>600, 1044=>600, 1045=>600, 1046=>600, 1047=>600, 1048=>600, 1049=>600,
+ 1050=>600, 1051=>600, 1052=>600, 1053=>600, 1054=>600, 1055=>600, 1056=>600, 1057=>600, 1058=>600, 1059=>600, 1060=>600, 1061=>600, 1062=>600, 1063=>600, 1064=>600, 1065=>600,
+ 1066=>600, 1067=>600, 1068=>600, 1069=>600, 1070=>600, 1071=>600, 1072=>600, 1073=>600, 1074=>600, 1075=>600, 1076=>600, 1077=>600, 1078=>600, 1079=>600, 1080=>600, 1081=>600,
+ 1082=>600, 1083=>600, 1084=>600, 1085=>600, 1086=>600, 1087=>600, 1088=>600, 1089=>600, 1090=>600, 1091=>600, 1092=>600, 1093=>600, 1094=>600, 1095=>600, 1096=>600, 1097=>600,
+ 1098=>600, 1099=>600, 1100=>600, 1101=>600, 1102=>600, 1103=>600, 1104=>600, 1105=>600, 1106=>600, 1107=>600, 1108=>600, 1109=>600, 1110=>600, 1111=>600, 1112=>600, 1113=>600,
+ 1114=>600, 1115=>600, 1117=>600, 1118=>600, 1119=>600, 1164=>600, 1165=>600, 1166=>600, 1167=>600, 1168=>600, 1169=>600, 1170=>600, 1171=>600, 1172=>600, 1173=>600, 1174=>600,
+ 1175=>600, 1176=>600, 1177=>600, 1178=>600, 1179=>600, 1180=>600, 1181=>600, 1182=>600, 1183=>600, 1184=>600, 1185=>600, 1186=>600, 1187=>600, 1188=>600, 1189=>600, 1190=>600,
+ 1191=>600, 1192=>600, 1193=>600, 1194=>600, 1195=>600, 1196=>600, 1197=>600, 1198=>600, 1199=>600, 1200=>600, 1201=>600, 1202=>600, 1203=>600, 1204=>600, 1205=>600, 1206=>600,
+ 1207=>600, 1208=>600, 1209=>600, 1210=>600, 1211=>600, 1212=>600, 1213=>600, 1214=>600, 1215=>600, 1216=>600, 1217=>600, 1218=>600, 1219=>600, 1220=>600, 1221=>600, 1222=>600,
+ 1223=>600, 1224=>600, 1225=>600, 1226=>600, 1227=>600, 1228=>600, 1229=>600, 1230=>600, 1231=>600, 1232=>600, 1233=>600, 1234=>600, 1235=>600, 1236=>600, 1237=>600, 1238=>600,
+ 1239=>600, 1240=>600, 1241=>600, 1242=>600, 1243=>600, 1244=>600, 1245=>600, 1246=>600, 1247=>600, 1248=>600, 1249=>600, 1250=>600, 1251=>600, 1252=>600, 1253=>600, 1254=>600,
+ 1255=>600, 1256=>600, 1257=>600, 1258=>600, 1259=>600, 1260=>600, 1261=>600, 1262=>600, 1263=>600, 1264=>600, 1265=>600, 1266=>600, 1267=>600, 1268=>600, 1269=>600, 1270=>600,
+ 1271=>600, 1272=>600, 1273=>600, 1456=>600, 1457=>600, 1458=>600, 1459=>600, 1460=>600, 1461=>600, 1462=>600, 1463=>600, 1464=>600, 1465=>600, 1467=>600, 1468=>600, 1469=>600,
+ 1470=>600, 1471=>600, 1472=>600, 1473=>600, 1474=>600, 1475=>600, 1476=>600, 1488=>600, 1489=>600, 1490=>600, 1491=>600, 1492=>600, 1493=>600, 1494=>600, 1495=>600, 1496=>600,
+ 1497=>600, 1498=>600, 1499=>600, 1500=>600, 1501=>600, 1502=>600, 1503=>600, 1504=>600, 1505=>600, 1506=>600, 1507=>600, 1508=>600, 1509=>600, 1510=>600, 1511=>600, 1512=>600,
+ 1513=>600, 1514=>600, 1520=>600, 1521=>600, 1522=>600, 1523=>600, 1524=>600, 7680=>600, 7681=>600, 7682=>600, 7683=>600, 7684=>600, 7685=>600, 7686=>600, 7687=>600, 7688=>600,
+ 7689=>600, 7690=>600, 7691=>600, 7692=>600, 7693=>600, 7694=>600, 7695=>600, 7696=>600, 7697=>600, 7698=>600, 7699=>600, 7700=>600, 7701=>600, 7702=>600, 7703=>600, 7704=>600,
+ 7705=>600, 7706=>600, 7707=>600, 7708=>600, 7709=>600, 7710=>600, 7711=>600, 7712=>600, 7713=>600, 7714=>600, 7715=>600, 7716=>600, 7717=>600, 7718=>600, 7719=>600, 7720=>600,
+ 7721=>600, 7722=>600, 7723=>600, 7724=>600, 7725=>600, 7726=>600, 7727=>600, 7728=>600, 7729=>600, 7730=>600, 7731=>600, 7732=>600, 7733=>600, 7734=>600, 7735=>600, 7736=>600,
+ 7737=>600, 7738=>600, 7739=>600, 7740=>600, 7741=>600, 7742=>600, 7743=>600, 7744=>600, 7745=>600, 7746=>600, 7747=>600, 7748=>600, 7749=>600, 7750=>600, 7751=>600, 7752=>600,
+ 7753=>600, 7754=>600, 7755=>600, 7756=>600, 7757=>600, 7758=>600, 7759=>600, 7760=>600, 7761=>600, 7762=>600, 7763=>600, 7764=>600, 7765=>600, 7766=>600, 7767=>600, 7768=>600,
+ 7769=>600, 7770=>600, 7771=>600, 7772=>600, 7773=>600, 7774=>600, 7775=>600, 7776=>600, 7777=>600, 7778=>600, 7779=>600, 7780=>600, 7781=>600, 7782=>600, 7783=>600, 7784=>600,
+ 7785=>600, 7786=>600, 7787=>600, 7788=>600, 7789=>600, 7790=>600, 7791=>600, 7792=>600, 7793=>600, 7794=>600, 7795=>600, 7796=>600, 7797=>600, 7798=>600, 7799=>600, 7800=>600,
+ 7801=>600, 7802=>600, 7803=>600, 7804=>600, 7805=>600, 7806=>600, 7807=>600, 7808=>600, 7809=>600, 7810=>600, 7811=>600, 7812=>600, 7813=>600, 7814=>600, 7815=>600, 7816=>600,
+ 7817=>600, 7818=>600, 7819=>600, 7820=>600, 7821=>600, 7822=>600, 7823=>600, 7824=>600, 7825=>600, 7826=>600, 7827=>600, 7828=>600, 7829=>600, 7830=>600, 7831=>600, 7832=>600,
+ 7833=>600, 7835=>600, 7840=>600, 7841=>600, 7842=>600, 7843=>600, 7844=>600, 7845=>600, 7846=>600, 7847=>600, 7848=>600, 7849=>600, 7850=>600, 7851=>600, 7852=>600, 7853=>600,
+ 7854=>600, 7855=>600, 7856=>600, 7857=>600, 7858=>600, 7859=>600, 7860=>600, 7861=>600, 7862=>600, 7863=>600, 7864=>600, 7865=>600, 7866=>600, 7867=>600, 7868=>600, 7869=>600,
+ 7870=>600, 7871=>600, 7872=>600, 7873=>600, 7874=>600, 7875=>600, 7876=>600, 7877=>600, 7878=>600, 7879=>600, 7880=>600, 7881=>600, 7882=>600, 7883=>600, 7884=>600, 7885=>600,
+ 7886=>600, 7887=>600, 7888=>600, 7889=>600, 7890=>600, 7891=>600, 7892=>600, 7893=>600, 7894=>600, 7895=>600, 7896=>600, 7897=>600, 7898=>600, 7899=>600, 7900=>600, 7901=>600,
+ 7902=>600, 7903=>600, 7904=>600, 7905=>600, 7906=>600, 7907=>600, 7908=>600, 7909=>600, 7910=>600, 7911=>600, 7912=>600, 7913=>600, 7914=>600, 7915=>600, 7916=>600, 7917=>600,
+ 7918=>600, 7919=>600, 7920=>600, 7921=>600, 7922=>600, 7923=>600, 7924=>600, 7925=>600, 7926=>600, 7927=>600, 7928=>600, 7929=>600, 8209=>600, 8213=>600, 8219=>600, 8223=>600,
+ 8242=>600, 8243=>600, 8244=>600, 8245=>600, 8246=>600, 8247=>600, 8252=>600, 8260=>600, 8261=>600, 8262=>600, 8264=>600, 8265=>600, 8267=>600, 8292=>600, 8304=>600, 8305=>600,
+ 8306=>600, 8307=>600, 8308=>600, 8309=>600, 8310=>600, 8311=>600, 8312=>600, 8313=>600, 8314=>600, 8315=>600, 8316=>600, 8317=>600, 8318=>600, 8319=>600, 8320=>600, 8321=>600,
+ 8322=>600, 8323=>600, 8324=>600, 8325=>600, 8326=>600, 8327=>600, 8328=>600, 8329=>600, 8355=>600, 8356=>600, 8362=>600, 8466=>600, 8470=>600, 8486=>600, 8487=>600, 8490=>600,
+ 8491=>600, 8531=>600, 8532=>600, 8533=>600, 8534=>600, 8535=>600, 8536=>600, 8537=>600, 8538=>600, 8539=>600, 8540=>600, 8541=>600, 8542=>600, 8543=>600, 8592=>600, 8593=>600,
+ 8594=>600, 8595=>600, 8706=>600, 8709=>600, 8710=>600, 8711=>600, 8721=>600, 8722=>600, 8725=>600, 8730=>600, 8733=>600, 8734=>600, 8735=>600, 8800=>600, 8801=>600, 8804=>600,
+ 8805=>600, 8976=>600, 9472=>600, 9473=>600, 9474=>600, 9475=>600, 9476=>600, 9477=>600, 9478=>600, 9479=>600, 9480=>600, 9481=>600, 9482=>600, 9483=>600, 9484=>600, 9485=>600,
+ 9486=>600, 9487=>600, 9488=>600, 9489=>600, 9490=>600, 9491=>600, 9492=>600, 9493=>600, 9494=>600, 9495=>600, 9496=>600, 9497=>600, 9498=>600, 9499=>600, 9500=>600, 9501=>600,
+ 9502=>600, 9503=>600, 9504=>600, 9505=>600, 9506=>600, 9507=>600, 9508=>600, 9509=>600, 9510=>600, 9511=>600, 9512=>600, 9513=>600, 9514=>600, 9515=>600, 9516=>600, 9517=>600,
+ 9518=>600, 9519=>600, 9520=>600, 9521=>600, 9522=>600, 9523=>600, 9524=>600, 9525=>600, 9526=>600, 9527=>600, 9528=>600, 9529=>600, 9530=>600, 9531=>600, 9532=>600, 9533=>600,
+ 9534=>600, 9535=>600, 9536=>600, 9537=>600, 9538=>600, 9539=>600, 9540=>600, 9541=>600, 9542=>600, 9543=>600, 9544=>600, 9545=>600, 9546=>600, 9547=>600, 9548=>600, 9549=>600,
+ 9550=>600, 9551=>600, 9552=>600, 9553=>600, 9554=>600, 9555=>600, 9556=>600, 9557=>600, 9558=>600, 9559=>600, 9560=>600, 9561=>600, 9562=>600, 9563=>600, 9564=>600, 9565=>600,
+ 9566=>600, 9567=>600, 9568=>600, 9569=>600, 9570=>600, 9571=>600, 9572=>600, 9573=>600, 9574=>600, 9575=>600, 9576=>600, 9577=>600, 9578=>600, 9579=>600, 9580=>600, 9581=>600,
+ 9582=>600, 9583=>600, 9584=>600, 9585=>600, 9586=>600, 9587=>600, 9588=>600, 9589=>600, 9590=>600, 9591=>600, 9592=>600, 9593=>600, 9594=>600, 9595=>600, 9596=>600, 9597=>600,
+ 9598=>600, 9599=>600, 9600=>600, 9601=>600, 9602=>600, 9603=>600, 9604=>600, 9605=>600, 9606=>600, 9607=>600, 9608=>600, 9609=>600, 9610=>600, 9611=>600, 9612=>600, 9613=>600,
+ 9614=>600, 9615=>600, 9616=>600, 9617=>600, 9618=>600, 9619=>600, 9620=>600, 9621=>600, 9632=>600, 9633=>600, 9635=>600, 9636=>600, 9637=>600, 9638=>600, 9639=>600, 9640=>600,
+ 9641=>600, 9642=>600, 9643=>600, 9644=>600, 9645=>600, 9646=>600, 9647=>600, 9648=>600, 9649=>600, 9650=>600, 9651=>600, 9652=>600, 9653=>600, 9654=>600, 9655=>600, 9656=>600,
+ 9657=>600, 9658=>600, 9660=>600, 9661=>600, 9662=>600, 9663=>600, 9664=>600, 9665=>600, 9666=>600, 9667=>600, 9668=>600, 9669=>600, 9670=>600, 9671=>600, 9673=>600, 9674=>600,
+ 9675=>600, 9677=>600, 9679=>600, 9680=>600, 9681=>600, 9682=>600, 9683=>600, 9684=>600, 9685=>600, 9686=>600, 9687=>600, 9688=>600, 9689=>600, 9698=>600, 9699=>600, 9700=>600,
+ 9701=>600, 9702=>600, 9703=>600, 9704=>600, 9705=>600, 9706=>600, 9707=>600, 9708=>600, 9709=>600, 9710=>600, 9712=>600, 9713=>600, 9714=>600, 9715=>600, 9716=>600, 9717=>600,
+ 9718=>600, 9719=>600, 9735=>600, 9736=>600, 9737=>600, 9776=>600, 9777=>600, 9778=>600, 9779=>600, 9780=>600, 9781=>600, 9782=>600, 9783=>600, 9785=>600, 9786=>600, 9787=>600,
+ 9833=>600, 9834=>600, 9835=>600, 9836=>600, 63166=>600, 63171=>600, 64256=>600, 64257=>600, 64258=>600);
+$enc='';
+$diff='';
+$file='FreeMonoBold.z';
+$ctg='FreeMonoBold.ctg.z';
+$originalsize=175016;
+?>
diff --git a/lib/tcpdf/fonts/freemonobi.php b/lib/tcpdf/fonts/freemonobi.php
new file mode 100755
index 0000000000..236549678a
--- /dev/null
+++ b/lib/tcpdf/fonts/freemonobi.php
@@ -0,0 +1,62 @@
+1111,'Descent'=>-278,'CapHeight'=>1111,'Flags'=>96,'FontBBox'=>'[-513 -278 840 1111]','ItalicAngle'=>-12,'StemV'=>120,'MissingWidth'=>600);
+$up=-100;
+$ut=50;
+$cw=array(
+ 13=>333, 32=>600, 33=>600, 34=>600, 35=>600, 36=>600, 37=>600, 38=>600, 39=>600, 40=>600, 41=>600, 42=>600, 43=>600, 44=>600, 45=>600, 46=>600,
+ 47=>600, 48=>600, 49=>600, 50=>600, 51=>600, 52=>600, 53=>600, 54=>600, 55=>600, 56=>600, 57=>600, 58=>600, 59=>600, 60=>600, 61=>600, 62=>600,
+ 63=>600, 64=>600, 65=>600, 66=>600, 67=>600, 68=>600, 69=>600, 70=>600, 71=>600, 72=>600, 73=>600, 74=>600, 75=>600, 76=>600, 77=>600, 78=>600,
+ 79=>600, 80=>600, 81=>600, 82=>600, 83=>600, 84=>600, 85=>600, 86=>600, 87=>600, 88=>600, 89=>600, 90=>600, 91=>600, 92=>600, 93=>600, 94=>600,
+ 95=>600, 96=>600, 97=>600, 98=>600, 99=>600, 100=>600, 101=>600, 102=>600, 103=>600, 104=>600, 105=>600, 106=>600, 107=>600, 108=>600, 109=>600, 110=>600,
+ 111=>600, 112=>600, 113=>600, 114=>600, 115=>600, 116=>600, 117=>600, 118=>600, 119=>600, 120=>600, 121=>600, 122=>600, 123=>600, 124=>600, 125=>600, 126=>600,
+ 8364=>600, 1027=>600, 8218=>600, 402=>600, 8222=>600, 8230=>600, 8224=>600, 8225=>600, 710=>600, 8240=>600, 352=>600, 8249=>600, 338=>600, 1036=>600, 381=>600, 1039=>600,
+ 8216=>600, 8217=>600, 8220=>600, 8221=>600, 8226=>600, 8211=>600, 8212=>600, 732=>600, 8482=>600, 353=>600, 8250=>600, 339=>600, 1116=>600, 382=>600, 376=>600, 160=>600,
+ 161=>600, 162=>600, 163=>600, 164=>600, 165=>600, 166=>600, 167=>600, 168=>600, 169=>600, 170=>600, 171=>600, 172=>600, 173=>600, 174=>600, 175=>600, 176=>600,
+ 177=>600, 178=>600, 179=>600, 180=>600, 181=>600, 182=>600, 183=>600, 184=>600, 185=>600, 186=>600, 187=>600, 188=>600, 189=>600, 190=>600, 191=>600, 192=>600,
+ 193=>600, 194=>600, 195=>600, 196=>600, 197=>600, 198=>600, 199=>600, 200=>600, 201=>600, 202=>600, 203=>600, 204=>600, 205=>600, 206=>600, 207=>600, 208=>600,
+ 209=>600, 210=>600, 211=>600, 212=>600, 213=>600, 214=>600, 215=>600, 216=>600, 217=>600, 218=>600, 219=>600, 220=>600, 221=>600, 222=>600, 223=>600, 224=>600,
+ 225=>600, 226=>600, 227=>600, 228=>600, 229=>600, 230=>600, 231=>600, 232=>600, 233=>600, 234=>600, 235=>600, 236=>600, 237=>600, 238=>600, 239=>600, 240=>600,
+ 241=>600, 242=>600, 243=>600, 244=>600, 245=>600, 246=>600, 247=>600, 248=>600, 249=>600, 250=>600, 251=>600, 252=>600, 253=>600, 254=>600, 255=>600, 256=>600,
+ 257=>600, 258=>600, 259=>600, 260=>600, 261=>600, 262=>600, 263=>600, 264=>600, 265=>600, 266=>600, 267=>600, 268=>600, 269=>600, 270=>600, 271=>600, 272=>600,
+ 273=>600, 274=>600, 275=>600, 276=>600, 277=>600, 278=>600, 279=>600, 280=>600, 281=>600, 282=>600, 283=>600, 284=>600, 285=>600, 286=>600, 287=>600, 288=>600,
+ 289=>600, 290=>600, 291=>600, 292=>600, 293=>600, 294=>600, 295=>600, 296=>600, 297=>600, 298=>600, 299=>600, 300=>600, 301=>600, 302=>600, 303=>600, 304=>600,
+ 305=>600, 306=>600, 307=>600, 308=>600, 309=>600, 310=>600, 311=>600, 312=>600, 313=>600, 314=>600, 315=>600, 316=>600, 317=>600, 318=>600, 319=>600, 320=>600,
+ 321=>600, 322=>600, 323=>600, 324=>600, 325=>600, 326=>600, 327=>600, 328=>600, 329=>600, 330=>600, 331=>600, 332=>600, 333=>600, 334=>600, 335=>600, 336=>600,
+ 337=>600, 340=>600, 341=>600, 342=>600, 343=>600, 344=>600, 345=>600, 346=>600, 347=>600, 348=>600, 349=>600, 350=>600, 351=>600, 354=>600, 355=>600, 356=>600,
+ 357=>600, 358=>600, 359=>600, 360=>600, 361=>600, 362=>600, 363=>600, 364=>600, 365=>600, 366=>600, 367=>600, 368=>600, 369=>600, 370=>600, 371=>600, 372=>600,
+ 373=>600, 374=>600, 375=>600, 377=>600, 378=>600, 379=>600, 380=>600, 383=>600, 425=>600, 461=>600, 462=>600, 463=>600, 464=>600, 465=>600, 466=>600, 467=>600,
+ 468=>600, 469=>600, 470=>600, 471=>600, 472=>600, 473=>600, 474=>600, 475=>600, 476=>600, 477=>600, 478=>600, 479=>600, 482=>600, 483=>600, 486=>600, 487=>600,
+ 488=>600, 489=>600, 490=>600, 491=>600, 492=>600, 493=>600, 496=>600, 500=>600, 501=>600, 504=>600, 505=>600, 506=>600, 507=>600, 508=>600, 509=>600, 510=>600,
+ 511=>600, 512=>600, 513=>600, 514=>600, 515=>600, 516=>600, 517=>600, 518=>600, 519=>600, 520=>600, 521=>600, 522=>600, 523=>600, 524=>600, 525=>600, 526=>600,
+ 527=>600, 528=>600, 529=>600, 530=>600, 531=>600, 532=>600, 533=>600, 534=>600, 535=>600, 536=>600, 537=>600, 538=>600, 539=>600, 593=>600, 617=>600, 711=>600,
+ 728=>600, 729=>0, 730=>600, 731=>600, 733=>600, 768=>0, 769=>0, 770=>0, 771=>0, 772=>0, 774=>0, 775=>0, 776=>0, 778=>0, 779=>0, 780=>0,
+ 783=>0, 784=>0, 785=>0, 900=>600, 901=>600, 902=>600, 904=>600, 912=>600, 913=>600, 914=>600, 915=>600, 916=>600, 917=>600, 918=>600, 919=>600, 920=>600,
+ 921=>600, 922=>600, 923=>600, 924=>600, 925=>600, 926=>600, 927=>600, 928=>600, 929=>600, 931=>600, 932=>600, 933=>600, 934=>600, 935=>600, 936=>600, 937=>600,
+ 938=>600, 939=>600, 945=>600, 946=>600, 947=>600, 950=>600, 951=>600, 952=>600, 953=>600, 954=>600, 955=>600, 956=>600, 957=>600, 959=>600, 970=>600, 1024=>600,
+ 1025=>600, 1026=>600, 1028=>600, 1029=>600, 1030=>600, 1031=>600, 1032=>600, 1033=>600, 1034=>600, 1035=>600, 1037=>600, 1038=>600, 1040=>600, 1041=>600, 1042=>600, 1043=>600,
+ 1044=>600, 1045=>600, 1046=>600, 1047=>600, 1048=>600, 1049=>600, 1050=>600, 1051=>600, 1052=>600, 1053=>600, 1054=>600, 1055=>600, 1056=>600, 1057=>600, 1058=>600, 1059=>600,
+ 1060=>600, 1061=>600, 1062=>600, 1063=>600, 1064=>600, 1065=>600, 1066=>600, 1067=>600, 1068=>600, 1069=>600, 1070=>600, 1071=>600, 1072=>600, 1073=>600, 1074=>600, 1075=>600,
+ 1076=>600, 1077=>600, 1078=>600, 1079=>600, 1080=>600, 1081=>600, 1082=>600, 1083=>600, 1084=>600, 1085=>600, 1086=>600, 1087=>600, 1088=>600, 1089=>600, 1090=>600, 1091=>600,
+ 1092=>600, 1093=>600, 1094=>600, 1095=>600, 1096=>600, 1097=>600, 1098=>600, 1099=>600, 1100=>600, 1101=>600, 1102=>600, 1103=>600, 1104=>600, 1105=>600, 1106=>600, 1107=>600,
+ 1108=>600, 1109=>600, 1110=>600, 1111=>600, 1112=>600, 1113=>600, 1114=>600, 1115=>600, 1117=>600, 1118=>600, 1119=>600, 1164=>600, 1165=>600, 1166=>600, 1167=>600, 1168=>600,
+ 1169=>600, 1170=>600, 1171=>600, 1172=>600, 1173=>600, 1174=>600, 1175=>600, 1176=>600, 1177=>600, 1178=>600, 1179=>600, 1180=>600, 1181=>600, 1182=>600, 1183=>600, 1184=>600,
+ 1185=>600, 1186=>600, 1187=>600, 1188=>600, 1189=>600, 1190=>600, 1191=>600, 1192=>600, 1193=>600, 1194=>600, 1195=>600, 1196=>600, 1197=>600, 1198=>600, 1199=>600, 1200=>600,
+ 1201=>600, 1202=>600, 1203=>600, 1204=>600, 1205=>600, 1206=>600, 1207=>600, 1208=>600, 1209=>600, 1210=>600, 1211=>600, 1212=>600, 1213=>600, 1214=>600, 1215=>600, 1216=>600,
+ 1217=>600, 1218=>600, 1219=>600, 1220=>600, 1223=>600, 1224=>600, 1227=>600, 1228=>600, 1232=>600, 1233=>600, 1234=>600, 1235=>600, 1236=>600, 1237=>600, 1238=>600, 1239=>600,
+ 1240=>600, 1241=>600, 1242=>600, 1243=>600, 1244=>600, 1245=>600, 1246=>600, 1247=>600, 1248=>600, 1249=>600, 1250=>600, 1251=>600, 1252=>600, 1253=>600, 1254=>600, 1255=>600,
+ 1256=>600, 1257=>600, 1258=>600, 1259=>600, 1260=>600, 1261=>600, 1262=>600, 1263=>600, 1264=>600, 1265=>600, 1266=>600, 1267=>600, 1268=>600, 1269=>600, 1272=>600, 1273=>600,
+ 1456=>600, 1457=>600, 1458=>600, 1459=>600, 1460=>600, 1461=>600, 1462=>600, 1463=>600, 1464=>600, 1465=>600, 1467=>600, 1468=>600, 1469=>600, 1470=>600, 1471=>600, 1472=>600,
+ 1473=>600, 1474=>600, 1475=>600, 1476=>600, 1488=>600, 1489=>600, 1490=>600, 1491=>600, 1492=>600, 1493=>600, 1494=>600, 1495=>600, 1496=>600, 1497=>600, 1498=>600, 1499=>600,
+ 1500=>600, 1501=>600, 1502=>600, 1503=>600, 1504=>600, 1505=>600, 1506=>600, 1507=>600, 1508=>600, 1509=>600, 1510=>600, 1511=>600, 1512=>600, 1513=>600, 1514=>600, 1520=>600,
+ 1521=>600, 1522=>600, 1523=>600, 1524=>600, 8213=>600, 8260=>600, 8304=>600, 8305=>600, 8306=>600, 8307=>600, 8308=>600, 8309=>600, 8310=>600, 8311=>600, 8312=>600, 8313=>600,
+ 8320=>600, 8321=>600, 8322=>600, 8323=>600, 8324=>600, 8325=>600, 8326=>600, 8327=>600, 8328=>600, 8329=>600, 8362=>600, 8470=>600, 8486=>600, 8531=>600, 8532=>600, 8533=>600,
+ 8534=>600, 8535=>600, 8536=>600, 8537=>600, 8538=>600, 8539=>600, 8540=>600, 8541=>600, 8542=>600, 8543=>600, 8592=>600, 8593=>600, 8594=>600, 8595=>600, 8706=>600, 8710=>600,
+ 8721=>600, 8722=>600, 8730=>600, 8734=>600, 8800=>600, 8804=>600, 8805=>600, 9674=>600, 9833=>600, 9834=>600, 9835=>600, 9836=>600, 63166=>600, 63171=>600, 64257=>600, 64258=>600);
+$enc='';
+$diff='';
+$file='FreeMonoBoldOblique.z';
+$ctg='FreeMonoBoldOblique.ctg.z';
+$originalsize=128384;
+?>
diff --git a/lib/tcpdf/fonts/freemonoi.php b/lib/tcpdf/fonts/freemonoi.php
new file mode 100755
index 0000000000..75b9bf95b6
--- /dev/null
+++ b/lib/tcpdf/fonts/freemonoi.php
@@ -0,0 +1,89 @@
+1000,'Descent'=>-273,'CapHeight'=>1000,'Flags'=>96,'FontBBox'=>'[-577 -273 779 1000]','ItalicAngle'=>-12,'StemV'=>70,'MissingWidth'=>600);
+$up=-100;
+$ut=50;
+$cw=array(
+ 13=>333, 32=>600, 33=>600, 34=>600, 35=>600, 36=>600, 37=>600, 38=>600, 39=>600, 40=>600, 41=>600, 42=>600, 43=>600, 44=>600, 45=>600, 46=>600,
+ 47=>600, 48=>600, 49=>600, 50=>600, 51=>600, 52=>600, 53=>600, 54=>600, 55=>600, 56=>600, 57=>600, 58=>600, 59=>600, 60=>600, 61=>600, 62=>600,
+ 63=>600, 64=>600, 65=>600, 66=>600, 67=>600, 68=>600, 69=>600, 70=>600, 71=>600, 72=>600, 73=>600, 74=>600, 75=>600, 76=>600, 77=>600, 78=>600,
+ 79=>600, 80=>600, 81=>600, 82=>600, 83=>600, 84=>600, 85=>600, 86=>600, 87=>600, 88=>600, 89=>600, 90=>600, 91=>600, 92=>600, 93=>600, 94=>600,
+ 95=>600, 96=>600, 97=>600, 98=>600, 99=>600, 100=>600, 101=>600, 102=>600, 103=>600, 104=>600, 105=>600, 106=>600, 107=>600, 108=>600, 109=>600, 110=>600,
+ 111=>600, 112=>600, 113=>600, 114=>600, 115=>600, 116=>600, 117=>600, 118=>600, 119=>600, 120=>600, 121=>600, 122=>600, 123=>600, 124=>600, 125=>600, 126=>600,
+ 8364=>600, 1027=>600, 8218=>600, 402=>600, 8222=>600, 8230=>600, 8224=>600, 8225=>600, 710=>600, 8240=>600, 352=>600, 8249=>600, 338=>600, 1036=>600, 381=>600, 1039=>600,
+ 8216=>600, 8217=>600, 8220=>600, 8221=>600, 8226=>600, 8211=>600, 8212=>600, 732=>600, 8482=>600, 353=>600, 8250=>600, 339=>600, 1116=>600, 382=>600, 376=>600, 160=>600,
+ 161=>600, 162=>600, 163=>600, 164=>600, 165=>600, 166=>600, 167=>600, 168=>600, 169=>600, 170=>600, 171=>600, 172=>600, 173=>600, 174=>600, 175=>600, 176=>600,
+ 177=>600, 178=>600, 179=>600, 180=>600, 181=>600, 182=>600, 183=>600, 184=>600, 185=>600, 186=>600, 187=>600, 188=>600, 189=>600, 190=>600, 191=>600, 192=>600,
+ 193=>600, 194=>600, 195=>600, 196=>600, 197=>600, 198=>600, 199=>600, 200=>600, 201=>600, 202=>600, 203=>600, 204=>600, 205=>600, 206=>600, 207=>600, 208=>600,
+ 209=>600, 210=>600, 211=>600, 212=>600, 213=>600, 214=>600, 215=>600, 216=>600, 217=>600, 218=>600, 219=>600, 220=>600, 221=>600, 222=>600, 223=>600, 224=>600,
+ 225=>600, 226=>600, 227=>600, 228=>600, 229=>600, 230=>600, 231=>600, 232=>600, 233=>600, 234=>600, 235=>600, 236=>600, 237=>600, 238=>600, 239=>600, 240=>600,
+ 241=>600, 242=>600, 243=>600, 244=>600, 245=>600, 246=>600, 247=>600, 248=>600, 249=>600, 250=>600, 251=>600, 252=>600, 253=>600, 254=>600, 255=>600, 256=>600,
+ 257=>600, 258=>600, 259=>600, 260=>600, 261=>600, 262=>600, 263=>600, 264=>600, 265=>600, 266=>600, 267=>600, 268=>600, 269=>600, 270=>600, 271=>600, 272=>600,
+ 273=>600, 274=>600, 275=>600, 276=>600, 277=>600, 278=>600, 279=>600, 280=>600, 281=>600, 282=>600, 283=>600, 284=>600, 285=>600, 286=>600, 287=>600, 288=>600,
+ 289=>600, 290=>600, 291=>600, 292=>600, 293=>600, 294=>600, 295=>600, 296=>600, 297=>600, 298=>600, 299=>600, 300=>600, 301=>600, 302=>600, 303=>600, 304=>600,
+ 305=>600, 306=>600, 307=>600, 308=>600, 309=>600, 310=>600, 311=>600, 312=>600, 313=>600, 314=>600, 315=>600, 316=>600, 317=>600, 318=>600, 319=>600, 320=>600,
+ 321=>600, 322=>600, 323=>600, 324=>600, 325=>600, 326=>600, 327=>600, 328=>600, 329=>600, 330=>600, 331=>600, 332=>600, 333=>600, 334=>600, 335=>600, 336=>600,
+ 337=>600, 340=>600, 341=>600, 342=>600, 343=>600, 344=>600, 345=>600, 346=>600, 347=>600, 348=>600, 349=>600, 350=>600, 351=>600, 354=>600, 355=>600, 356=>600,
+ 357=>600, 358=>600, 359=>600, 360=>600, 361=>600, 362=>600, 363=>600, 364=>600, 365=>600, 366=>600, 367=>600, 368=>600, 369=>600, 370=>600, 371=>600, 372=>600,
+ 373=>600, 374=>600, 375=>600, 377=>600, 378=>600, 379=>600, 380=>600, 383=>600, 384=>600, 385=>600, 386=>600, 387=>600, 388=>600, 389=>600, 390=>600, 391=>600,
+ 392=>600, 393=>600, 394=>600, 395=>600, 396=>600, 397=>600, 398=>600, 399=>600, 400=>600, 401=>600, 403=>600, 404=>600, 405=>600, 406=>600, 407=>600, 408=>600,
+ 409=>600, 410=>600, 411=>600, 412=>600, 413=>600, 414=>600, 415=>600, 416=>600, 417=>600, 418=>600, 419=>600, 420=>600, 421=>600, 422=>600, 423=>600, 424=>600,
+ 425=>600, 426=>600, 427=>600, 428=>600, 429=>600, 430=>600, 431=>600, 432=>600, 433=>600, 434=>600, 435=>600, 436=>600, 437=>600, 438=>600, 439=>600, 440=>600,
+ 441=>600, 442=>600, 443=>600, 444=>600, 445=>600, 446=>600, 448=>600, 449=>600, 450=>600, 451=>600, 452=>600, 453=>600, 454=>600, 455=>600, 456=>600, 457=>600,
+ 458=>600, 459=>600, 460=>600, 461=>600, 462=>600, 463=>600, 464=>600, 465=>600, 466=>600, 467=>600, 468=>600, 469=>600, 470=>600, 471=>600, 472=>600, 473=>600,
+ 474=>600, 475=>600, 476=>600, 477=>600, 478=>600, 479=>600, 480=>600, 481=>600, 482=>600, 483=>600, 484=>600, 485=>600, 486=>600, 487=>600, 488=>600, 489=>600,
+ 490=>600, 491=>600, 492=>600, 493=>600, 494=>600, 495=>600, 496=>600, 497=>600, 498=>600, 499=>600, 500=>600, 501=>600, 502=>600, 504=>600, 505=>600, 506=>600,
+ 507=>600, 508=>600, 509=>600, 510=>600, 511=>600, 512=>600, 513=>600, 514=>600, 515=>600, 516=>600, 517=>600, 518=>600, 519=>600, 520=>600, 521=>600, 522=>600,
+ 523=>600, 524=>600, 525=>600, 526=>600, 527=>600, 528=>600, 529=>600, 530=>600, 531=>600, 532=>600, 533=>600, 534=>600, 535=>600, 536=>600, 537=>600, 538=>600,
+ 539=>600, 542=>600, 543=>600, 548=>600, 549=>600, 550=>600, 551=>600, 552=>600, 553=>600, 554=>600, 555=>600, 556=>600, 557=>600, 558=>600, 559=>600, 560=>600,
+ 561=>600, 562=>600, 563=>600, 592=>600, 593=>600, 594=>600, 595=>600, 596=>600, 597=>600, 598=>600, 599=>600, 600=>600, 601=>600, 602=>600, 603=>600, 604=>600,
+ 605=>600, 606=>600, 607=>600, 608=>600, 609=>600, 610=>600, 611=>600, 612=>600, 613=>600, 614=>600, 615=>600, 616=>600, 617=>600, 618=>600, 619=>600, 620=>600,
+ 621=>600, 622=>600, 623=>600, 624=>600, 625=>600, 626=>600, 627=>600, 628=>600, 629=>600, 630=>600, 631=>600, 632=>600, 633=>600, 634=>600, 635=>600, 636=>600,
+ 637=>600, 638=>600, 639=>600, 640=>600, 641=>600, 642=>600, 643=>600, 644=>600, 645=>600, 646=>600, 647=>600, 648=>600, 649=>600, 650=>600, 651=>600, 652=>600,
+ 653=>600, 654=>600, 655=>600, 656=>600, 657=>600, 658=>600, 659=>600, 660=>600, 661=>600, 662=>600, 663=>600, 664=>600, 665=>600, 666=>600, 667=>600, 668=>600,
+ 669=>600, 670=>600, 671=>600, 672=>600, 673=>600, 674=>600, 711=>600, 712=>600, 713=>600, 714=>600, 715=>600, 728=>600, 729=>600, 730=>600, 731=>600, 733=>600,
+ 768=>0, 769=>0, 770=>0, 771=>0, 772=>0, 773=>0, 774=>0, 775=>0, 776=>0, 777=>0, 778=>0, 779=>0, 780=>0, 781=>0, 782=>0, 783=>0,
+ 807=>0, 808=>0, 821=>0, 822=>0, 823=>0, 824=>0, 901=>600, 902=>600, 904=>600, 905=>600, 906=>600, 908=>600, 910=>600, 911=>600, 912=>600, 913=>600,
+ 914=>600, 915=>600, 916=>600, 917=>600, 918=>600, 919=>600, 920=>600, 921=>600, 922=>600, 923=>600, 924=>600, 925=>600, 926=>600, 927=>600, 928=>600, 929=>600,
+ 931=>600, 932=>600, 933=>600, 934=>600, 935=>600, 936=>600, 937=>600, 938=>600, 939=>600, 940=>600, 941=>600, 942=>600, 943=>600, 944=>600, 945=>600, 946=>600,
+ 947=>600, 948=>600, 949=>600, 950=>600, 951=>600, 952=>600, 953=>600, 954=>600, 955=>600, 956=>600, 957=>600, 958=>600, 959=>600, 960=>600, 961=>600, 962=>600,
+ 963=>600, 964=>600, 965=>600, 966=>600, 967=>600, 968=>600, 969=>600, 970=>600, 971=>600, 972=>600, 973=>600, 974=>600, 1024=>600, 1025=>600, 1026=>600, 1028=>600,
+ 1029=>600, 1030=>600, 1031=>600, 1032=>600, 1033=>600, 1034=>600, 1035=>600, 1037=>600, 1038=>600, 1040=>600, 1041=>600, 1042=>600, 1043=>600, 1044=>600, 1045=>600, 1046=>600,
+ 1047=>600, 1048=>600, 1049=>600, 1050=>600, 1051=>600, 1052=>600, 1053=>600, 1054=>600, 1055=>600, 1056=>600, 1057=>600, 1058=>600, 1059=>600, 1060=>600, 1061=>600, 1062=>600,
+ 1063=>600, 1064=>600, 1065=>600, 1066=>600, 1067=>600, 1068=>600, 1069=>600, 1070=>600, 1071=>600, 1072=>600, 1073=>600, 1074=>600, 1075=>600, 1076=>600, 1077=>600, 1078=>600,
+ 1079=>600, 1080=>600, 1081=>600, 1082=>600, 1083=>600, 1084=>600, 1085=>600, 1086=>600, 1087=>600, 1088=>600, 1089=>600, 1090=>600, 1091=>600, 1092=>600, 1093=>600, 1094=>600,
+ 1095=>600, 1096=>600, 1097=>600, 1098=>600, 1099=>600, 1100=>600, 1101=>600, 1102=>600, 1103=>600, 1104=>600, 1105=>600, 1106=>600, 1107=>600, 1108=>600, 1109=>600, 1110=>600,
+ 1111=>600, 1112=>600, 1113=>600, 1114=>600, 1115=>600, 1117=>600, 1118=>600, 1119=>600, 1164=>600, 1165=>600, 1166=>600, 1167=>600, 1168=>600, 1169=>600, 1170=>600, 1171=>600,
+ 1172=>600, 1173=>600, 1174=>600, 1175=>600, 1176=>600, 1177=>600, 1178=>600, 1179=>600, 1180=>600, 1181=>600, 1182=>600, 1183=>600, 1184=>600, 1185=>600, 1186=>600, 1187=>600,
+ 1188=>600, 1189=>600, 1190=>600, 1191=>600, 1192=>600, 1193=>600, 1194=>600, 1195=>600, 1196=>600, 1197=>600, 1198=>600, 1199=>600, 1200=>600, 1201=>600, 1202=>600, 1203=>600,
+ 1204=>600, 1205=>600, 1206=>600, 1207=>600, 1208=>600, 1209=>600, 1210=>600, 1211=>600, 1212=>600, 1213=>600, 1214=>600, 1215=>600, 1216=>600, 1217=>600, 1218=>600, 1219=>600,
+ 1220=>600, 1223=>600, 1224=>600, 1227=>600, 1228=>600, 1232=>600, 1233=>600, 1234=>600, 1235=>600, 1236=>600, 1237=>600, 1238=>600, 1239=>600, 1240=>600, 1241=>600, 1242=>600,
+ 1243=>600, 1244=>600, 1245=>600, 1246=>600, 1247=>600, 1248=>600, 1249=>600, 1250=>600, 1251=>600, 1252=>600, 1253=>600, 1254=>600, 1255=>600, 1256=>600, 1257=>600, 1258=>600,
+ 1259=>600, 1260=>600, 1261=>600, 1262=>600, 1263=>600, 1264=>600, 1265=>600, 1266=>600, 1267=>600, 1268=>600, 1269=>600, 1272=>600, 1273=>600, 1328=>600, 1329=>600, 1330=>600,
+ 1331=>600, 1332=>600, 1333=>600, 1334=>600, 1335=>600, 1336=>600, 1337=>600, 1338=>600, 1339=>600, 1340=>600, 1341=>600, 1342=>600, 1343=>600, 1344=>600, 1345=>600, 1346=>600,
+ 1347=>600, 1348=>600, 1349=>600, 1350=>600, 1351=>600, 1352=>600, 1353=>600, 1354=>600, 1355=>600, 1356=>600, 1357=>600, 1358=>600, 1359=>600, 1360=>600, 1361=>600, 1362=>600,
+ 1363=>600, 1364=>600, 1365=>600, 1366=>600, 1367=>600, 1368=>600, 1369=>600, 1370=>600, 1371=>600, 1372=>600, 1373=>600, 1374=>600, 1375=>600, 1376=>600, 1377=>600, 1378=>600,
+ 1379=>600, 1380=>600, 1381=>600, 1382=>600, 1383=>600, 1384=>600, 1385=>600, 1386=>600, 1387=>600, 1388=>600, 1389=>600, 1390=>600, 1391=>600, 1392=>600, 1393=>600, 1394=>600,
+ 1395=>600, 1396=>600, 1397=>600, 1398=>600, 1399=>600, 1400=>600, 1401=>600, 1402=>600, 1403=>600, 1404=>600, 1405=>600, 1406=>600, 1407=>600, 1408=>600, 1409=>600, 1410=>600,
+ 1411=>600, 1412=>600, 1413=>600, 1414=>600, 1415=>600, 1416=>600, 1417=>600, 1418=>600, 1456=>600, 1457=>600, 1458=>600, 1459=>600, 1460=>600, 1461=>600, 1462=>600, 1463=>600,
+ 1464=>600, 1465=>600, 1467=>600, 1468=>600, 1469=>600, 1470=>600, 1471=>600, 1472=>600, 1473=>600, 1474=>600, 1475=>600, 1476=>600, 1488=>600, 1489=>600, 1490=>600, 1491=>600,
+ 1492=>600, 1493=>600, 1494=>600, 1495=>600, 1496=>600, 1497=>600, 1498=>600, 1499=>600, 1500=>600, 1501=>600, 1502=>600, 1503=>600, 1504=>600, 1505=>600, 1506=>600, 1507=>600,
+ 1508=>600, 1509=>600, 1510=>600, 1511=>600, 1512=>600, 1513=>600, 1514=>600, 1520=>600, 1521=>600, 1522=>600, 1523=>600, 1524=>600, 8213=>600, 8241=>600, 8242=>600, 8243=>600,
+ 8244=>600, 8245=>600, 8246=>600, 8247=>600, 8252=>600, 8253=>600, 8260=>600, 8261=>600, 8262=>600, 8263=>600, 8264=>600, 8265=>600, 8304=>600, 8305=>600, 8306=>600, 8307=>600,
+ 8308=>600, 8309=>600, 8310=>600, 8311=>600, 8312=>600, 8313=>600, 8314=>600, 8315=>600, 8316=>600, 8317=>600, 8318=>600, 8319=>600, 8320=>600, 8321=>600, 8322=>600, 8323=>600,
+ 8324=>600, 8325=>600, 8326=>600, 8327=>600, 8328=>600, 8329=>600, 8356=>600, 8362=>600, 8448=>600, 8449=>600, 8450=>600, 8451=>600, 8452=>600, 8453=>600, 8454=>600, 8455=>600,
+ 8456=>600, 8457=>600, 8458=>600, 8459=>600, 8460=>600, 8461=>600, 8462=>600, 8463=>600, 8464=>600, 8465=>600, 8466=>600, 8467=>600, 8468=>600, 8469=>600, 8470=>600, 8471=>600,
+ 8472=>600, 8473=>600, 8474=>600, 8475=>600, 8476=>600, 8477=>600, 8478=>600, 8479=>600, 8484=>600, 8486=>600, 8487=>600, 8490=>600, 8491=>600, 8531=>600, 8532=>600, 8533=>600,
+ 8534=>600, 8535=>600, 8536=>600, 8537=>600, 8538=>600, 8539=>600, 8540=>600, 8541=>600, 8542=>600, 8543=>600, 8592=>600, 8593=>600, 8594=>600, 8595=>600, 8596=>600, 8597=>600,
+ 8598=>600, 8599=>600, 8600=>600, 8601=>600, 8616=>600, 8706=>600, 8710=>600, 8721=>600, 8722=>600, 8730=>600, 8734=>600, 8800=>600, 8804=>600, 8805=>600, 9674=>600, 9833=>600,
+ 9834=>600, 9835=>600, 9836=>600, 9837=>600, 9838=>600, 9839=>600, 63171=>600, 64257=>600, 64258=>600, 64285=>600, 64286=>600, 64287=>600, 64288=>600, 64289=>600, 64290=>600, 64291=>600,
+ 64292=>600, 64293=>600, 64294=>600, 64295=>600, 64296=>600, 64297=>600, 64298=>600, 64299=>600, 64300=>600, 64301=>600, 64302=>600, 64303=>600, 64304=>600, 64305=>600, 64306=>600, 64307=>600,
+ 64308=>600, 64309=>600, 64310=>600, 64312=>600, 64313=>600, 64314=>600, 64315=>600, 64316=>600, 64318=>600, 64320=>600, 64321=>600, 64323=>600, 64324=>600, 64326=>600, 64327=>600, 64328=>600,
+ 64329=>600, 64330=>600, 64331=>600, 64332=>600, 64333=>600, 64334=>600, 64335=>600);
+$enc='';
+$diff='';
+$file='FreeMonoOblique.z';
+$ctg='FreeMonoOblique.ctg.z';
+$originalsize=175484;
+?>
diff --git a/lib/tcpdf/fonts/freesans.php b/lib/tcpdf/fonts/freesans.php
new file mode 100755
index 0000000000..ff57eacb59
--- /dev/null
+++ b/lib/tcpdf/fonts/freesans.php
@@ -0,0 +1,149 @@
+1141,'Descent'=>-459,'CapHeight'=>1141,'Flags'=>32,'FontBBox'=>'[-797 -459 1632 1141]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>600);
+$up=-151;
+$ut=50;
+$cw=array(
+ 13=>333, 32=>278, 33=>278, 34=>355, 35=>556, 36=>556, 37=>889, 38=>667, 39=>191, 40=>333, 41=>333, 42=>389, 43=>584, 44=>278, 45=>333, 46=>278,
+ 47=>278, 48=>556, 49=>556, 50=>556, 51=>556, 52=>556, 53=>556, 54=>556, 55=>556, 56=>556, 57=>556, 58=>278, 59=>278, 60=>584, 61=>584, 62=>584,
+ 63=>556, 64=>1015, 65=>667, 66=>667, 67=>722, 68=>722, 69=>667, 70=>611, 71=>778, 72=>722, 73=>278, 74=>500, 75=>667, 76=>556, 77=>833, 78=>722,
+ 79=>778, 80=>667, 81=>778, 82=>722, 83=>667, 84=>611, 85=>722, 86=>667, 87=>944, 88=>667, 89=>667, 90=>611, 91=>278, 92=>278, 93=>278, 94=>469,
+ 95=>556, 96=>333, 97=>556, 98=>556, 99=>500, 100=>556, 101=>556, 102=>278, 103=>556, 104=>556, 105=>222, 106=>222, 107=>500, 108=>222, 109=>833, 110=>556,
+ 111=>556, 112=>556, 113=>556, 114=>333, 115=>500, 116=>278, 117=>556, 118=>500, 119=>722, 120=>500, 121=>500, 122=>500, 123=>334, 124=>260, 125=>334, 126=>584,
+ 8364=>556, 1027=>611, 8218=>222, 402=>556, 8222=>333, 8230=>1000, 8224=>556, 8225=>556, 710=>333, 8240=>1000, 352=>667, 8249=>333, 338=>1000, 1036=>667, 381=>611, 1039=>722,
+ 8216=>222, 8217=>221, 8220=>333, 8221=>333, 8226=>350, 8211=>556, 8212=>1000, 732=>333, 8482=>1000, 353=>500, 8250=>333, 339=>944, 1116=>500, 382=>500, 376=>667, 160=>278,
+ 161=>333, 162=>556, 163=>556, 164=>556, 165=>556, 166=>260, 167=>556, 168=>333, 169=>737, 170=>370, 171=>556, 172=>584, 173=>333, 174=>737, 175=>333, 176=>606,
+ 177=>584, 178=>351, 179=>351, 180=>333, 181=>556, 182=>537, 183=>278, 184=>333, 185=>351, 186=>365, 187=>556, 188=>869, 189=>869, 190=>869, 191=>611, 192=>667,
+ 193=>667, 194=>667, 195=>667, 196=>667, 197=>667, 198=>1000, 199=>722, 200=>667, 201=>667, 202=>667, 203=>667, 204=>278, 205=>278, 206=>278, 207=>278, 208=>722,
+ 209=>722, 210=>778, 211=>778, 212=>778, 213=>778, 214=>778, 215=>584, 216=>778, 217=>722, 218=>722, 219=>722, 220=>722, 221=>666, 222=>666, 223=>611, 224=>556,
+ 225=>556, 226=>556, 227=>556, 228=>556, 229=>556, 230=>889, 231=>500, 232=>556, 233=>556, 234=>556, 235=>556, 236=>278, 237=>278, 238=>278, 239=>278, 240=>556,
+ 241=>556, 242=>556, 243=>556, 244=>556, 245=>556, 246=>556, 247=>584, 248=>611, 249=>556, 250=>556, 251=>556, 252=>556, 253=>500, 254=>555, 255=>500, 256=>667,
+ 257=>556, 258=>667, 259=>556, 260=>667, 261=>556, 262=>722, 263=>500, 264=>722, 265=>500, 266=>722, 267=>500, 268=>722, 269=>500, 270=>722, 271=>635, 272=>722,
+ 273=>556, 274=>667, 275=>556, 276=>667, 277=>556, 278=>667, 279=>556, 280=>667, 281=>556, 282=>667, 283=>556, 284=>778, 285=>556, 286=>778, 287=>556, 288=>778,
+ 289=>556, 290=>778, 291=>556, 292=>722, 293=>556, 294=>722, 295=>556, 296=>278, 297=>278, 298=>278, 299=>222, 300=>278, 301=>278, 302=>278, 303=>222, 304=>278,
+ 305=>278, 306=>700, 307=>374, 308=>500, 309=>222, 310=>667, 311=>500, 312=>500, 313=>556, 314=>222, 315=>556, 316=>222, 317=>556, 318=>292, 319=>556, 320=>500,
+ 321=>556, 322=>222, 323=>722, 324=>556, 325=>722, 326=>556, 327=>722, 328=>556, 329=>556, 330=>722, 331=>556, 332=>778, 333=>556, 334=>778, 335=>556, 336=>778,
+ 337=>556, 340=>722, 341=>333, 342=>722, 343=>333, 344=>722, 345=>333, 346=>667, 347=>500, 348=>667, 349=>500, 350=>667, 351=>500, 354=>611, 355=>278, 356=>611,
+ 357=>308, 358=>611, 359=>278, 360=>722, 361=>556, 362=>722, 363=>556, 364=>722, 365=>556, 366=>722, 367=>556, 368=>722, 369=>556, 370=>722, 371=>556, 372=>944,
+ 373=>722, 374=>667, 375=>500, 377=>611, 378=>500, 379=>611, 380=>500, 383=>278, 384=>556, 386=>667, 387=>556, 388=>667, 389=>556, 390=>722, 391=>722, 392=>500,
+ 393=>722, 395=>667, 396=>556, 398=>667, 399=>778, 400=>667, 401=>611, 403=>778, 409=>500, 413=>722, 414=>556, 415=>778, 421=>556, 423=>667, 424=>500, 425=>611,
+ 427=>278, 429=>278, 430=>611, 452=>1311, 453=>1208, 454=>1056, 455=>1056, 456=>778, 457=>444, 458=>1158, 459=>944, 460=>778, 461=>667, 462=>556, 463=>278, 464=>278,
+ 465=>778, 466=>556, 467=>722, 468=>556, 469=>722, 470=>556, 471=>722, 472=>556, 473=>722, 474=>556, 475=>722, 476=>556, 477=>556, 478=>667, 479=>556, 480=>667,
+ 481=>556, 482=>1000, 483=>889, 486=>778, 487=>556, 488=>667, 489=>500, 490=>778, 491=>556, 492=>778, 493=>556, 496=>222, 497=>1333, 498=>1222, 499=>1056, 500=>778,
+ 501=>556, 504=>722, 505=>556, 506=>667, 507=>556, 508=>1000, 509=>889, 510=>778, 511=>611, 512=>667, 513=>556, 514=>667, 515=>556, 516=>667, 517=>556, 518=>667,
+ 519=>556, 520=>278, 521=>278, 522=>278, 523=>278, 524=>778, 525=>556, 526=>778, 527=>556, 528=>722, 529=>333, 530=>722, 531=>333, 532=>722, 533=>556, 534=>722,
+ 535=>556, 536=>667, 537=>500, 538=>611, 539=>278, 542=>722, 543=>556, 550=>667, 551=>556, 552=>667, 553=>556, 554=>778, 555=>556, 556=>778, 557=>556, 558=>778,
+ 559=>556, 560=>778, 561=>556, 562=>667, 563=>500, 592=>556, 593=>556, 594=>556, 595=>556, 596=>500, 598=>556, 599=>556, 600=>556, 601=>556, 603=>500, 604=>500,
+ 608=>556, 609=>556, 613=>556, 614=>556, 615=>556, 616=>222, 617=>222, 618=>278, 621=>222, 623=>833, 624=>833, 625=>833, 626=>556, 627=>556, 629=>556, 633=>333,
+ 634=>333, 635=>333, 636=>333, 637=>333, 638=>278, 639=>278, 642=>500, 643=>278, 644=>278, 645=>278, 647=>278, 648=>278, 649=>556, 652=>500, 653=>722, 654=>500,
+ 656=>500, 668=>500, 670=>500, 672=>556, 711=>333, 714=>333, 715=>333, 728=>333, 729=>333, 730=>333, 731=>333, 733=>333, 768=>0, 769=>0, 770=>0, 771=>0,
+ 772=>0, 774=>0, 775=>0, 776=>0, 778=>0, 779=>0, 780=>0, 783=>0, 785=>0, 786=>0, 787=>0, 788=>0, 806=>0, 807=>0, 808=>0, 884=>199,
+ 885=>199, 890=>332, 894=>278, 900=>414, 901=>747, 902=>730, 903=>278, 904=>664, 905=>681, 906=>230, 908=>792, 910=>710, 911=>758, 912=>286, 913=>684, 914=>628,
+ 915=>582, 916=>684, 917=>650, 918=>628, 919=>683, 920=>750, 921=>236, 922=>684, 923=>684, 924=>800, 925=>654, 926=>630, 927=>750, 928=>721, 929=>638, 931=>628,
+ 932=>628, 933=>684, 934=>717, 935=>723, 936=>745, 937=>720, 938=>236, 939=>684, 940=>608, 941=>528, 942=>547, 943=>307, 944=>515, 945=>596, 946=>516, 947=>531,
+ 948=>560, 949=>510, 950=>462, 951=>526, 952=>526, 953=>286, 954=>516, 955=>560, 956=>574, 957=>504, 958=>470, 959=>550, 960=>661, 961=>566, 962=>535, 963=>616,
+ 964=>532, 965=>515, 966=>741, 967=>572, 968=>662, 969=>740, 970=>286, 971=>515, 972=>553, 973=>518, 974=>740, 1024=>667, 1025=>667, 1026=>766, 1028=>722, 1029=>667,
+ 1030=>278, 1031=>278, 1032=>500, 1033=>1080, 1034=>1014, 1035=>766, 1037=>722, 1038=>650, 1040=>667, 1041=>667, 1042=>667, 1043=>611, 1044=>812, 1045=>667, 1046=>1023, 1047=>667,
+ 1048=>728, 1049=>728, 1050=>667, 1051=>673, 1052=>844, 1053=>719, 1054=>778, 1055=>719, 1056=>667, 1057=>722, 1058=>611, 1059=>650, 1060=>936, 1061=>667, 1062=>741, 1063=>648,
+ 1064=>828, 1065=>850, 1066=>897, 1067=>872, 1068=>667, 1069=>722, 1070=>1032, 1071=>702, 1072=>556, 1073=>556, 1074=>522, 1075=>430, 1076=>602, 1077=>556, 1078=>837, 1079=>500,
+ 1080=>567, 1081=>567, 1082=>510, 1083=>557, 1084=>618, 1085=>558, 1086=>556, 1087=>557, 1088=>576, 1089=>500, 1090=>496, 1091=>500, 1092=>912, 1093=>500, 1094=>578, 1095=>520,
+ 1096=>692, 1097=>712, 1098=>734, 1099=>690, 1100=>552, 1101=>500, 1102=>758, 1103=>543, 1104=>556, 1105=>556, 1106=>568, 1107=>430, 1108=>500, 1109=>500, 1110=>222, 1111=>278,
+ 1112=>222, 1113=>840, 1114=>850, 1115=>568, 1117=>556, 1118=>500, 1119=>556, 1164=>667, 1165=>552, 1166=>667, 1167=>556, 1168=>611, 1169=>430, 1170=>611, 1171=>430, 1172=>611,
+ 1173=>430, 1174=>1023, 1175=>837, 1176=>667, 1177=>500, 1178=>667, 1179=>500, 1180=>667, 1181=>500, 1182=>667, 1183=>500, 1184=>667, 1185=>500, 1186=>722, 1187=>556, 1188=>1060,
+ 1189=>764, 1190=>722, 1191=>556, 1192=>722, 1193=>500, 1194=>722, 1195=>500, 1196=>611, 1197=>496, 1198=>667, 1199=>500, 1200=>667, 1201=>500, 1202=>667, 1203=>500, 1204=>774,
+ 1205=>608, 1206=>642, 1207=>508, 1208=>642, 1209=>508, 1210=>642, 1211=>508, 1212=>778, 1213=>556, 1214=>688, 1215=>556, 1216=>278, 1217=>1023, 1218=>837, 1219=>667, 1220=>500,
+ 1223=>722, 1224=>556, 1227=>642, 1228=>508, 1232=>667, 1233=>556, 1234=>667, 1235=>556, 1236=>1000, 1237=>889, 1238=>667, 1239=>556, 1240=>778, 1241=>556, 1242=>778, 1243=>556,
+ 1244=>1023, 1245=>837, 1246=>667, 1247=>500, 1248=>667, 1249=>500, 1250=>728, 1251=>567, 1252=>728, 1253=>567, 1254=>778, 1255=>556, 1256=>778, 1257=>556, 1258=>778, 1259=>556,
+ 1260=>722, 1261=>500, 1262=>650, 1263=>500, 1264=>650, 1265=>500, 1266=>650, 1267=>500, 1268=>648, 1269=>520, 1272=>872, 1273=>690, 1329=>722, 1330=>705, 1331=>774, 1332=>754,
+ 1333=>722, 1334=>751, 1335=>485, 1336=>722, 1337=>782, 1338=>655, 1339=>699, 1340=>417, 1341=>853, 1342=>791, 1343=>711, 1344=>588, 1345=>663, 1346=>665, 1347=>665, 1348=>756,
+ 1349=>623, 1350=>773, 1351=>603, 1352=>722, 1353=>648, 1354=>722, 1355=>751, 1356=>750, 1357=>722, 1358=>748, 1359=>667, 1360=>699, 1361=>623, 1362=>417, 1363=>785, 1364=>638,
+ 1365=>778, 1366=>716, 1370=>222, 1371=>133, 1372=>325, 1373=>333, 1374=>344, 1377=>833, 1378=>556, 1379=>572, 1380=>581, 1381=>550, 1382=>588, 1383=>448, 1384=>556, 1385=>568,
+ 1386=>582, 1387=>545, 1388=>301, 1389=>799, 1390=>556, 1391=>554, 1392=>533, 1393=>548, 1394=>552, 1395=>552, 1396=>544, 1397=>222, 1398=>544, 1399=>456, 1400=>556, 1401=>390,
+ 1402=>833, 1403=>509, 1404=>547, 1405=>533, 1406=>610, 1407=>887, 1408=>556, 1409=>545, 1410=>352, 1411=>853, 1412=>588, 1413=>579, 1414=>690, 1415=>545, 1417=>278, 1418=>367,
+ 1456=>70, 1457=>335, 1458=>329, 1459=>329, 1460=>70, 1461=>200, 1462=>200, 1463=>188, 1464=>188, 1465=>70, 1467=>329, 1468=>70, 1469=>70, 1470=>488, 1471=>200, 1472=>212,
+ 1473=>0, 1474=>0, 1475=>278, 1476=>70, 1488=>640, 1489=>591, 1490=>466, 1491=>598, 1492=>622, 1493=>212, 1494=>351, 1495=>623, 1496=>608, 1497=>200, 1498=>526, 1499=>550,
+ 1500=>600, 1501=>623, 1502=>621, 1503=>212, 1504=>378, 1505=>607, 1506=>587, 1507=>575, 1508=>568, 1509=>540, 1510=>590, 1511=>606, 1512=>547, 1513=>776, 1514=>687, 1792=>600,
+ 1793=>201, 1794=>201, 1795=>201, 1796=>201, 1797=>500, 1798=>500, 1799=>500, 1800=>370, 1801=>370, 1802=>574, 1803=>574, 1804=>645, 1805=>574, 1808=>452, 1809=>452, 1810=>574,
+ 1811=>645, 1812=>645, 1813=>509, 1814=>509, 1815=>682, 1816=>585, 1817=>404, 1818=>627, 1819=>718, 1820=>718, 1821=>484, 1822=>682, 1823=>600, 1824=>660, 1825=>682, 1826=>538,
+ 1827=>718, 1828=>718, 1829=>718, 1830=>574, 1831=>574, 1832=>638, 1833=>585, 1834=>509, 1835=>682, 1836=>682, 1840=>1, 1841=>1, 1842=>1, 1843=>1, 1844=>1, 1845=>1,
+ 1846=>1, 1847=>1, 1848=>1, 1849=>1, 1850=>1, 1851=>1, 1852=>1, 1853=>1, 1854=>1, 1855=>1, 1856=>1, 1857=>1, 1858=>1, 1859=>1, 1860=>1, 1861=>1,
+ 1862=>1, 1863=>1, 1864=>1, 1865=>1, 1866=>1, 2305=>6, 2306=>6, 2309=>644, 2310=>816, 2311=>392, 2312=>392, 2313=>459, 2314=>661, 2315=>641, 2317=>423, 2320=>423,
+ 2321=>816, 2323=>816, 2324=>816, 2325=>393, 2326=>622, 2327=>424, 2328=>472, 2329=>508, 2330=>517, 2331=>583, 2332=>549, 2333=>503, 2334=>538, 2335=>444, 2336=>480, 2337=>519,
+ 2338=>479, 2339=>504, 2340=>439, 2341=>542, 2342=>427, 2343=>520, 2344=>415, 2345=>415, 2346=>401, 2347=>401, 2348=>442, 2349=>520, 2350=>463, 2351=>451, 2352=>319, 2353=>319,
+ 2354=>549, 2355=>641, 2357=>442, 2358=>589, 2359=>398, 2360=>506, 2361=>430, 2364=>6, 2365=>438, 2366=>172, 2367=>172, 2368=>172, 2369=>6, 2370=>6, 2371=>6, 2373=>6,
+ 2375=>6, 2376=>6, 2377=>172, 2379=>172, 2380=>172, 2381=>6, 2384=>898, 2385=>6, 2406=>584, 2407=>584, 2408=>584, 2409=>584, 2410=>584, 2411=>584, 2412=>584, 2413=>584,
+ 2414=>584, 2415=>584, 2416=>898, 2433=>300, 2434=>400, 2435=>300, 2437=>640, 2438=>780, 2439=>520, 2440=>520, 2441=>530, 2442=>550, 2443=>620, 2444=>420, 2447=>480, 2448=>620,
+ 2451=>620, 2452=>720, 2453=>652, 2454=>500, 2455=>490, 2456=>466, 2457=>540, 2458=>490, 2459=>540, 2460=>630, 2461=>590, 2462=>680, 2463=>510, 2464=>490, 2465=>520, 2466=>520,
+ 2467=>470, 2468=>540, 2469=>490, 2470=>470, 2471=>490, 2472=>452, 2474=>560, 2475=>650, 2476=>480, 2477=>588, 2478=>480, 2479=>470, 2480=>480, 2482=>472, 2486=>512, 2487=>470,
+ 2488=>470, 2489=>520, 2492=>160, 2494=>180, 2495=>180, 2496=>180, 2497=>320, 2498=>329, 2499=>195, 2500=>260, 2503=>340, 2504=>340, 2507=>740, 2508=>740, 2509=>400, 2519=>180,
+ 2524=>540, 2525=>520, 2527=>470, 2528=>612, 2529=>420, 2530=>234, 2531=>360, 2534=>460, 2535=>420, 2536=>520, 2537=>540, 2538=>400, 2539=>400, 2540=>560, 2541=>390, 2542=>480,
+ 2543=>420, 2544=>480, 2545=>470, 2546=>400, 2547=>470, 2548=>400, 2549=>400, 2550=>400, 2551=>120, 2552=>440, 2553=>420, 2554=>420, 2565=>744, 2566=>914, 2567=>690, 2568=>670,
+ 2569=>596, 2570=>596, 2575=>498, 2576=>744, 2579=>596, 2580=>744, 2581=>550, 2582=>534, 2583=>618, 2584=>690, 2585=>546, 2586=>518, 2587=>592, 2588=>492, 2589=>574, 2590=>514,
+ 2591=>526, 2592=>556, 2593=>524, 2594=>528, 2595=>574, 2596=>484, 2597=>534, 2598=>504, 2599=>534, 2600=>538, 2602=>534, 2603=>506, 2604=>562, 2605=>516, 2606=>546, 2607=>670,
+ 2608=>538, 2610=>726, 2611=>726, 2613=>514, 2614=>546, 2616=>546, 2617=>517, 2620=>286, 2622=>172, 2623=>190, 2624=>190, 2625=>1, 2626=>1, 2631=>1, 2632=>1, 2635=>1,
+ 2636=>1, 2637=>1, 2649=>534, 2650=>618, 2651=>492, 2652=>484, 2654=>506, 2662=>616, 2663=>480, 2664=>560, 2665=>480, 2666=>468, 2667=>492, 2668=>514, 2669=>538, 2670=>572,
+ 2671=>560, 2672=>1, 2674=>498, 2675=>596, 2676=>900, 2689=>33, 2690=>33, 2693=>767, 2694=>961, 2695=>500, 2696=>495, 2697=>528, 2698=>702, 2699=>885, 2709=>501, 2710=>612,
+ 2711=>619, 2712=>569, 2713=>532, 2714=>358, 2715=>620, 2716=>606, 2717=>602, 2718=>631, 2719=>495, 2720=>528, 2721=>531, 2722=>511, 2723=>614, 2724=>294, 2725=>344, 2726=>425,
+ 2727=>345, 2728=>611, 2730=>512, 2731=>578, 2732=>428, 2733=>423, 2734=>231, 2735=>582, 2736=>344, 2738=>558, 2739=>670, 2741=>537, 2742=>592, 2743=>568, 2744=>600, 2745=>544,
+ 2749=>531, 2750=>232, 2751=>232, 2752=>232, 2753=>33, 2754=>33, 2755=>33, 2759=>33, 2760=>33, 2763=>232, 2764=>232, 2768=>903, 2790=>479, 2791=>416, 2792=>465, 2793=>469,
+ 2794=>498, 2795=>463, 2796=>451, 2797=>510, 2798=>455, 2799=>488, 2818=>131, 2819=>302, 2821=>560, 2822=>644, 2823=>632, 2825=>630, 2827=>553, 2831=>604, 2835=>520, 2837=>572,
+ 2838=>570, 2839=>580, 2840=>565, 2842=>580, 2844=>564, 2845=>575, 2847=>565, 2848=>565, 2849=>524, 2858=>572, 2859=>700, 2863=>655, 2864=>620, 2866=>652, 2867=>560, 2870=>565,
+ 2871=>565, 2872=>545, 2873=>524, 2878=>128, 2879=>1, 2880=>190, 2881=>1, 2882=>1, 2883=>1, 2887=>396, 2912=>563, 2918=>508, 2919=>424, 2920=>440, 2921=>600, 2922=>600,
+ 2923=>600, 2924=>600, 2925=>600, 2926=>511, 2927=>483, 2946=>479, 2947=>893, 2949=>1018, 2950=>1170, 2951=>916, 2952=>676, 2953=>836, 2954=>1225, 2958=>744, 2959=>744, 2960=>848,
+ 2962=>813, 2963=>813, 2964=>813, 2965=>688, 2969=>744, 2970=>676, 2972=>848, 2974=>984, 2975=>777, 2979=>1338, 2980=>664, 2984=>561, 2985=>1029, 2986=>607, 2990=>697, 2991=>697,
+ 2992=>434, 2993=>617, 2994=>869, 2995=>859, 2996=>697, 2997=>869, 2999=>1145, 3000=>1064, 3001=>1316, 3006=>424, 3007=>125, 3008=>596, 3009=>539, 3014=>596, 3015=>650, 3016=>973,
+ 3018=>1286, 3019=>1286, 3020=>1706, 3021=>333, 3031=>859, 3034=>778, 3035=>881, 3036=>876, 3037=>648, 3041=>744, 3203=>342, 3205=>620, 3206=>591, 3207=>600, 3208=>776, 3209=>1138,
+ 3210=>1464, 3214=>574, 3215=>570, 3216=>580, 3218=>589, 3219=>597, 3220=>625, 3221=>256, 3222=>565, 3223=>326, 3224=>604, 3225=>651, 3226=>408, 3228=>611, 3230=>843, 3231=>610,
+ 3232=>258, 3233=>317, 3234=>328, 3235=>803, 3236=>317, 3237=>328, 3238=>352, 3239=>352, 3240=>317, 3248=>248, 3249=>621, 3250=>620, 3251=>620, 3302=>649, 3303=>550, 3304=>573,
+ 3305=>567, 3306=>562, 3307=>557, 3308=>562, 3309=>567, 3310=>557, 3311=>557, 3458=>468, 3459=>318, 3461=>660, 3465=>778, 3466=>807, 3467=>830, 3473=>838, 3476=>860, 3481=>1000,
+ 3482=>973, 3483=>860, 3484=>997, 3486=>740, 3488=>838, 3489=>886, 3490=>886, 3492=>1295, 3493=>1295, 3495=>838, 3496=>860, 3497=>860, 3498=>860, 3499=>1403, 3501=>973, 3502=>838,
+ 3503=>660, 3504=>860, 3505=>973, 3507=>660, 3508=>886, 3509=>838, 3510=>860, 3511=>973, 3512=>838, 3513=>860, 3514=>886, 3515=>807, 3517=>830, 3520=>838, 3521=>973, 3522=>886,
+ 3523=>886, 3524=>973, 3525=>830, 3526=>973, 3530=>0, 3535=>432, 3536=>380, 3537=>420, 3538=>0, 3539=>0, 3540=>0, 3542=>0, 3544=>501, 3545=>652, 3551=>648, 7936=>596,
+ 7937=>596, 7938=>596, 7939=>596, 7940=>596, 7941=>596, 7942=>596, 7943=>596, 7944=>684, 7945=>684, 7946=>684, 7947=>684, 7948=>684, 7949=>684, 7950=>684, 7951=>684, 7952=>510,
+ 7953=>510, 7954=>510, 7955=>510, 7956=>510, 7957=>510, 7960=>650, 7961=>650, 7962=>650, 7963=>650, 7964=>650, 7965=>650, 7968=>526, 7969=>526, 7970=>526, 7971=>526, 7972=>526,
+ 7973=>526, 7974=>526, 7975=>526, 7976=>683, 7977=>683, 7978=>683, 7979=>683, 7980=>683, 7981=>683, 7982=>683, 7983=>683, 7984=>286, 7985=>286, 7986=>286, 7987=>286, 7988=>286,
+ 7989=>286, 7990=>286, 7991=>286, 7992=>236, 7993=>236, 7994=>236, 7995=>236, 7996=>236, 7997=>236, 7998=>236, 7999=>236, 8000=>550, 8001=>550, 8002=>550, 8003=>550, 8004=>550,
+ 8005=>550, 8008=>750, 8009=>750, 8010=>750, 8011=>750, 8012=>750, 8013=>750, 8016=>515, 8017=>515, 8018=>515, 8019=>515, 8020=>515, 8021=>515, 8022=>515, 8023=>515, 8025=>684,
+ 8027=>684, 8029=>684, 8031=>684, 8032=>740, 8033=>740, 8034=>740, 8035=>740, 8036=>740, 8037=>740, 8038=>740, 8039=>740, 8040=>720, 8041=>720, 8042=>720, 8043=>720, 8044=>720,
+ 8045=>720, 8046=>720, 8047=>720, 8048=>596, 8049=>596, 8050=>510, 8051=>510, 8052=>526, 8053=>526, 8054=>286, 8055=>286, 8056=>550, 8057=>550, 8058=>515, 8059=>515, 8060=>740,
+ 8061=>740, 8064=>596, 8065=>596, 8066=>596, 8067=>596, 8068=>596, 8069=>596, 8070=>596, 8071=>596, 8072=>882, 8073=>882, 8074=>882, 8075=>882, 8076=>882, 8077=>882, 8078=>882,
+ 8079=>882, 8080=>526, 8081=>526, 8082=>526, 8083=>526, 8084=>526, 8085=>526, 8086=>526, 8087=>526, 8088=>857, 8089=>857, 8090=>857, 8091=>857, 8092=>857, 8093=>857, 8094=>857,
+ 8095=>857, 8096=>740, 8097=>740, 8098=>740, 8099=>740, 8100=>740, 8101=>740, 8102=>740, 8103=>740, 8104=>945, 8105=>945, 8106=>945, 8107=>945, 8108=>945, 8109=>945, 8110=>945,
+ 8111=>945, 8112=>596, 8113=>596, 8114=>596, 8115=>596, 8116=>596, 8118=>596, 8119=>596, 8120=>684, 8121=>684, 8122=>684, 8123=>684, 8124=>882, 8125=>278, 8126=>201, 8127=>333,
+ 8128=>278, 8129=>333, 8130=>526, 8131=>526, 8132=>536, 8134=>526, 8135=>526, 8136=>650, 8137=>650, 8138=>683, 8139=>683, 8140=>857, 8141=>582, 8142=>582, 8143=>333, 8144=>286,
+ 8145=>286, 8146=>286, 8147=>286, 8150=>286, 8151=>312, 8152=>236, 8153=>236, 8154=>236, 8155=>236, 8157=>582, 8158=>582, 8159=>333, 8160=>515, 8161=>515, 8162=>515, 8163=>515,
+ 8164=>566, 8165=>566, 8166=>515, 8167=>515, 8168=>684, 8169=>684, 8170=>684, 8171=>684, 8172=>638, 8173=>333, 8174=>393, 8175=>333, 8178=>740, 8179=>740, 8180=>740, 8182=>740,
+ 8183=>740, 8184=>750, 8185=>750, 8186=>720, 8187=>720, 8188=>939, 8189=>333, 8190=>333, 8208=>333, 8219=>221, 8223=>333, 8227=>350, 8241=>1360, 8242=>278, 8243=>469, 8244=>680,
+ 8245=>278, 8246=>469, 8247=>680, 8251=>622, 8252=>556, 8253=>556, 8260=>167, 8263=>1112, 8264=>834, 8265=>834, 8267=>537, 8304=>351, 8305=>351, 8308=>351, 8309=>351, 8310=>351,
+ 8311=>351, 8312=>351, 8313=>351, 8320=>351, 8321=>351, 8322=>351, 8323=>351, 8324=>351, 8325=>353, 8326=>351, 8327=>351, 8328=>351, 8329=>351, 8359=>1445, 8360=>1222, 8362=>869,
+ 8459=>969, 8460=>615, 8464=>809, 8465=>519, 8466=>874, 8470=>1008, 8475=>850, 8476=>644, 8486=>720, 8487=>720, 8488=>512, 8490=>667, 8491=>667, 8492=>908, 8493=>623, 8496=>562,
+ 8497=>611, 8498=>611, 8499=>1080, 8531=>869, 8532=>869, 8533=>869, 8534=>869, 8535=>869, 8536=>869, 8537=>869, 8538=>869, 8539=>869, 8540=>869, 8541=>869, 8542=>869, 8543=>869,
+ 8544=>278, 8545=>556, 8546=>834, 8547=>945, 8548=>667, 8549=>945, 8550=>1223, 8551=>1501, 8552=>945, 8553=>667, 8554=>945, 8555=>1223, 8556=>556, 8557=>722, 8558=>722, 8559=>833,
+ 8560=>222, 8561=>444, 8562=>666, 8563=>722, 8564=>500, 8565=>722, 8566=>944, 8567=>1166, 8568=>722, 8569=>500, 8570=>722, 8571=>944, 8572=>222, 8573=>500, 8574=>556, 8575=>833,
+ 8592=>987, 8593=>603, 8594=>987, 8595=>603, 8596=>1042, 8597=>1042, 8629=>658, 8656=>987, 8657=>603, 8658=>987, 8659=>603, 8660=>1042, 8704=>667, 8706=>556, 8707=>667, 8709=>556,
+ 8710=>711, 8711=>711, 8712=>713, 8713=>713, 8719=>823, 8720=>823, 8721=>804, 8722=>584, 8723=>584, 8727=>500, 8730=>542, 8733=>713, 8734=>713, 8736=>768, 8743=>603, 8744=>603,
+ 8745=>768, 8746=>768, 8747=>556, 8748=>796, 8749=>956, 8750=>556, 8756=>863, 8764=>549, 8766=>584, 8769=>584, 8770=>584, 8771=>584, 8777=>636, 8800=>548, 8804=>584, 8805=>584,
+ 8853=>768, 8854=>768, 8855=>768, 8869=>658, 8960=>823, 9674=>489, 9834=>555, 12289=>1000, 12290=>1000, 12291=>1000, 12293=>1000, 12295=>1000, 12296=>1000, 12297=>1000, 12298=>1000, 12299=>1000,
+ 12300=>1000, 12301=>1000, 12302=>1000, 12303=>1000, 12304=>1000, 12305=>1000, 12308=>1000, 12309=>1000, 12353=>1000, 12354=>1000, 12355=>1000, 12356=>1000, 12357=>1000, 12358=>1000, 12359=>1000, 12360=>1000,
+ 12361=>1000, 12362=>1000, 12363=>1000, 12364=>1000, 12365=>1000, 12366=>1000, 12367=>1000, 12368=>1000, 12369=>1000, 12370=>1000, 12371=>1000, 12372=>1000, 12373=>1000, 12374=>1000, 12375=>1000, 12376=>1000,
+ 12377=>1000, 12378=>1000, 12379=>1000, 12380=>1000, 12381=>1000, 12382=>1000, 12383=>1000, 12384=>1000, 12385=>1000, 12386=>1000, 12387=>1000, 12388=>1000, 12389=>1000, 12390=>1000, 12391=>1000, 12392=>1000,
+ 12393=>1000, 12394=>1000, 12395=>1000, 12396=>1000, 12397=>1000, 12398=>1000, 12399=>1000, 12400=>1000, 12401=>1000, 12402=>1000, 12403=>1000, 12404=>1000, 12405=>1000, 12406=>1000, 12407=>1000, 12408=>1000,
+ 12409=>1000, 12410=>1000, 12411=>1000, 12412=>1000, 12413=>1000, 12414=>1000, 12415=>1000, 12416=>1000, 12417=>1000, 12418=>1000, 12419=>1000, 12420=>1000, 12421=>1000, 12422=>1000, 12423=>1000, 12424=>1000,
+ 12425=>1000, 12426=>1000, 12427=>1000, 12428=>1000, 12429=>1000, 12430=>1000, 12431=>1000, 12432=>1000, 12433=>1000, 12434=>1000, 12435=>1000, 12441=>1000, 12443=>1000, 12449=>1000, 12450=>1000, 12451=>1000,
+ 12452=>1000, 12453=>1000, 12454=>1000, 12455=>1000, 12456=>1000, 12457=>1000, 12458=>1000, 12459=>1000, 12460=>1000, 12461=>1000, 12462=>1000, 12463=>1000, 12464=>1000, 12465=>1000, 12466=>1000, 12467=>1000,
+ 12468=>1000, 12469=>1000, 12470=>1000, 12471=>1000, 12472=>1000, 12473=>1000, 12474=>1000, 12475=>1000, 12476=>1000, 12477=>1000, 12478=>1000, 12479=>1000, 12480=>1000, 12481=>1000, 12482=>1000, 12483=>1000,
+ 12484=>1000, 12485=>1000, 12486=>1000, 12487=>1000, 12488=>1000, 12489=>1000, 12490=>1000, 12491=>1000, 12492=>1000, 12493=>1000, 12494=>1000, 12495=>1000, 12496=>1000, 12497=>1000, 12498=>1000, 12499=>1000,
+ 12500=>1000, 12501=>1000, 12502=>1000, 12503=>1000, 12504=>1000, 12505=>1000, 12506=>1000, 12507=>1000, 12508=>1000, 12509=>1000, 12510=>1000, 12511=>1000, 12512=>1000, 12513=>1000, 12514=>1000, 12515=>1000,
+ 12516=>1000, 12517=>1000, 12518=>1000, 12519=>1000, 12520=>1000, 12521=>1000, 12522=>1000, 12523=>1000, 12524=>1000, 12525=>1000, 12526=>1000, 12527=>1000, 12528=>1000, 12529=>1000, 12530=>1000, 12531=>1000,
+ 12532=>1000, 12533=>1000, 12534=>1000, 12535=>1000, 12536=>1000, 12537=>1000, 12538=>1000, 12539=>278, 12540=>1000, 12541=>1000, 12542=>1000, 63033=>556, 63034=>556, 63035=>556, 63036=>556, 63037=>556,
+ 63038=>556, 63039=>556, 63040=>556, 63041=>556, 63166=>222, 63171=>333, 63196=>556, 64256=>556, 64257=>500, 64258=>500, 64259=>778, 64260=>778, 64261=>556, 64262=>778, 64285=>200, 64286=>305,
+ 64287=>400, 64288=>587, 64289=>890, 64290=>848, 64291=>872, 64292=>800, 64293=>850, 64294=>873, 64295=>797, 64296=>937, 64297=>584, 64298=>776, 64299=>776, 64300=>776, 64301=>776, 64302=>640,
+ 64303=>640, 64304=>640, 64305=>591, 64306=>466, 64307=>598, 64308=>622, 64309=>262, 64310=>351, 64312=>608, 64313=>270, 64314=>526, 64315=>550, 64316=>600, 64318=>621, 64320=>378, 64321=>607,
+ 64323=>575, 64324=>568, 64326=>590, 64327=>606, 64328=>547, 64329=>776, 64330=>687, 64331=>212, 64332=>591, 64333=>550, 64334=>568, 64335=>640, 65533=>788);
+$enc='';
+$diff='';
+$file='FreeSans.z';
+$ctg='FreeSans.ctg.z';
+$originalsize=264072;
+?>
diff --git a/lib/tcpdf/fonts/freesansb.php b/lib/tcpdf/fonts/freesansb.php
new file mode 100755
index 0000000000..e37b3ab8ff
--- /dev/null
+++ b/lib/tcpdf/fonts/freesansb.php
@@ -0,0 +1,79 @@
+1159,'Descent'=>-355,'CapHeight'=>1159,'Flags'=>32,'FontBBox'=>'[-459 -355 1300 1159]','ItalicAngle'=>0,'StemV'=>120,'MissingWidth'=>600);
+$up=-155;
+$ut=69;
+$cw=array(
+ 13=>333, 32=>278, 33=>333, 34=>474, 35=>556, 36=>556, 37=>889, 38=>722, 39=>238, 40=>333, 41=>333, 42=>389, 43=>584, 44=>278, 45=>333, 46=>278,
+ 47=>278, 48=>556, 49=>556, 50=>556, 51=>556, 52=>556, 53=>556, 54=>556, 55=>556, 56=>556, 57=>556, 58=>333, 59=>333, 60=>584, 61=>584, 62=>584,
+ 63=>611, 64=>975, 65=>722, 66=>722, 67=>722, 68=>722, 69=>667, 70=>611, 71=>778, 72=>722, 73=>278, 74=>556, 75=>722, 76=>611, 77=>833, 78=>722,
+ 79=>778, 80=>667, 81=>778, 82=>722, 83=>667, 84=>611, 85=>722, 86=>667, 87=>944, 88=>667, 89=>667, 90=>611, 91=>333, 92=>278, 93=>333, 94=>584,
+ 95=>556, 96=>333, 97=>556, 98=>611, 99=>556, 100=>611, 101=>556, 102=>333, 103=>611, 104=>611, 105=>278, 106=>278, 107=>556, 108=>278, 109=>889, 110=>611,
+ 111=>611, 112=>611, 113=>611, 114=>389, 115=>556, 116=>333, 117=>611, 118=>556, 119=>778, 120=>556, 121=>556, 122=>500, 123=>389, 124=>280, 125=>389, 126=>584,
+ 8364=>556, 1027=>611, 8218=>278, 402=>556, 8222=>500, 8230=>1000, 8224=>556, 8225=>556, 710=>333, 8240=>1000, 352=>667, 8249=>333, 338=>1000, 1036=>722, 381=>611, 1039=>722,
+ 8216=>278, 8217=>278, 8220=>500, 8221=>500, 8226=>350, 8211=>556, 8212=>1000, 732=>333, 8482=>1000, 353=>556, 8250=>333, 339=>944, 1116=>573, 382=>500, 376=>667, 161=>333,
+ 162=>556, 163=>556, 164=>556, 165=>556, 166=>280, 167=>556, 168=>333, 169=>737, 170=>370, 171=>556, 172=>584, 174=>737, 175=>333, 176=>606, 177=>584, 178=>351,
+ 179=>351, 180=>333, 181=>611, 182=>556, 183=>278, 184=>333, 185=>351, 186=>365, 187=>556, 188=>869, 189=>869, 190=>869, 191=>611, 192=>722, 193=>722, 194=>722,
+ 195=>722, 196=>722, 197=>722, 198=>1000, 199=>722, 200=>667, 201=>667, 202=>667, 203=>667, 204=>278, 205=>278, 206=>278, 207=>278, 208=>722, 209=>722, 210=>778,
+ 211=>778, 212=>778, 213=>778, 214=>778, 215=>584, 216=>778, 217=>722, 218=>722, 219=>722, 220=>722, 221=>667, 222=>667, 223=>611, 224=>556, 225=>556, 226=>556,
+ 227=>556, 228=>556, 229=>556, 230=>889, 231=>556, 232=>556, 233=>556, 234=>556, 235=>556, 236=>278, 237=>278, 238=>278, 239=>278, 240=>611, 241=>611, 242=>611,
+ 243=>611, 244=>611, 245=>611, 246=>611, 247=>584, 248=>611, 249=>611, 250=>611, 251=>611, 252=>611, 253=>556, 254=>611, 255=>556, 256=>722, 257=>556, 258=>722,
+ 259=>556, 260=>722, 261=>556, 262=>722, 263=>556, 264=>722, 265=>556, 266=>722, 267=>556, 268=>722, 269=>556, 270=>722, 271=>611, 272=>722, 273=>611, 274=>667,
+ 275=>556, 276=>667, 277=>556, 278=>667, 279=>556, 280=>667, 281=>556, 282=>667, 283=>556, 284=>778, 285=>611, 286=>778, 287=>611, 288=>778, 289=>611, 290=>778,
+ 291=>611, 292=>722, 293=>611, 294=>722, 295=>611, 296=>278, 297=>278, 298=>278, 299=>278, 300=>278, 301=>278, 302=>278, 303=>278, 304=>278, 305=>278, 306=>808,
+ 307=>492, 308=>556, 309=>278, 310=>722, 311=>556, 312=>573, 313=>611, 314=>278, 315=>611, 316=>278, 317=>611, 318=>278, 319=>611, 320=>556, 321=>611, 322=>278,
+ 323=>722, 324=>611, 325=>722, 326=>611, 327=>722, 328=>611, 329=>611, 330=>722, 331=>611, 332=>778, 333=>611, 334=>778, 335=>611, 336=>778, 337=>611, 340=>722,
+ 341=>389, 342=>722, 343=>389, 344=>722, 345=>389, 346=>667, 347=>556, 348=>667, 349=>556, 350=>667, 351=>556, 354=>611, 355=>333, 356=>611, 357=>333, 358=>611,
+ 359=>333, 360=>722, 361=>611, 362=>722, 363=>611, 364=>722, 365=>611, 366=>722, 367=>611, 368=>722, 369=>611, 370=>722, 371=>611, 372=>944, 373=>778, 374=>667,
+ 375=>556, 377=>611, 378=>500, 379=>611, 380=>500, 383=>333, 452=>1333, 453=>1222, 454=>1111, 455=>1167, 456=>889, 457=>556, 458=>1278, 459=>1000, 460=>889, 461=>722,
+ 462=>556, 463=>278, 464=>278, 465=>778, 466=>611, 467=>722, 468=>611, 469=>722, 470=>611, 471=>722, 472=>611, 473=>722, 474=>611, 475=>722, 476=>611, 478=>722,
+ 479=>556, 482=>1000, 483=>889, 486=>778, 487=>611, 488=>722, 489=>556, 490=>778, 491=>611, 492=>778, 493=>611, 497=>1333, 498=>1222, 499=>1111, 504=>722, 505=>611,
+ 506=>722, 507=>556, 508=>1000, 509=>889, 510=>778, 511=>611, 514=>722, 515=>556, 518=>667, 519=>556, 522=>278, 523=>278, 526=>778, 527=>611, 530=>722, 531=>389,
+ 534=>722, 535=>611, 536=>667, 537=>556, 538=>611, 539=>333, 711=>333, 728=>333, 729=>333, 730=>333, 731=>333, 733=>333, 884=>379, 885=>379, 890=>332, 894=>333,
+ 900=>325, 901=>658, 902=>761, 903=>474, 904=>706, 905=>733, 906=>285, 908=>785, 910=>823, 911=>819, 913=>722, 914=>722, 915=>642, 916=>726, 917=>667, 918=>611,
+ 919=>722, 920=>810, 921=>278, 922=>722, 923=>744, 924=>860, 925=>714, 926=>690, 927=>822, 928=>781, 929=>698, 931=>688, 932=>688, 933=>804, 934=>777, 935=>783,
+ 936=>805, 937=>780, 938=>278, 939=>804, 940=>660, 941=>559, 942=>560, 943=>356, 944=>575, 945=>656, 946=>576, 947=>591, 948=>620, 949=>570, 950=>522, 951=>586,
+ 952=>586, 953=>346, 954=>576, 955=>620, 956=>667, 957=>564, 958=>530, 959=>610, 960=>721, 961=>626, 962=>595, 963=>676, 964=>592, 965=>575, 966=>801, 967=>632,
+ 968=>722, 969=>800, 970=>346, 971=>575, 972=>599, 973=>567, 974=>1125, 1024=>667, 1025=>709, 1026=>790, 1028=>722, 1029=>667, 1030=>278, 1031=>278, 1032=>556, 1033=>1110,
+ 1034=>1113, 1035=>790, 1037=>726, 1038=>718, 1040=>722, 1041=>722, 1042=>722, 1043=>611, 1044=>900, 1045=>709, 1046=>1093, 1047=>672, 1048=>757, 1049=>757, 1050=>750, 1051=>729,
+ 1052=>874, 1053=>753, 1054=>778, 1055=>753, 1056=>671, 1057=>722, 1058=>611, 1059=>718, 1060=>892, 1061=>667, 1062=>816, 1063=>685, 1064=>1057, 1065=>1183, 1066=>928, 1067=>949,
+ 1068=>687, 1069=>722, 1070=>1109, 1071=>698, 1072=>556, 1073=>606, 1074=>572, 1075=>454, 1076=>685, 1077=>556, 1078=>809, 1079=>546, 1080=>615, 1081=>615, 1082=>573, 1083=>577,
+ 1084=>666, 1085=>603, 1086=>611, 1087=>603, 1088=>611, 1089=>556, 1090=>454, 1091=>556, 1092=>957, 1093=>556, 1094=>652, 1095=>578, 1096=>886, 1097=>968, 1098=>693, 1099=>811,
+ 1100=>562, 1101=>564, 1102=>908, 1103=>596, 1104=>556, 1105=>556, 1106=>606, 1107=>454, 1108=>556, 1109=>556, 1110=>278, 1111=>278, 1112=>278, 1113=>900, 1114=>611, 1115=>606,
+ 1117=>608, 1118=>556, 1119=>608, 1164=>687, 1165=>562, 1166=>667, 1167=>611, 1168=>611, 1169=>454, 1170=>611, 1171=>454, 1172=>611, 1173=>454, 1174=>1093, 1175=>809, 1176=>672,
+ 1177=>546, 1178=>722, 1179=>573, 1180=>722, 1181=>573, 1182=>722, 1183=>573, 1184=>722, 1185=>573, 1186=>722, 1187=>608, 1188=>722, 1189=>608, 1190=>722, 1191=>608, 1192=>722,
+ 1193=>556, 1194=>722, 1195=>556, 1196=>611, 1197=>454, 1198=>667, 1199=>556, 1200=>667, 1201=>556, 1202=>667, 1203=>556, 1204=>814, 1205=>685, 1206=>675, 1207=>580, 1208=>675,
+ 1209=>580, 1210=>675, 1211=>580, 1212=>722, 1213=>556, 1214=>722, 1215=>556, 1216=>278, 1217=>1093, 1218=>809, 1219=>722, 1220=>573, 1223=>722, 1224=>608, 1227=>675, 1228=>580,
+ 1232=>722, 1233=>556, 1234=>722, 1235=>556, 1236=>1000, 1237=>889, 1238=>709, 1239=>556, 1240=>722, 1241=>556, 1242=>722, 1243=>556, 1244=>1093, 1245=>809, 1246=>672, 1247=>546,
+ 1248=>672, 1249=>546, 1250=>757, 1251=>615, 1252=>757, 1253=>615, 1254=>778, 1255=>611, 1256=>778, 1257=>611, 1258=>778, 1259=>611, 1260=>722, 1261=>564, 1262=>718, 1263=>556,
+ 1264=>718, 1265=>556, 1266=>718, 1267=>556, 1268=>685, 1269=>578, 1272=>949, 1273=>811, 1456=>82, 1457=>347, 1458=>341, 1459=>341, 1460=>82, 1461=>211, 1462=>211, 1463=>200,
+ 1464=>200, 1465=>82, 1467=>341, 1468=>82, 1469=>82, 1470=>516, 1471=>200, 1472=>297, 1473=>1038, 1474=>1038, 1475=>333, 1476=>82, 1488=>714, 1489=>651, 1490=>557, 1491=>638,
+ 1492=>682, 1493=>297, 1494=>443, 1495=>682, 1496=>670, 1497=>284, 1498=>590, 1499=>595, 1500=>667, 1501=>683, 1502=>704, 1503=>297, 1504=>429, 1505=>670, 1506=>653, 1507=>661,
+ 1508=>660, 1509=>616, 1510=>671, 1511=>672, 1512=>600, 1513=>840, 1514=>756, 1520=>554, 1521=>550, 1522=>542, 1523=>238, 1524=>474, 1559=>556, 1560=>778, 1561=>944, 1562=>611,
+ 1563=>278, 1564=>889, 1569=>844, 1576=>923, 1578=>922, 1579=>922, 1581=>649, 1582=>704, 1587=>1221, 7936=>656, 7937=>656, 7938=>656, 7939=>656, 7940=>656, 7941=>656, 7942=>656,
+ 7943=>656, 7944=>722, 7945=>722, 7946=>722, 7947=>722, 7948=>722, 7949=>722, 7950=>722, 7951=>722, 7952=>570, 7953=>570, 7954=>570, 7955=>570, 7956=>570, 7957=>570, 7960=>667,
+ 7961=>667, 7962=>667, 7963=>667, 7964=>667, 7965=>667, 7968=>586, 7969=>586, 7970=>586, 7971=>586, 7972=>586, 7973=>586, 7974=>586, 7975=>586, 7976=>722, 7977=>722, 7978=>722,
+ 7979=>722, 7980=>722, 7981=>722, 7982=>722, 7983=>722, 7984=>346, 7985=>346, 7986=>346, 7987=>346, 7988=>346, 7989=>346, 7990=>346, 7991=>346, 7992=>278, 7993=>278, 7994=>278,
+ 7995=>278, 7996=>278, 7997=>278, 7998=>278, 7999=>278, 8000=>610, 8001=>610, 8002=>610, 8003=>610, 8004=>610, 8005=>610, 8008=>822, 8009=>822, 8010=>822, 8011=>822, 8012=>822,
+ 8013=>822, 8016=>575, 8017=>575, 8018=>575, 8019=>575, 8020=>575, 8021=>575, 8022=>575, 8023=>575, 8025=>804, 8027=>804, 8029=>804, 8031=>804, 8032=>800, 8033=>800, 8034=>800,
+ 8035=>800, 8036=>800, 8037=>800, 8038=>800, 8039=>800, 8040=>780, 8041=>780, 8042=>780, 8043=>780, 8044=>780, 8045=>780, 8046=>780, 8047=>780, 8048=>656, 8049=>656, 8050=>570,
+ 8051=>570, 8052=>586, 8053=>586, 8054=>346, 8055=>346, 8056=>610, 8057=>610, 8058=>575, 8059=>575, 8060=>800, 8061=>800, 8064=>656, 8065=>656, 8066=>656, 8067=>656, 8068=>656,
+ 8069=>656, 8070=>656, 8071=>656, 8072=>968, 8073=>968, 8074=>968, 8075=>968, 8076=>968, 8077=>968, 8078=>968, 8079=>968, 8080=>586, 8081=>586, 8082=>586, 8083=>586, 8084=>586,
+ 8085=>586, 8086=>586, 8087=>586, 8088=>968, 8089=>968, 8090=>968, 8091=>968, 8092=>968, 8093=>968, 8094=>968, 8095=>968, 8096=>800, 8097=>800, 8098=>800, 8099=>800, 8100=>800,
+ 8101=>800, 8102=>800, 8103=>800, 8104=>1026, 8105=>1026, 8106=>1026, 8107=>1026, 8108=>1026, 8109=>1026, 8110=>1026, 8111=>1026, 8112=>656, 8113=>656, 8114=>656, 8115=>656, 8116=>660,
+ 8118=>656, 8119=>656, 8120=>722, 8121=>722, 8122=>722, 8123=>722, 8124=>968, 8125=>278, 8126=>346, 8127=>278, 8128=>278, 8129=>333, 8130=>586, 8131=>586, 8132=>560, 8134=>586,
+ 8135=>586, 8136=>667, 8137=>667, 8138=>722, 8139=>722, 8140=>968, 8141=>492, 8142=>489, 8143=>394, 8144=>346, 8145=>346, 8146=>346, 8147=>346, 8150=>346, 8151=>346, 8152=>278,
+ 8153=>278, 8154=>278, 8155=>278, 8157=>481, 8158=>589, 8159=>333, 8160=>575, 8161=>575, 8162=>575, 8163=>575, 8164=>626, 8165=>626, 8166=>575, 8167=>575, 8168=>804, 8169=>804,
+ 8170=>804, 8171=>804, 8172=>698, 8173=>333, 8174=>333, 8175=>333, 8178=>800, 8179=>800, 8180=>1125, 8182=>800, 8183=>800, 8184=>822, 8185=>822, 8186=>780, 8187=>780, 8188=>1111,
+ 8189=>333, 8190=>278, 8260=>167, 8308=>351, 8321=>351, 8322=>351, 8323=>351, 8324=>351, 8362=>1049, 8543=>869, 8706=>490, 8710=>729, 8721=>711, 8722=>584, 8730=>542, 8800=>548,
+ 8804=>584, 8805=>584, 9674=>489, 63033=>556, 63034=>556, 63035=>556, 63036=>556, 63037=>556, 63038=>556, 63039=>556, 63040=>556, 63041=>556, 63171=>333, 63196=>556, 64257=>611, 64258=>611,
+ 64285=>284, 64286=>305, 64287=>542, 64288=>653, 64289=>964, 64290=>888, 64291=>932, 64292=>845, 64293=>917, 64294=>933, 64295=>850, 64296=>1006, 64297=>584, 64298=>840, 64299=>840, 64300=>840,
+ 64301=>840, 64302=>714, 64303=>714, 64304=>714, 64305=>651, 64306=>557, 64307=>638, 64308=>682, 64309=>367, 64310=>443, 64312=>670, 64313=>354, 64314=>590, 64315=>595, 64316=>667, 64318=>704,
+ 64320=>429, 64321=>670, 64323=>661, 64324=>660, 64326=>671, 64327=>672, 64328=>600, 64329=>840, 64330=>756, 64331=>297, 64332=>651, 64333=>595, 64334=>660, 64335=>714, 65182=>636);
+$enc='';
+$diff='';
+$file='FreeSansBold.z';
+$ctg='FreeSansBold.ctg.z';
+$originalsize=91432;
+?>
diff --git a/lib/tcpdf/fonts/freesansbi.php b/lib/tcpdf/fonts/freesansbi.php
new file mode 100755
index 0000000000..e966f38e2a
--- /dev/null
+++ b/lib/tcpdf/fonts/freesansbi.php
@@ -0,0 +1,76 @@
+979,'Descent'=>-309,'CapHeight'=>979,'Flags'=>96,'FontBBox'=>'[-379 -309 1283 979]','ItalicAngle'=>-12,'StemV'=>120,'MissingWidth'=>600);
+$up=-111;
+$ut=69;
+$cw=array(
+ 13=>333, 32=>278, 33=>333, 34=>474, 35=>556, 36=>556, 37=>889, 38=>722, 39=>238, 40=>333, 41=>333, 42=>389, 43=>584, 44=>278, 45=>333, 46=>278,
+ 47=>278, 48=>556, 49=>556, 50=>556, 51=>556, 52=>556, 53=>556, 54=>556, 55=>556, 56=>556, 57=>556, 58=>333, 59=>333, 60=>584, 61=>584, 62=>584,
+ 63=>611, 64=>975, 65=>722, 66=>722, 67=>722, 68=>722, 69=>667, 70=>611, 71=>778, 72=>722, 73=>278, 74=>556, 75=>722, 76=>611, 77=>833, 78=>722,
+ 79=>778, 80=>667, 81=>778, 82=>722, 83=>667, 84=>611, 85=>722, 86=>667, 87=>944, 88=>667, 89=>667, 90=>611, 91=>333, 92=>278, 93=>333, 94=>584,
+ 95=>556, 96=>333, 97=>556, 98=>611, 99=>556, 100=>611, 101=>556, 102=>333, 103=>611, 104=>611, 105=>278, 106=>278, 107=>556, 108=>278, 109=>889, 110=>611,
+ 111=>611, 112=>611, 113=>611, 114=>389, 115=>556, 116=>333, 117=>611, 118=>556, 119=>778, 120=>556, 121=>556, 122=>500, 123=>389, 124=>280, 125=>389, 126=>584,
+ 8364=>556, 1027=>611, 8218=>278, 402=>556, 8222=>500, 8230=>1000, 8224=>556, 8225=>556, 710=>333, 8240=>1000, 352=>667, 8249=>333, 338=>1000, 1036=>722, 381=>611, 1039=>722,
+ 8216=>278, 8217=>278, 8220=>500, 8221=>500, 8226=>350, 8211=>556, 8212=>1000, 732=>333, 8482=>1000, 353=>556, 8250=>333, 339=>944, 1116=>556, 382=>500, 376=>667, 161=>333,
+ 162=>556, 163=>556, 164=>556, 165=>556, 166=>280, 167=>556, 168=>333, 169=>737, 170=>370, 171=>556, 172=>584, 174=>737, 175=>333, 176=>606, 177=>584, 178=>444,
+ 179=>444, 180=>333, 181=>611, 182=>556, 183=>278, 184=>333, 185=>444, 186=>365, 187=>556, 188=>1055, 189=>1055, 190=>1055, 191=>611, 192=>722, 193=>722, 194=>722,
+ 195=>722, 196=>722, 197=>722, 198=>1000, 199=>722, 200=>667, 201=>667, 202=>667, 203=>667, 204=>278, 205=>278, 206=>278, 207=>278, 208=>722, 209=>722, 210=>778,
+ 211=>778, 212=>778, 213=>778, 214=>778, 215=>584, 216=>778, 217=>722, 218=>722, 219=>722, 220=>722, 221=>667, 222=>667, 223=>611, 224=>556, 225=>556, 226=>556,
+ 227=>556, 228=>556, 229=>556, 230=>889, 231=>556, 232=>556, 233=>556, 234=>556, 235=>556, 236=>278, 237=>278, 238=>278, 239=>278, 240=>611, 241=>611, 242=>611,
+ 243=>611, 244=>611, 245=>611, 246=>611, 247=>584, 248=>611, 249=>611, 250=>611, 251=>611, 252=>611, 253=>556, 254=>611, 255=>556, 256=>722, 257=>556, 258=>722,
+ 259=>556, 260=>722, 261=>556, 262=>722, 263=>556, 264=>722, 265=>556, 266=>722, 267=>556, 268=>722, 269=>556, 270=>722, 271=>722, 272=>722, 273=>611, 274=>667,
+ 275=>556, 276=>667, 277=>556, 278=>667, 279=>556, 280=>667, 281=>556, 282=>667, 283=>556, 284=>778, 285=>611, 286=>778, 287=>611, 288=>778, 289=>611, 290=>778,
+ 291=>611, 292=>722, 293=>611, 294=>722, 295=>611, 296=>278, 297=>278, 298=>278, 299=>278, 300=>278, 301=>278, 302=>278, 303=>268, 304=>278, 305=>278, 306=>278,
+ 307=>278, 308=>556, 309=>278, 310=>722, 311=>556, 312=>529, 313=>611, 314=>278, 315=>611, 316=>278, 317=>611, 318=>384, 319=>611, 320=>556, 321=>611, 322=>278,
+ 323=>722, 324=>611, 325=>722, 326=>611, 327=>722, 328=>611, 329=>611, 330=>722, 331=>611, 332=>778, 333=>611, 334=>778, 335=>611, 336=>778, 337=>611, 340=>722,
+ 341=>389, 342=>722, 343=>389, 344=>722, 345=>389, 346=>667, 347=>556, 348=>667, 349=>556, 350=>667, 351=>556, 354=>611, 355=>333, 356=>611, 357=>404, 358=>611,
+ 359=>333, 360=>722, 361=>611, 362=>722, 363=>611, 364=>722, 365=>611, 366=>722, 367=>611, 368=>722, 369=>611, 370=>722, 371=>611, 372=>944, 373=>778, 374=>667,
+ 375=>556, 377=>611, 378=>500, 379=>611, 380=>500, 383=>333, 536=>667, 537=>556, 538=>611, 539=>333, 711=>333, 728=>333, 729=>333, 730=>333, 731=>333, 733=>333,
+ 768=>0, 769=>0, 770=>0, 771=>0, 772=>0, 774=>0, 775=>0, 776=>0, 778=>0, 779=>0, 780=>0, 783=>0, 785=>0, 787=>0, 788=>0, 884=>208,
+ 885=>247, 890=>364, 894=>333, 900=>308, 901=>446, 902=>688, 903=>418, 904=>642, 905=>743, 906=>228, 908=>754, 910=>736, 911=>743, 912=>346, 913=>764, 914=>688,
+ 915=>642, 916=>744, 917=>710, 918=>688, 919=>743, 920=>810, 921=>296, 922=>744, 923=>744, 924=>860, 925=>714, 926=>690, 927=>822, 928=>781, 929=>698, 931=>688,
+ 932=>688, 933=>744, 934=>777, 935=>783, 936=>805, 937=>780, 938=>296, 939=>744, 940=>640, 941=>530, 942=>597, 943=>339, 944=>575, 945=>656, 946=>576, 947=>591,
+ 948=>620, 949=>570, 950=>522, 951=>586, 952=>586, 953=>346, 954=>576, 955=>620, 956=>667, 957=>564, 958=>530, 959=>610, 960=>721, 961=>626, 962=>595, 963=>676,
+ 964=>592, 965=>575, 966=>801, 967=>632, 968=>722, 969=>800, 970=>346, 971=>575, 972=>609, 973=>604, 974=>769, 1024=>666, 1025=>666, 1026=>790, 1028=>722, 1029=>667,
+ 1030=>278, 1031=>278, 1032=>556, 1033=>1110, 1034=>1088, 1035=>790, 1037=>722, 1038=>718, 1040=>722, 1041=>722, 1042=>723, 1043=>611, 1044=>918, 1045=>666, 1046=>1054, 1047=>659,
+ 1048=>722, 1049=>722, 1050=>720, 1051=>722, 1052=>843, 1053=>722, 1054=>778, 1055=>722, 1056=>649, 1057=>837, 1058=>611, 1059=>698, 1060=>902, 1061=>664, 1062=>730, 1063=>671,
+ 1064=>1101, 1065=>1179, 1066=>816, 1067=>939, 1068=>639, 1069=>737, 1070=>1080, 1071=>690, 1072=>554, 1073=>611, 1074=>621, 1075=>475, 1076=>804, 1077=>552, 1078=>775, 1079=>556,
+ 1080=>636, 1081=>636, 1082=>529, 1083=>608, 1084=>697, 1085=>636, 1086=>611, 1087=>636, 1088=>611, 1089=>554, 1090=>454, 1091=>552, 1092=>989, 1093=>554, 1094=>690, 1095=>606,
+ 1096=>934, 1097=>987, 1098=>741, 1099=>839, 1100=>619, 1101=>575, 1102=>908, 1103=>636, 1104=>552, 1105=>552, 1106=>606, 1107=>454, 1108=>556, 1109=>556, 1110=>278, 1111=>278,
+ 1112=>278, 1113=>900, 1114=>611, 1115=>606, 1117=>636, 1118=>556, 1119=>636, 1164=>639, 1165=>619, 1166=>649, 1167=>611, 1168=>611, 1169=>454, 1170=>611, 1171=>475, 1172=>611,
+ 1173=>475, 1174=>1054, 1175=>775, 1176=>659, 1177=>556, 1178=>720, 1179=>529, 1180=>720, 1181=>529, 1182=>720, 1183=>529, 1184=>720, 1185=>529, 1186=>722, 1187=>636, 1188=>722,
+ 1189=>636, 1190=>722, 1191=>636, 1192=>837, 1193=>554, 1194=>837, 1195=>554, 1196=>611, 1197=>454, 1198=>667, 1199=>556, 1200=>667, 1201=>556, 1202=>664, 1203=>554, 1204=>730,
+ 1205=>690, 1206=>671, 1207=>606, 1208=>671, 1209=>606, 1210=>671, 1211=>606, 1212=>837, 1213=>554, 1214=>837, 1215=>554, 1216=>278, 1217=>1054, 1218=>775, 1219=>720, 1220=>529,
+ 1223=>722, 1224=>636, 1227=>671, 1228=>606, 1232=>722, 1233=>554, 1234=>722, 1235=>554, 1236=>1000, 1237=>889, 1238=>666, 1239=>552, 1240=>837, 1241=>554, 1242=>837, 1243=>554,
+ 1244=>1054, 1245=>775, 1246=>659, 1247=>556, 1248=>659, 1249=>556, 1250=>722, 1251=>636, 1252=>722, 1253=>636, 1254=>778, 1255=>611, 1256=>778, 1257=>611, 1258=>778, 1259=>611,
+ 1260=>737, 1261=>575, 1262=>698, 1263=>552, 1264=>698, 1265=>552, 1266=>698, 1267=>552, 1268=>671, 1269=>606, 1272=>939, 1273=>839, 1456=>82, 1457=>347, 1458=>341, 1459=>341,
+ 1460=>82, 1461=>211, 1462=>211, 1463=>200, 1464=>200, 1465=>82, 1467=>341, 1468=>82, 1469=>82, 1470=>516, 1471=>200, 1472=>297, 1473=>1038, 1474=>1038, 1475=>333, 1476=>82,
+ 1488=>714, 1489=>651, 1490=>557, 1491=>638, 1492=>682, 1493=>297, 1494=>443, 1495=>682, 1496=>670, 1497=>284, 1498=>590, 1499=>595, 1500=>667, 1501=>683, 1502=>704, 1503=>297,
+ 1504=>429, 1505=>670, 1506=>653, 1507=>661, 1508=>660, 1509=>616, 1510=>671, 1511=>672, 1512=>600, 1513=>840, 1514=>756, 1520=>554, 1521=>550, 1522=>542, 1523=>238, 1524=>474,
+ 7936=>656, 7937=>656, 7938=>656, 7939=>656, 7940=>656, 7941=>656, 7942=>656, 7943=>656, 7944=>764, 7945=>764, 7946=>764, 7947=>764, 7948=>764, 7949=>764, 7950=>764, 7951=>764,
+ 7952=>570, 7953=>570, 7954=>570, 7955=>570, 7956=>570, 7957=>570, 7960=>710, 7961=>710, 7962=>710, 7963=>710, 7964=>710, 7965=>710, 7968=>586, 7969=>586, 7970=>586, 7971=>586,
+ 7972=>586, 7973=>586, 7974=>586, 7975=>586, 7976=>743, 7977=>743, 7978=>743, 7979=>743, 7980=>743, 7981=>743, 7982=>743, 7983=>743, 7984=>346, 7985=>346, 7986=>346, 7987=>346,
+ 7988=>346, 7989=>346, 7990=>346, 7991=>346, 7992=>296, 7993=>296, 7994=>296, 7995=>296, 7996=>296, 7997=>296, 7998=>296, 7999=>296, 8000=>610, 8001=>610, 8002=>610, 8003=>610,
+ 8004=>610, 8005=>610, 8008=>822, 8009=>822, 8010=>822, 8011=>822, 8012=>822, 8013=>822, 8016=>575, 8017=>575, 8018=>575, 8019=>575, 8020=>575, 8021=>575, 8022=>575, 8023=>575,
+ 8025=>744, 8027=>744, 8029=>744, 8031=>744, 8032=>800, 8033=>800, 8034=>800, 8035=>800, 8036=>800, 8037=>800, 8038=>800, 8039=>800, 8040=>780, 8041=>780, 8042=>780, 8043=>780,
+ 8044=>780, 8045=>780, 8046=>780, 8047=>780, 8048=>656, 8049=>656, 8050=>570, 8051=>570, 8052=>586, 8053=>586, 8054=>346, 8055=>346, 8056=>610, 8057=>610, 8058=>575, 8059=>575,
+ 8060=>800, 8061=>800, 8064=>656, 8065=>656, 8066=>656, 8067=>656, 8068=>656, 8069=>656, 8070=>656, 8071=>656, 8072=>1007, 8073=>1007, 8074=>1007, 8075=>1007, 8076=>1007, 8077=>1007,
+ 8078=>1007, 8079=>1007, 8080=>586, 8081=>586, 8082=>586, 8083=>586, 8084=>586, 8085=>586, 8086=>586, 8087=>586, 8088=>986, 8089=>986, 8090=>986, 8091=>986, 8092=>986, 8093=>986,
+ 8094=>986, 8095=>986, 8096=>800, 8097=>800, 8098=>800, 8099=>800, 8100=>800, 8101=>800, 8102=>800, 8103=>800, 8104=>1023, 8105=>1023, 8106=>1023, 8107=>1023, 8108=>1023, 8109=>1023,
+ 8110=>1023, 8111=>1023, 8112=>656, 8113=>656, 8114=>656, 8115=>656, 8116=>640, 8118=>656, 8119=>656, 8120=>764, 8121=>764, 8122=>764, 8123=>764, 8124=>1007, 8125=>278, 8126=>201,
+ 8127=>147, 8128=>278, 8129=>333, 8130=>586, 8131=>586, 8132=>597, 8134=>586, 8135=>586, 8136=>710, 8137=>710, 8138=>743, 8139=>743, 8140=>986, 8141=>402, 8142=>403, 8143=>147,
+ 8144=>346, 8145=>346, 8146=>346, 8147=>346, 8150=>346, 8151=>346, 8152=>296, 8153=>296, 8154=>296, 8155=>296, 8157=>434, 8158=>433, 8159=>333, 8160=>575, 8161=>575, 8162=>575,
+ 8163=>575, 8164=>626, 8165=>626, 8166=>575, 8167=>575, 8168=>744, 8169=>744, 8173=>333, 8174=>351, 8175=>303, 8182=>800, 8183=>800, 8184=>822, 8185=>822, 8186=>780, 8187=>780,
+ 8188=>1023, 8189=>333, 8190=>159, 8260=>167, 8263=>1222, 8264=>944, 8265=>944, 8362=>1049, 8706=>490, 8710=>729, 8721=>711, 8722=>584, 8730=>542, 8800=>584, 8804=>584, 8805=>584,
+ 9674=>489, 63033=>556, 63034=>556, 63035=>556, 63036=>556, 63037=>556, 63038=>556, 63039=>556, 63040=>556, 63041=>556, 63166=>278, 63171=>333, 63196=>556, 64256=>666, 64257=>611, 64258=>611,
+ 64259=>944, 64260=>944, 64261=>666, 64262=>889, 64285=>284, 64286=>305, 64287=>542, 64288=>653, 64289=>964, 64290=>888, 64291=>932, 64292=>845, 64293=>917, 64294=>933, 64295=>850, 64296=>1006,
+ 64297=>584, 64298=>840, 64299=>840, 64300=>840, 64301=>840, 64302=>714, 64303=>714, 64304=>714, 64305=>651, 64306=>557, 64307=>638, 64308=>682, 64309=>367, 64310=>443, 64312=>670, 64313=>354,
+ 64314=>590, 64315=>595, 64316=>667, 64318=>704, 64320=>429, 64321=>670, 64323=>661, 64324=>660, 64326=>671, 64327=>672, 64328=>600, 64329=>840, 64330=>756, 64331=>297, 64332=>651, 64333=>595,
+ 64334=>660, 64335=>714);
+$enc='';
+$diff='';
+$file='FreeSansBoldOblique.z';
+$ctg='FreeSansBoldOblique.ctg.z';
+$originalsize=95508;
+?>
diff --git a/lib/tcpdf/fonts/freesansi.php b/lib/tcpdf/fonts/freesansi.php
new file mode 100755
index 0000000000..e91d8c55c8
--- /dev/null
+++ b/lib/tcpdf/fonts/freesansi.php
@@ -0,0 +1,85 @@
+1141,'Descent'=>-419,'CapHeight'=>1141,'Flags'=>96,'FontBBox'=>'[-313 -419 1129 1141]','ItalicAngle'=>-12,'StemV'=>70,'MissingWidth'=>600);
+$up=-151;
+$ut=50;
+$cw=array(
+ 13=>333, 32=>278, 33=>278, 34=>355, 35=>556, 36=>556, 37=>889, 38=>667, 39=>191, 40=>333, 41=>333, 42=>389, 43=>584, 44=>278, 45=>333, 46=>278,
+ 47=>278, 48=>556, 49=>556, 50=>556, 51=>556, 52=>556, 53=>556, 54=>556, 55=>556, 56=>556, 57=>556, 58=>278, 59=>278, 60=>584, 61=>584, 62=>584,
+ 63=>556, 64=>1015, 65=>667, 66=>667, 67=>722, 68=>722, 69=>667, 70=>611, 71=>778, 72=>722, 73=>278, 74=>500, 75=>667, 76=>556, 77=>833, 78=>722,
+ 79=>778, 80=>667, 81=>778, 82=>722, 83=>667, 84=>611, 85=>722, 86=>667, 87=>944, 88=>667, 89=>667, 90=>611, 91=>278, 92=>278, 93=>278, 94=>469,
+ 95=>556, 96=>333, 97=>556, 98=>556, 99=>500, 100=>556, 101=>556, 102=>278, 103=>556, 104=>556, 105=>222, 106=>222, 107=>500, 108=>222, 109=>833, 110=>556,
+ 111=>556, 112=>556, 113=>556, 114=>333, 115=>500, 116=>278, 117=>556, 118=>500, 119=>722, 120=>500, 121=>500, 122=>500, 123=>334, 124=>260, 125=>334, 126=>584,
+ 8364=>556, 1027=>611, 8218=>222, 402=>556, 8222=>333, 8230=>1000, 8224=>556, 8225=>556, 710=>333, 8240=>1000, 352=>667, 8249=>333, 338=>1000, 1036=>667, 381=>611, 1039=>722,
+ 8216=>222, 8217=>222, 8220=>333, 8221=>333, 8226=>350, 8211=>556, 8212=>1000, 732=>333, 8482=>1000, 353=>500, 8250=>333, 339=>944, 1116=>500, 382=>500, 376=>667, 161=>333,
+ 162=>556, 163=>556, 164=>556, 165=>556, 166=>260, 167=>556, 168=>333, 169=>737, 170=>370, 171=>556, 172=>584, 173=>333, 174=>737, 175=>333, 176=>606, 177=>584,
+ 178=>390, 179=>390, 180=>333, 181=>556, 182=>537, 183=>278, 184=>333, 185=>390, 186=>365, 187=>556, 188=>947, 189=>947, 190=>947, 191=>611, 192=>667, 193=>667,
+ 194=>667, 195=>667, 196=>667, 197=>667, 198=>1000, 199=>722, 200=>667, 201=>667, 202=>667, 203=>667, 204=>278, 205=>278, 206=>278, 207=>278, 208=>722, 209=>722,
+ 210=>778, 211=>778, 212=>778, 213=>778, 214=>778, 215=>584, 216=>778, 217=>722, 218=>722, 219=>722, 220=>722, 221=>667, 222=>667, 223=>611, 224=>556, 225=>556,
+ 226=>556, 227=>556, 228=>556, 229=>556, 230=>889, 231=>500, 232=>556, 233=>556, 234=>556, 235=>556, 236=>278, 237=>278, 238=>278, 239=>278, 240=>556, 241=>556,
+ 242=>556, 243=>556, 244=>556, 245=>556, 246=>556, 247=>584, 248=>611, 249=>556, 250=>556, 251=>556, 252=>556, 253=>500, 254=>556, 255=>500, 256=>667, 257=>556,
+ 258=>667, 259=>556, 260=>667, 261=>556, 262=>722, 263=>500, 264=>722, 265=>500, 266=>722, 267=>500, 268=>722, 269=>500, 270=>722, 271=>650, 272=>722, 273=>556,
+ 274=>667, 275=>556, 276=>667, 277=>556, 278=>667, 279=>556, 280=>667, 281=>556, 282=>667, 283=>556, 284=>778, 285=>556, 286=>778, 287=>556, 288=>778, 289=>556,
+ 290=>778, 291=>527, 292=>722, 293=>556, 294=>722, 295=>556, 296=>278, 297=>278, 298=>278, 299=>222, 300=>278, 301=>278, 302=>278, 303=>222, 304=>278, 305=>278,
+ 306=>742, 307=>362, 308=>500, 309=>222, 310=>667, 311=>500, 312=>510, 313=>556, 314=>222, 315=>556, 316=>222, 317=>556, 318=>307, 319=>556, 320=>500, 321=>556,
+ 322=>222, 323=>722, 324=>556, 325=>722, 326=>556, 327=>722, 328=>556, 329=>556, 330=>722, 331=>556, 332=>778, 333=>556, 334=>778, 335=>556, 336=>778, 337=>556,
+ 340=>722, 341=>333, 342=>722, 343=>333, 344=>722, 345=>333, 346=>667, 347=>500, 348=>667, 349=>500, 350=>667, 351=>500, 354=>611, 355=>278, 356=>611, 357=>319,
+ 358=>611, 359=>278, 360=>722, 361=>556, 362=>722, 363=>556, 364=>722, 365=>556, 366=>722, 367=>556, 368=>722, 369=>556, 370=>722, 371=>556, 372=>944, 373=>722,
+ 374=>667, 375=>500, 377=>611, 378=>500, 379=>611, 380=>500, 383=>278, 461=>667, 462=>556, 463=>278, 464=>278, 465=>778, 466=>556, 467=>722, 468=>556, 469=>722,
+ 470=>556, 471=>722, 472=>556, 473=>722, 474=>556, 475=>722, 476=>556, 478=>667, 479=>556, 482=>1000, 483=>889, 486=>778, 487=>556, 488=>667, 489=>500, 490=>778,
+ 491=>556, 492=>778, 493=>556, 496=>222, 500=>778, 501=>556, 504=>722, 505=>556, 506=>667, 507=>556, 508=>1000, 509=>889, 510=>778, 511=>611, 512=>667, 513=>556,
+ 514=>667, 515=>556, 516=>667, 517=>556, 518=>667, 519=>556, 520=>278, 521=>278, 522=>278, 523=>278, 524=>778, 525=>556, 526=>778, 527=>556, 528=>722, 529=>333,
+ 530=>722, 531=>333, 532=>722, 533=>556, 534=>722, 535=>556, 536=>667, 537=>500, 538=>611, 539=>278, 711=>333, 728=>333, 729=>333, 730=>333, 731=>333, 733=>333,
+ 768=>0, 769=>0, 770=>0, 771=>0, 772=>0, 774=>0, 775=>0, 776=>0, 778=>0, 779=>0, 783=>0, 785=>0, 787=>0, 788=>0, 884=>199, 885=>199,
+ 890=>332, 894=>278, 900=>291, 901=>624, 902=>659, 903=>358, 904=>657, 905=>678, 906=>183, 908=>729, 910=>699, 911=>747, 912=>286, 913=>684, 914=>628, 915=>582,
+ 916=>684, 917=>650, 918=>628, 919=>683, 920=>750, 921=>236, 922=>684, 923=>684, 924=>800, 925=>654, 926=>630, 927=>750, 928=>721, 929=>638, 931=>628, 932=>628,
+ 933=>684, 934=>717, 935=>723, 936=>745, 937=>720, 938=>236, 939=>684, 940=>593, 941=>519, 942=>595, 943=>271, 944=>515, 945=>596, 946=>516, 947=>531, 948=>560,
+ 949=>510, 950=>462, 951=>526, 952=>526, 953=>286, 954=>516, 955=>560, 956=>607, 957=>504, 958=>470, 959=>550, 960=>661, 961=>566, 962=>535, 963=>616, 964=>532,
+ 965=>515, 966=>741, 967=>572, 968=>662, 969=>740, 970=>286, 971=>515, 972=>535, 973=>503, 974=>725, 1024=>667, 1025=>667, 1026=>766, 1028=>722, 1029=>667, 1030=>278,
+ 1031=>278, 1032=>500, 1033=>968, 1034=>1173, 1035=>766, 1037=>731, 1038=>650, 1040=>667, 1041=>639, 1042=>667, 1043=>611, 1044=>816, 1045=>667, 1046=>897, 1047=>652, 1048=>731,
+ 1049=>731, 1050=>664, 1051=>646, 1052=>833, 1053=>722, 1054=>778, 1055=>722, 1056=>667, 1057=>722, 1058=>611, 1059=>530, 1060=>891, 1061=>667, 1062=>722, 1063=>642, 1064=>836,
+ 1065=>837, 1066=>866, 1067=>886, 1068=>698, 1069=>717, 1070=>1079, 1071=>691, 1072=>556, 1073=>556, 1074=>538, 1075=>430, 1076=>640, 1077=>556, 1078=>818, 1079=>495, 1080=>560,
+ 1081=>560, 1082=>510, 1083=>556, 1084=>621, 1085=>561, 1086=>556, 1087=>560, 1088=>556, 1089=>500, 1090=>400, 1091=>500, 1092=>916, 1093=>500, 1094=>560, 1095=>497, 1096=>695,
+ 1097=>695, 1098=>640, 1099=>734, 1100=>523, 1101=>534, 1102=>788, 1103=>564, 1104=>556, 1105=>556, 1106=>568, 1107=>430, 1108=>500, 1109=>500, 1110=>222, 1111=>278, 1112=>222,
+ 1113=>840, 1114=>850, 1115=>568, 1117=>560, 1118=>500, 1119=>560, 1164=>698, 1165=>523, 1166=>667, 1167=>556, 1168=>611, 1169=>430, 1170=>611, 1171=>430, 1172=>611, 1173=>430,
+ 1174=>897, 1175=>818, 1176=>652, 1177=>495, 1178=>664, 1179=>510, 1180=>664, 1181=>510, 1182=>664, 1183=>510, 1184=>664, 1185=>510, 1186=>722, 1187=>561, 1188=>722, 1189=>561,
+ 1190=>722, 1191=>560, 1192=>722, 1193=>495, 1194=>722, 1195=>495, 1196=>611, 1197=>400, 1198=>667, 1199=>500, 1200=>667, 1201=>500, 1202=>665, 1203=>496, 1204=>722, 1205=>560,
+ 1206=>642, 1207=>497, 1208=>642, 1209=>497, 1210=>642, 1211=>497, 1212=>722, 1213=>495, 1214=>722, 1215=>495, 1216=>278, 1217=>897, 1218=>818, 1219=>664, 1220=>510, 1223=>722,
+ 1224=>561, 1227=>642, 1228=>497, 1232=>667, 1233=>556, 1234=>667, 1235=>556, 1236=>1000, 1237=>889, 1238=>667, 1239=>556, 1240=>722, 1241=>495, 1242=>722, 1243=>495, 1244=>897,
+ 1245=>818, 1246=>652, 1247=>495, 1248=>652, 1249=>495, 1250=>731, 1251=>560, 1252=>731, 1253=>560, 1254=>778, 1255=>556, 1256=>780, 1257=>554, 1258=>780, 1259=>554, 1260=>717,
+ 1261=>534, 1262=>530, 1263=>500, 1264=>530, 1265=>500, 1266=>530, 1267=>500, 1268=>642, 1269=>497, 1272=>886, 1273=>734, 1329=>722, 1330=>705, 1331=>774, 1332=>754, 1333=>722,
+ 1334=>751, 1335=>485, 1336=>722, 1337=>782, 1338=>655, 1339=>699, 1340=>417, 1341=>853, 1342=>791, 1343=>711, 1344=>588, 1345=>663, 1346=>665, 1347=>665, 1348=>756, 1349=>623,
+ 1350=>773, 1351=>603, 1352=>722, 1353=>648, 1354=>722, 1355=>751, 1356=>750, 1357=>722, 1358=>748, 1359=>667, 1360=>699, 1361=>623, 1362=>417, 1363=>785, 1364=>638, 1365=>778,
+ 1366=>716, 1370=>222, 1371=>133, 1372=>325, 1373=>333, 1374=>344, 1377=>833, 1378=>556, 1379=>572, 1380=>581, 1381=>550, 1382=>588, 1383=>448, 1384=>556, 1385=>568, 1386=>582,
+ 1387=>545, 1388=>301, 1389=>799, 1390=>556, 1391=>554, 1392=>533, 1393=>548, 1394=>552, 1395=>552, 1396=>544, 1397=>222, 1398=>544, 1399=>456, 1400=>556, 1401=>390, 1402=>833,
+ 1403=>509, 1404=>547, 1405=>533, 1406=>610, 1407=>887, 1408=>556, 1409=>545, 1410=>352, 1411=>853, 1412=>588, 1413=>579, 1414=>690, 1415=>545, 1417=>278, 1418=>367, 1456=>70,
+ 1457=>335, 1458=>329, 1459=>329, 1460=>70, 1461=>200, 1462=>200, 1463=>188, 1464=>188, 1465=>70, 1467=>329, 1468=>70, 1469=>70, 1470=>488, 1471=>200, 1472=>212, 1473=>0,
+ 1474=>0, 1475=>278, 1476=>70, 1488=>640, 1489=>591, 1490=>466, 1491=>598, 1492=>622, 1493=>212, 1494=>351, 1495=>623, 1496=>608, 1497=>200, 1498=>526, 1499=>550, 1500=>600,
+ 1501=>623, 1502=>621, 1503=>212, 1504=>378, 1505=>607, 1506=>587, 1507=>575, 1508=>568, 1509=>540, 1510=>590, 1511=>606, 1512=>547, 1513=>776, 1514=>687, 1520=>424, 1521=>412,
+ 1522=>400, 1523=>184, 1524=>344, 7936=>596, 7937=>596, 7938=>596, 7939=>596, 7940=>596, 7941=>596, 7942=>596, 7943=>596, 7944=>684, 7945=>684, 7946=>684, 7947=>684, 7948=>684,
+ 7949=>684, 7950=>684, 7951=>684, 7952=>510, 7953=>510, 7954=>510, 7955=>510, 7956=>510, 7957=>510, 7960=>650, 7961=>650, 7962=>650, 7963=>650, 7964=>650, 7965=>650, 7968=>526,
+ 7969=>526, 7970=>526, 7971=>526, 7972=>526, 7973=>526, 7974=>526, 7975=>526, 7976=>683, 7977=>683, 7978=>683, 7979=>683, 7980=>683, 7981=>683, 7982=>683, 7983=>683, 7984=>286,
+ 7985=>286, 7986=>286, 7987=>286, 7988=>286, 7989=>286, 7990=>286, 7991=>286, 7992=>236, 7993=>236, 7994=>236, 7995=>236, 7996=>236, 7997=>236, 7998=>236, 7999=>236, 8000=>550,
+ 8001=>550, 8002=>550, 8003=>550, 8004=>550, 8005=>550, 8008=>750, 8009=>750, 8010=>750, 8011=>750, 8012=>750, 8013=>750, 8016=>515, 8017=>515, 8018=>515, 8019=>515, 8020=>515,
+ 8021=>515, 8022=>515, 8023=>515, 8025=>684, 8027=>684, 8029=>684, 8031=>684, 8032=>740, 8033=>740, 8034=>740, 8035=>740, 8036=>740, 8037=>740, 8038=>740, 8039=>740, 8040=>720,
+ 8041=>720, 8042=>720, 8043=>720, 8044=>720, 8045=>720, 8046=>720, 8047=>720, 8048=>596, 8049=>596, 8050=>510, 8051=>510, 8052=>526, 8053=>526, 8054=>286, 8055=>286, 8056=>550,
+ 8057=>550, 8058=>515, 8059=>515, 8060=>740, 8061=>740, 8064=>596, 8065=>596, 8066=>596, 8067=>596, 8068=>596, 8069=>596, 8070=>596, 8071=>596, 8072=>900, 8073=>900, 8074=>900,
+ 8075=>900, 8076=>900, 8077=>900, 8078=>900, 8079=>900, 8080=>526, 8081=>526, 8082=>526, 8083=>526, 8084=>526, 8085=>526, 8086=>526, 8087=>526, 8088=>899, 8089=>899, 8090=>899,
+ 8091=>899, 8092=>899, 8093=>899, 8094=>899, 8095=>899, 8096=>740, 8097=>740, 8098=>740, 8099=>740, 8100=>740, 8101=>740, 8102=>740, 8103=>740, 8104=>936, 8105=>936, 8106=>936,
+ 8107=>936, 8108=>936, 8109=>936, 8110=>936, 8111=>936, 8112=>596, 8113=>596, 8114=>596, 8115=>596, 8116=>593, 8118=>596, 8119=>596, 8120=>684, 8121=>684, 8122=>684, 8123=>684,
+ 8124=>900, 8125=>278, 8126=>201, 8127=>147, 8128=>278, 8129=>333, 8130=>526, 8131=>526, 8132=>595, 8134=>526, 8135=>526, 8136=>650, 8137=>650, 8138=>683, 8139=>683, 8140=>899,
+ 8141=>602, 8142=>601, 8143=>333, 8144=>286, 8145=>286, 8146=>286, 8147=>286, 8150=>286, 8151=>286, 8152=>236, 8153=>236, 8154=>236, 8155=>236, 8157=>434, 8158=>433, 8159=>333,
+ 8160=>515, 8161=>515, 8162=>515, 8163=>515, 8164=>566, 8165=>566, 8166=>515, 8167=>515, 8168=>684, 8169=>684, 8170=>684, 8171=>684, 8172=>638, 8173=>333, 8174=>624, 8175=>303,
+ 8178=>740, 8179=>740, 8180=>725, 8182=>740, 8183=>740, 8184=>750, 8185=>750, 8186=>720, 8187=>720, 8188=>936, 8189=>333, 8190=>159, 8260=>167, 8362=>869, 8706=>490, 8710=>712,
+ 8721=>711, 8722=>584, 8730=>542, 8800=>584, 8804=>584, 8805=>584, 9674=>489, 63033=>556, 63034=>556, 63035=>556, 63036=>556, 63037=>556, 63038=>556, 63039=>556, 63040=>556, 63041=>556,
+ 63166=>222, 63171=>333, 63196=>556, 64256=>556, 64257=>500, 64258=>500, 64259=>778, 64260=>778, 64261=>556, 64262=>778, 64285=>200, 64286=>305, 64287=>400, 64288=>587, 64289=>890, 64290=>848,
+ 64291=>872, 64292=>800, 64293=>850, 64294=>873, 64295=>797, 64296=>937, 64297=>584, 64298=>776, 64299=>776, 64300=>776, 64301=>776, 64302=>640, 64303=>640, 64304=>640, 64305=>591, 64306=>466,
+ 64307=>598, 64308=>622, 64309=>262, 64310=>351, 64312=>608, 64313=>270, 64314=>526, 64315=>550, 64316=>600, 64318=>621, 64320=>378, 64321=>607, 64323=>575, 64324=>568, 64326=>590, 64327=>606,
+ 64328=>547, 64329=>776, 64330=>687, 64331=>212, 64332=>591, 64333=>550, 64334=>568, 64335=>640);
+$enc='';
+$diff='';
+$file='FreeSansOblique.z';
+$ctg='FreeSansOblique.ctg.z';
+$originalsize=110740;
+?>
diff --git a/lib/tcpdf/fonts/freeserif.php b/lib/tcpdf/fonts/freeserif.php
new file mode 100755
index 0000000000..712f17c158
--- /dev/null
+++ b/lib/tcpdf/fonts/freeserif.php
@@ -0,0 +1,233 @@
+1166,'Descent'=>-446,'CapHeight'=>1166,'Flags'=>32,'FontBBox'=>'[-672 -446 1588 1166]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>600);
+$up=-100;
+$ut=50;
+$cw=array(
+ 13=>333, 32=>250, 33=>333, 34=>408, 35=>500, 36=>500, 37=>833, 38=>778, 39=>180, 40=>333, 41=>333, 42=>500, 43=>564, 44=>250, 45=>333, 46=>250,
+ 47=>278, 48=>500, 49=>500, 50=>500, 51=>500, 52=>500, 53=>500, 54=>500, 55=>500, 56=>500, 57=>500, 58=>278, 59=>278, 60=>564, 61=>564, 62=>564,
+ 63=>444, 64=>921, 65=>722, 66=>667, 67=>667, 68=>722, 69=>611, 70=>556, 71=>722, 72=>722, 73=>333, 74=>389, 75=>722, 76=>611, 77=>889, 78=>722,
+ 79=>722, 80=>556, 81=>722, 82=>667, 83=>556, 84=>611, 85=>722, 86=>722, 87=>944, 88=>722, 89=>722, 90=>611, 91=>333, 92=>278, 93=>333, 94=>469,
+ 95=>500, 96=>333, 97=>444, 98=>500, 99=>444, 100=>500, 101=>444, 102=>333, 103=>500, 104=>500, 105=>278, 106=>278, 107=>500, 108=>278, 109=>778, 110=>500,
+ 111=>500, 112=>500, 113=>500, 114=>333, 115=>389, 116=>278, 117=>500, 118=>500, 119=>722, 120=>500, 121=>500, 122=>444, 123=>480, 124=>200, 125=>480, 126=>541,
+ 8364=>500, 1027=>556, 8218=>333, 1107=>418, 8222=>444, 8230=>1000, 8224=>500, 8225=>500, 710=>333, 8240=>1000, 352=>556, 8249=>333, 338=>889, 1036=>722, 381=>611, 1039=>722,
+ 8216=>333, 8217=>333, 8220=>444, 8221=>444, 8226=>350, 8211=>500, 8212=>1000, 732=>333, 8482=>980, 353=>389, 8250=>333, 339=>722, 1116=>500, 382=>444, 376=>722, 161=>333,
+ 162=>500, 163=>500, 164=>500, 165=>500, 166=>200, 167=>500, 168=>333, 169=>760, 170=>276, 171=>500, 172=>564, 174=>760, 175=>333, 176=>400, 177=>564, 178=>300,
+ 179=>300, 180=>333, 181=>500, 182=>453, 183=>250, 184=>333, 185=>300, 186=>310, 187=>500, 188=>750, 189=>750, 190=>750, 191=>444, 192=>722, 193=>722, 194=>722,
+ 195=>722, 196=>722, 197=>722, 198=>889, 199=>667, 200=>611, 201=>611, 202=>611, 203=>611, 204=>333, 205=>333, 206=>333, 207=>333, 208=>722, 209=>722, 210=>722,
+ 211=>722, 212=>722, 213=>722, 214=>722, 215=>564, 216=>722, 217=>722, 218=>722, 219=>722, 220=>722, 221=>722, 222=>556, 223=>500, 224=>444, 225=>444, 226=>444,
+ 227=>444, 228=>444, 229=>444, 230=>667, 231=>444, 232=>444, 233=>444, 234=>444, 235=>444, 236=>278, 237=>278, 238=>278, 239=>278, 240=>500, 241=>500, 242=>500,
+ 243=>500, 244=>500, 245=>500, 246=>500, 247=>564, 248=>500, 249=>500, 250=>500, 251=>500, 252=>500, 253=>500, 254=>500, 255=>500, 256=>722, 257=>444, 258=>722,
+ 259=>444, 260=>722, 261=>444, 262=>667, 263=>444, 264=>667, 265=>444, 266=>667, 267=>444, 268=>667, 269=>444, 270=>722, 271=>600, 272=>722, 273=>500, 274=>611,
+ 275=>444, 276=>611, 277=>444, 278=>611, 279=>444, 280=>611, 281=>444, 282=>611, 283=>444, 284=>722, 285=>500, 286=>722, 287=>500, 288=>722, 289=>500, 290=>722,
+ 291=>500, 292=>722, 293=>500, 294=>722, 295=>548, 296=>333, 297=>278, 298=>333, 299=>278, 300=>333, 301=>278, 302=>333, 303=>278, 304=>333, 305=>278, 306=>728,
+ 307=>480, 308=>389, 309=>278, 310=>722, 311=>500, 312=>500, 313=>611, 314=>278, 315=>611, 316=>278, 317=>611, 318=>348, 319=>832, 320=>444, 321=>611, 322=>278,
+ 323=>722, 324=>500, 325=>722, 326=>500, 327=>722, 328=>500, 329=>556, 330=>722, 331=>500, 332=>722, 333=>500, 334=>722, 335=>500, 336=>722, 337=>500, 340=>667,
+ 341=>333, 342=>667, 343=>333, 344=>667, 345=>333, 346=>556, 347=>389, 348=>556, 349=>389, 350=>556, 351=>389, 354=>611, 355=>278, 356=>611, 357=>278, 358=>611,
+ 359=>278, 360=>722, 361=>500, 362=>722, 363=>500, 364=>722, 365=>500, 366=>722, 367=>500, 368=>722, 369=>500, 370=>722, 371=>500, 372=>944, 373=>722, 374=>722,
+ 375=>500, 377=>611, 378=>444, 379=>611, 380=>444, 383=>333, 439=>1000, 450=>600, 452=>1333, 453=>1166, 454=>944, 455=>1000, 456=>889, 457=>556, 458=>1120, 459=>990,
+ 460=>778, 461=>722, 462=>444, 463=>333, 464=>278, 465=>722, 466=>500, 467=>722, 468=>500, 469=>722, 470=>500, 471=>722, 472=>500, 473=>722, 474=>500, 475=>722,
+ 476=>500, 477=>444, 478=>722, 479=>444, 480=>722, 481=>444, 482=>889, 483=>667, 484=>722, 485=>500, 486=>722, 487=>500, 488=>722, 489=>500, 490=>722, 491=>500,
+ 492=>722, 493=>500, 494=>615, 495=>456, 496=>278, 497=>1333, 498=>1166, 499=>944, 500=>722, 501=>500, 504=>722, 505=>500, 506=>722, 507=>444, 508=>889, 509=>667,
+ 510=>722, 511=>500, 512=>722, 513=>444, 514=>722, 515=>444, 516=>611, 517=>444, 518=>611, 519=>444, 520=>333, 521=>278, 522=>333, 523=>278, 524=>722, 525=>500,
+ 526=>722, 527=>500, 528=>667, 529=>333, 530=>667, 531=>333, 532=>722, 533=>500, 534=>722, 535=>500, 536=>556, 537=>389, 538=>611, 539=>278, 542=>722, 543=>500,
+ 550=>722, 551=>444, 552=>611, 553=>444, 554=>722, 555=>500, 556=>722, 557=>500, 558=>722, 559=>500, 560=>722, 561=>500, 562=>722, 563=>500, 601=>1000, 658=>1000,
+ 699=>333, 700=>500, 701=>500, 702=>333, 703=>333, 711=>333, 713=>333, 714=>333, 715=>333, 718=>333, 719=>333, 724=>333, 725=>333, 726=>333, 727=>333, 728=>333,
+ 729=>333, 730=>333, 731=>333, 733=>333, 768=>0, 769=>0, 770=>0, 771=>0, 772=>0, 773=>0, 774=>0, 775=>0, 776=>0, 777=>0, 778=>0, 779=>0,
+ 780=>0, 781=>0, 782=>0, 783=>0, 784=>0, 785=>0, 786=>0, 787=>0, 788=>0, 789=>0, 790=>0, 791=>0, 792=>0, 793=>0, 794=>0, 795=>0,
+ 796=>0, 797=>0, 798=>0, 799=>0, 800=>0, 801=>0, 802=>0, 803=>0, 804=>0, 805=>0, 806=>0, 807=>0, 808=>0, 809=>0, 810=>0, 811=>0,
+ 812=>0, 813=>0, 814=>0, 815=>0, 816=>0, 817=>0, 818=>0, 819=>0, 820=>0, 821=>0, 822=>0, 823=>0, 824=>0, 825=>0, 826=>0, 827=>0,
+ 828=>0, 829=>0, 830=>0, 831=>0, 832=>0, 833=>0, 834=>0, 835=>0, 836=>0, 837=>0, 864=>0, 865=>0, 884=>199, 885=>199, 890=>332, 894=>278,
+ 900=>186, 901=>332, 902=>722, 903=>250, 904=>611, 905=>722, 906=>333, 908=>722, 910=>696, 911=>757, 912=>267, 913=>722, 914=>667, 915=>586, 916=>660, 917=>611,
+ 918=>611, 919=>722, 920=>726, 921=>333, 922=>722, 923=>722, 924=>889, 925=>722, 926=>628, 927=>722, 928=>722, 929=>556, 931=>627, 932=>611, 933=>696, 934=>742,
+ 935=>722, 936=>863, 937=>757, 938=>333, 939=>656, 940=>587, 941=>426, 942=>534, 943=>267, 944=>534, 945=>587, 946=>534, 947=>480, 948=>534, 949=>426, 950=>480,
+ 951=>534, 952=>534, 953=>267, 954=>527, 955=>480, 956=>534, 957=>480, 958=>480, 959=>534, 960=>587, 961=>534, 962=>439, 963=>534, 964=>426, 965=>534, 966=>640,
+ 967=>480, 968=>693, 969=>693, 970=>267, 971=>534, 972=>534, 973=>534, 974=>693, 976=>534, 977=>534, 978=>696, 979=>696, 980=>696, 981=>640, 982=>587, 986=>510,
+ 987=>426, 988=>611, 989=>470, 990=>613, 991=>613, 992=>627, 993=>526, 1024=>611, 1025=>667, 1026=>768, 1028=>667, 1029=>556, 1030=>333, 1031=>333, 1032=>389, 1033=>969,
+ 1034=>980, 1035=>698, 1037=>722, 1038=>746, 1040=>771, 1041=>646, 1042=>667, 1043=>626, 1044=>747, 1045=>667, 1046=>997, 1047=>532, 1048=>824, 1049=>715, 1050=>750, 1051=>750,
+ 1052=>990, 1053=>823, 1054=>771, 1055=>818, 1056=>604, 1057=>719, 1058=>667, 1059=>731, 1060=>869, 1061=>771, 1062=>823, 1063=>747, 1064=>1122, 1065=>1122, 1066=>757, 1067=>981,
+ 1068=>646, 1069=>698, 1070=>1104, 1071=>749, 1072=>500, 1073=>552, 1074=>500, 1075=>443, 1076=>531, 1077=>438, 1078=>716, 1079=>417, 1080=>527, 1081=>527, 1082=>525, 1083=>530,
+ 1084=>666, 1085=>565, 1086=>552, 1087=>565, 1088=>552, 1089=>438, 1090=>476, 1091=>500, 1092=>667, 1093=>500, 1094=>497, 1095=>531, 1096=>810, 1097=>810, 1098=>556, 1099=>719,
+ 1100=>491, 1101=>445, 1102=>783, 1103=>487, 1104=>444, 1105=>438, 1106=>548, 1108=>444, 1109=>389, 1110=>278, 1111=>278, 1112=>278, 1113=>714, 1114=>706, 1115=>548, 1117=>500,
+ 1118=>500, 1119=>500, 1120=>1056, 1121=>693, 1122=>654, 1123=>567, 1124=>969, 1125=>686, 1126=>730, 1127=>502, 1128=>1059, 1129=>765, 1130=>997, 1131=>716, 1132=>1295, 1133=>963,
+ 1134=>532, 1135=>473, 1136=>863, 1137=>693, 1138=>726, 1139=>500, 1140=>801, 1141=>480, 1142=>801, 1143=>480, 1144=>1356, 1145=>969, 1146=>771, 1147=>500, 1148=>1056, 1149=>693,
+ 1150=>1056, 1151=>693, 1152=>754, 1153=>497, 1154=>424, 1155=>369, 1156=>689, 1157=>445, 1158=>445, 1160=>1080, 1161=>1076, 1162=>824, 1163=>565, 1164=>556, 1165=>504, 1166=>556,
+ 1167=>500, 1168=>556, 1169=>418, 1170=>556, 1171=>418, 1172=>573, 1173=>468, 1174=>1053, 1175=>766, 1176=>556, 1177=>389, 1178=>722, 1179=>500, 1180=>722, 1181=>500, 1182=>722,
+ 1183=>500, 1184=>852, 1185=>671, 1186=>722, 1187=>500, 1188=>984, 1189=>660, 1190=>1014, 1191=>714, 1192=>722, 1193=>542, 1194=>667, 1195=>444, 1196=>611, 1197=>484, 1198=>722,
+ 1199=>500, 1200=>722, 1201=>500, 1202=>722, 1203=>500, 1204=>967, 1205=>723, 1206=>722, 1207=>500, 1208=>722, 1209=>500, 1210=>722, 1211=>500, 1212=>866, 1213=>561, 1214=>866,
+ 1215=>561, 1216=>333, 1217=>1053, 1218=>766, 1219=>722, 1220=>500, 1221=>750, 1222=>530, 1223=>722, 1224=>500, 1225=>823, 1226=>565, 1227=>722, 1228=>500, 1229=>990, 1230=>666,
+ 1231=>500, 1232=>722, 1233=>444, 1234=>722, 1235=>444, 1236=>889, 1237=>667, 1238=>611, 1239=>444, 1240=>722, 1241=>444, 1242=>716, 1243=>444, 1244=>1053, 1245=>766, 1246=>556,
+ 1247=>389, 1248=>556, 1249=>389, 1250=>722, 1251=>500, 1252=>722, 1253=>500, 1254=>722, 1255=>500, 1256=>722, 1257=>500, 1258=>722, 1259=>500, 1260=>667, 1261=>444, 1262=>746,
+ 1263=>500, 1264=>746, 1265=>500, 1266=>746, 1267=>500, 1268=>722, 1269=>500, 1272=>940, 1273=>710, 1280=>556, 1281=>500, 1282=>900, 1283=>819, 1284=>605, 1285=>515, 1286=>841,
+ 1287=>566, 1288=>974, 1289=>530, 1290=>1035, 1291=>565, 1292=>722, 1293=>444, 1294=>611, 1295=>476, 1457=>0, 1458=>0, 1460=>0, 1461=>0, 1462=>0, 1463=>0, 1464=>0,
+ 1465=>0, 1467=>0, 1468=>0, 1472=>126, 1475=>418, 1488=>537, 1489=>537, 1490=>350, 1491=>537, 1492=>537, 1493=>350, 1494=>350, 1495=>537, 1496=>537, 1497=>350, 1498=>537,
+ 1499=>537, 1500=>537, 1501=>537, 1502=>537, 1503=>350, 1504=>350, 1505=>537, 1506=>537, 1507=>537, 1508=>537, 1509=>537, 1510=>537, 1511=>537, 1512=>537, 1513=>537, 1514=>537,
+ 1520=>537, 1521=>537, 1522=>537, 1523=>396, 1524=>396, 1548=>226, 1563=>250, 1567=>473, 1569=>350, 1570=>321, 1571=>249, 1572=>399, 1573=>249, 1574=>776, 1575=>249, 1576=>950,
+ 1577=>424, 1578=>925, 1579=>924, 1580=>750, 1581=>748, 1582=>701, 1583=>397, 1584=>399, 1585=>328, 1586=>331, 1587=>951, 1588=>949, 1589=>949, 1590=>949, 1591=>557, 1592=>550,
+ 1593=>625, 1594=>602, 1601=>801, 1602=>696, 1603=>757, 1604=>655, 1605=>549, 1606=>651, 1607=>424, 1608=>399, 1609=>776, 1610=>776, 1611=>300, 1613=>300, 1614=>300, 1615=>300,
+ 1616=>300, 1617=>300, 1632=>297, 1633=>254, 1634=>427, 1635=>497, 1636=>440, 1637=>465, 1638=>466, 1639=>421, 1640=>459, 1641=>424, 1643=>212, 1652=>300, 1662=>926, 1670=>750,
+ 1688=>338, 1711=>874, 1740=>776, 1748=>176, 1920=>395, 1921=>440, 1922=>511, 1923=>478, 1924=>424, 1925=>380, 1926=>394, 1927=>406, 1928=>416, 1929=>414, 1930=>412, 1931=>472,
+ 1932=>439, 1933=>452, 1934=>414, 1935=>503, 1936=>773, 1937=>387, 1938=>419, 1939=>522, 1940=>412, 1941=>394, 1942=>388, 1943=>456, 1944=>504, 1945=>404, 1946=>393, 1947=>436,
+ 1948=>475, 1949=>779, 1950=>775, 1951=>846, 1952=>490, 1953=>444, 1954=>414, 1955=>487, 1956=>404, 1957=>427, 1958=>32, 1959=>32, 1960=>39, 1961=>40, 1962=>39, 1963=>40,
+ 1964=>40, 1965=>40, 1966=>40, 1967=>40, 1968=>0, 2305=>415, 2306=>398, 2307=>398, 2309=>862, 2310=>1042, 2311=>553, 2312=>553, 2313=>597, 2314=>848, 2315=>967, 2316=>828,
+ 2317=>654, 2319=>654, 2321=>1042, 2323=>1042, 2324=>1042, 2325=>743, 2326=>798, 2327=>694, 2328=>694, 2329=>730, 2330=>734, 2331=>888, 2332=>814, 2333=>834, 2334=>734, 2335=>629,
+ 2336=>629, 2337=>653, 2338=>609, 2339=>694, 2340=>654, 2341=>694, 2342=>588, 2343=>694, 2344=>654, 2345=>654, 2346=>615, 2347=>788, 2348=>621, 2349=>694, 2350=>694, 2351=>694,
+ 2352=>575, 2353=>575, 2354=>787, 2355=>848, 2356=>848, 2357=>621, 2359=>615, 2360=>734, 2361=>609, 2364=>398, 2365=>569, 2366=>341, 2367=>341, 2368=>341, 2369=>0, 2370=>0,
+ 2371=>0, 2372=>0, 2373=>415, 2375=>615, 2376=>615, 2377=>341, 2379=>341, 2380=>341, 2381=>0, 2384=>1047, 2392=>743, 2393=>798, 2394=>694, 2395=>814, 2396=>653, 2397=>609,
+ 2398=>788, 2400=>967, 2401=>828, 2402=>0, 2403=>0, 2404=>398, 2405=>478, 2406=>455, 2407=>420, 2408=>569, 2409=>509, 2410=>702, 2411=>629, 2412=>569, 2413=>702, 2414=>609,
+ 2415=>609, 2416=>626, 2433=>300, 2434=>400, 2435=>300, 2437=>640, 2438=>780, 2439=>520, 2440=>520, 2441=>530, 2442=>550, 2443=>610, 2444=>420, 2447=>480, 2448=>620, 2451=>620,
+ 2452=>720, 2453=>652, 2454=>490, 2455=>490, 2456=>466, 2457=>540, 2458=>490, 2459=>540, 2460=>630, 2461=>590, 2462=>680, 2463=>510, 2464=>490, 2465=>520, 2466=>520, 2467=>470,
+ 2468=>540, 2469=>490, 2470=>470, 2471=>490, 2472=>452, 2474=>560, 2475=>650, 2476=>480, 2477=>588, 2478=>470, 2479=>470, 2480=>480, 2482=>472, 2486=>512, 2487=>470, 2488=>470,
+ 2489=>520, 2492=>160, 2494=>180, 2495=>180, 2496=>180, 2497=>320, 2498=>329, 2499=>195, 2500=>260, 2503=>340, 2504=>340, 2507=>740, 2508=>740, 2509=>400, 2519=>180, 2524=>540,
+ 2525=>520, 2527=>470, 2528=>612, 2529=>420, 2530=>234, 2531=>360, 2534=>460, 2535=>420, 2536=>520, 2537=>540, 2538=>400, 2539=>400, 2540=>560, 2541=>390, 2542=>480, 2543=>420,
+ 2544=>480, 2545=>470, 2546=>400, 2547=>470, 2548=>400, 2549=>400, 2550=>400, 2551=>120, 2552=>440, 2553=>420, 2554=>420, 2565=>744, 2566=>914, 2567=>690, 2568=>670, 2569=>596,
+ 2570=>596, 2575=>498, 2576=>744, 2579=>596, 2580=>744, 2581=>550, 2582=>534, 2583=>618, 2584=>690, 2585=>546, 2586=>518, 2587=>592, 2588=>492, 2589=>574, 2590=>514, 2591=>526,
+ 2592=>556, 2593=>524, 2594=>528, 2595=>574, 2596=>484, 2597=>534, 2598=>504, 2599=>534, 2600=>538, 2602=>534, 2603=>506, 2604=>562, 2605=>516, 2606=>546, 2607=>670, 2608=>538,
+ 2610=>726, 2611=>726, 2613=>514, 2614=>546, 2616=>546, 2617=>517, 2620=>286, 2622=>172, 2623=>190, 2624=>190, 2625=>1, 2626=>1, 2631=>1, 2632=>1, 2635=>1, 2636=>1,
+ 2637=>1, 2649=>534, 2650=>618, 2651=>492, 2652=>484, 2654=>506, 2662=>616, 2663=>480, 2664=>560, 2665=>480, 2666=>468, 2667=>492, 2668=>514, 2669=>538, 2670=>572, 2671=>560,
+ 2672=>1, 2674=>498, 2675=>596, 2676=>900, 2947=>806, 2949=>861, 2950=>1076, 2951=>861, 2952=>595, 2953=>861, 2954=>1206, 2958=>689, 2959=>689, 2960=>753, 2962=>689, 2963=>689,
+ 2965=>646, 2969=>646, 2970=>646, 2972=>753, 2974=>972, 2975=>753, 2979=>1261, 2980=>732, 2984=>646, 2985=>861, 2986=>658, 2990=>689, 2991=>646, 2992=>499, 2993=>560, 2994=>603,
+ 2995=>753, 2996=>689, 2997=>714, 2999=>947, 3000=>1033, 3001=>1292, 3006=>499, 3007=>418, 3014=>603, 3015=>603, 3016=>861, 3021=>278, 3074=>330, 3075=>225, 3077=>450, 3078=>457,
+ 3079=>397, 3080=>726, 3081=>439, 3082=>686, 3083=>824, 3084=>539, 3086=>395, 3087=>395, 3088=>423, 3090=>447, 3091=>442, 3092=>604, 3093=>370, 3094=>452, 3095=>398, 3096=>634,
+ 3097=>445, 3098=>433, 3099=>433, 3100=>445, 3101=>390, 3102=>592, 3103=>453, 3104=>388, 3105=>440, 3106=>439, 3107=>478, 3108=>420, 3109=>420, 3110=>421, 3111=>420, 3112=>413,
+ 3114=>424, 3115=>427, 3116=>415, 3117=>422, 3120=>396, 3122=>419, 3585=>581, 3586=>529, 3587=>596, 3588=>581, 3589=>594, 3590=>649, 3591=>494, 3592=>561, 3593=>690, 3594=>529,
+ 3595=>596, 3596=>792, 3597=>793, 3598=>632, 3599=>632, 3600=>562, 3601=>707, 3602=>795, 3603=>891, 3604=>580, 3605=>591, 3606=>581, 3607=>642, 3608=>555, 3609=>689, 3610=>615,
+ 3611=>615, 3612=>600, 3613=>600, 3614=>671, 3615=>671, 3616=>632, 3617=>591, 3618=>536, 3619=>511, 3620=>581, 3621=>561, 3622=>632, 3623=>559, 3624=>593, 3625=>701, 3626=>573,
+ 3627=>643, 3628=>773, 3629=>561, 3630=>561, 3631=>506, 3632=>501, 3633=>0, 3634=>466, 3635=>467, 3636=>0, 3637=>0, 3638=>0, 3639=>0, 3640=>0, 3641=>0, 3642=>0,
+ 3647=>667, 3648=>329, 3649=>582, 3650=>406, 3651=>406, 3652=>406, 3653=>267, 3654=>525, 3655=>0, 3656=>0, 3657=>0, 3658=>0, 3659=>0, 3660=>0, 3661=>0, 3662=>0,
+ 3663=>707, 3664=>568, 3665=>568, 3666=>615, 3667=>639, 3668=>679, 3669=>680, 3670=>515, 3671=>767, 3672=>643, 3673=>608, 3674=>683, 3675=>1485, 4608=>583, 4609=>770, 4610=>560,
+ 4611=>525, 4612=>525, 4613=>583, 4614=>758, 4616=>598, 4617=>787, 4618=>817, 4619=>583, 4620=>758, 4621=>612, 4622=>875, 4623=>817, 4624=>817, 4625=>1050, 4626=>1050, 4627=>817,
+ 4628=>1050, 4629=>817, 4630=>787, 4631=>1021, 4632=>933, 4633=>1137, 4634=>1067, 4635=>980, 4636=>1065, 4637=>962, 4638=>962, 4639=>1097, 4640=>831, 4641=>1021, 4642=>851, 4643=>735,
+ 4644=>875, 4645=>968, 4646=>817, 4647=>881, 4648=>583, 4649=>642, 4650=>583, 4651=>758, 4652=>700, 4653=>583, 4654=>700, 4655=>758, 4656=>583, 4657=>787, 4658=>787, 4659=>583,
+ 4660=>729, 4661=>583, 4662=>583, 4663=>817, 4664=>642, 4665=>817, 4666=>846, 4667=>642, 4668=>758, 4669=>744, 4670=>642, 4671=>817, 4672=>700, 4673=>700, 4674=>700, 4675=>758,
+ 4676=>700, 4677=>700, 4678=>729, 4680=>846, 4682=>1079, 4683=>700, 4684=>700, 4685=>1021, 4688=>700, 4689=>700, 4690=>700, 4691=>758, 4692=>700, 4693=>758, 4694=>729, 4696=>846,
+ 4698=>1079, 4699=>700, 4700=>700, 4701=>1021, 4704=>525, 4705=>758, 4706=>758, 4707=>525, 4708=>700, 4709=>773, 4710=>525, 4711=>787, 4712=>525, 4713=>758, 4714=>758, 4715=>525,
+ 4716=>700, 4717=>773, 4718=>525, 4719=>525, 4720=>729, 4721=>729, 4722=>729, 4723=>802, 4724=>729, 4725=>729, 4726=>758, 4727=>729, 4728=>758, 4729=>758, 4730=>758, 4731=>817,
+ 4732=>758, 4733=>817, 4734=>758, 4735=>758, 4736=>612, 4737=>817, 4738=>817, 4739=>612, 4740=>787, 4741=>583, 4742=>875, 4744=>962, 4746=>992, 4747=>700, 4748=>758, 4749=>904,
+ 4752=>408, 4753=>583, 4754=>525, 4755=>554, 4756=>481, 4757=>554, 4758=>642, 4759=>671, 4760=>700, 4761=>758, 4762=>729, 4763=>700, 4764=>671, 4765=>700, 4766=>758, 4767=>700,
+ 4768=>583, 4769=>735, 4770=>822, 4771=>583, 4772=>793, 4773=>583, 4774=>583, 4775=>694, 4776=>554, 4777=>729, 4778=>773, 4779=>554, 4780=>700, 4781=>554, 4782=>554, 4784=>992,
+ 4786=>1021, 4787=>671, 4788=>787, 4789=>904, 4792=>729, 4793=>904, 4794=>948, 4795=>729, 4796=>875, 4797=>729, 4798=>729, 4800=>1137, 4801=>1000, 4802=>1167, 4803=>758, 4804=>875,
+ 4805=>1108, 4808=>758, 4809=>875, 4810=>700, 4811=>700, 4812=>700, 4813=>992, 4814=>758, 4816=>554, 4817=>787, 4818=>758, 4819=>583, 4820=>758, 4821=>496, 4822=>612, 4824=>525,
+ 4825=>700, 4826=>700, 4827=>525, 4828=>685, 4829=>729, 4830=>510, 4831=>729, 4832=>962, 4833=>962, 4834=>962, 4835=>962, 4836=>962, 4837=>1021, 4838=>962, 4839=>962, 4840=>467,
+ 4841=>525, 4842=>671, 4843=>612, 4844=>612, 4845=>671, 4846=>671, 4848=>612, 4849=>875, 4850=>817, 4851=>642, 4852=>729, 4853=>729, 4854=>758, 4855=>817, 4856=>700, 4857=>758,
+ 4858=>715, 4859=>700, 4860=>700, 4861=>787, 4862=>758, 4863=>700, 4864=>700, 4865=>758, 4866=>715, 4867=>700, 4868=>700, 4869=>787, 4870=>758, 4871=>700, 4872=>467, 4873=>671,
+ 4874=>671, 4875=>612, 4876=>612, 4877=>583, 4878=>525, 4880=>846, 4882=>904, 4883=>554, 4884=>700, 4885=>817, 4888=>525, 4889=>729, 4890=>729, 4891=>612, 4892=>671, 4893=>583,
+ 4894=>525, 4896=>817, 4897=>1021, 4898=>1021, 4899=>817, 4900=>992, 4901=>758, 4902=>817, 4903=>1021, 4904=>1079, 4905=>1137, 4906=>1137, 4907=>1050, 4908=>1312, 4909=>1050, 4910=>1050,
+ 4911=>1123, 4912=>647, 4913=>793, 4914=>822, 4915=>647, 4916=>793, 4917=>764, 4918=>583, 4919=>647, 4920=>583, 4921=>793, 4922=>822, 4923=>583, 4924=>793, 4925=>764, 4926=>583,
+ 4927=>793, 4928=>540, 4929=>758, 4930=>583, 4931=>467, 4932=>583, 4933=>481, 4934=>612, 4936=>758, 4937=>700, 4938=>758, 4939=>700, 4940=>831, 4941=>671, 4942=>758, 4943=>700,
+ 4944=>758, 4945=>758, 4946=>758, 4947=>817, 4948=>758, 4949=>758, 4950=>817, 4951=>758, 4952=>642, 4953=>980, 4954=>758, 4961=>233, 4962=>583, 4963=>408, 4964=>408, 4965=>525,
+ 4966=>525, 4967=>233, 4968=>700, 4969=>671, 4970=>612, 4971=>642, 4972=>642, 4973=>642, 4974=>583, 4975=>700, 4976=>758, 4977=>642, 4978=>583, 4979=>700, 4980=>729, 4981=>720,
+ 4982=>583, 4983=>758, 4984=>700, 4985=>904, 4986=>612, 4987=>583, 4988=>875, 7680=>722, 7681=>444, 7682=>667, 7683=>500, 7684=>667, 7685=>500, 7686=>667, 7687=>500, 7688=>667,
+ 7689=>444, 7690=>722, 7691=>500, 7692=>722, 7693=>500, 7694=>722, 7695=>500, 7696=>722, 7697=>500, 7698=>722, 7699=>500, 7700=>611, 7701=>444, 7702=>611, 7703=>444, 7704=>611,
+ 7705=>444, 7706=>611, 7707=>444, 7708=>611, 7709=>444, 7710=>556, 7711=>333, 7712=>722, 7713=>500, 7714=>722, 7715=>500, 7716=>722, 7717=>500, 7718=>722, 7719=>500, 7720=>722,
+ 7721=>500, 7722=>722, 7723=>500, 7724=>333, 7725=>278, 7726=>333, 7727=>278, 7728=>722, 7729=>500, 7730=>722, 7731=>500, 7732=>722, 7733=>500, 7734=>611, 7735=>278, 7736=>611,
+ 7737=>278, 7738=>611, 7739=>278, 7740=>611, 7741=>278, 7742=>889, 7743=>778, 7744=>889, 7745=>778, 7746=>889, 7747=>778, 7748=>722, 7749=>500, 7750=>722, 7751=>500, 7752=>722,
+ 7753=>500, 7754=>722, 7755=>500, 7756=>722, 7757=>500, 7758=>722, 7759=>500, 7760=>722, 7761=>500, 7762=>722, 7763=>500, 7764=>556, 7765=>500, 7766=>556, 7767=>500, 7768=>667,
+ 7769=>333, 7770=>667, 7771=>333, 7772=>667, 7773=>333, 7774=>667, 7775=>333, 7776=>556, 7777=>389, 7778=>556, 7779=>389, 7780=>556, 7781=>389, 7782=>556, 7783=>389, 7784=>556,
+ 7785=>389, 7786=>611, 7787=>278, 7788=>611, 7789=>278, 7790=>611, 7791=>278, 7792=>611, 7793=>278, 7794=>722, 7795=>500, 7796=>722, 7797=>500, 7798=>722, 7799=>500, 7800=>722,
+ 7801=>500, 7802=>722, 7803=>500, 7804=>722, 7805=>500, 7806=>722, 7807=>500, 7808=>944, 7809=>722, 7810=>944, 7811=>722, 7812=>944, 7813=>722, 7814=>944, 7815=>722, 7816=>944,
+ 7817=>722, 7818=>722, 7819=>500, 7820=>722, 7821=>500, 7822=>722, 7823=>500, 7824=>611, 7825=>444, 7826=>611, 7827=>444, 7828=>611, 7829=>444, 7830=>500, 7831=>278, 7832=>722,
+ 7833=>500, 7835=>333, 7840=>722, 7841=>444, 7842=>722, 7843=>444, 7844=>722, 7845=>444, 7846=>722, 7847=>444, 7848=>722, 7849=>444, 7850=>722, 7851=>444, 7852=>722, 7853=>444,
+ 7854=>722, 7855=>444, 7856=>722, 7857=>444, 7858=>722, 7859=>444, 7860=>722, 7861=>444, 7862=>722, 7863=>444, 7864=>611, 7865=>444, 7866=>611, 7867=>444, 7868=>611, 7869=>444,
+ 7870=>611, 7871=>444, 7872=>611, 7873=>444, 7874=>611, 7875=>444, 7876=>611, 7877=>444, 7878=>611, 7879=>444, 7880=>333, 7881=>278, 7882=>333, 7883=>278, 7884=>722, 7885=>500,
+ 7886=>722, 7887=>500, 7888=>722, 7889=>500, 7890=>722, 7891=>500, 7892=>722, 7893=>500, 7894=>722, 7895=>500, 7896=>722, 7897=>500, 7908=>722, 7909=>500, 7910=>722, 7911=>500,
+ 7922=>722, 7923=>500, 7924=>722, 7925=>500, 7926=>722, 7927=>500, 7928=>722, 7929=>500, 7936=>587, 7937=>587, 7938=>587, 7939=>587, 7940=>587, 7941=>587, 7942=>587, 7943=>587,
+ 7944=>722, 7945=>722, 7946=>722, 7947=>722, 7948=>722, 7949=>722, 7950=>722, 7951=>722, 7952=>426, 7953=>426, 7954=>426, 7955=>426, 7956=>426, 7957=>426, 7960=>611, 7961=>611,
+ 7962=>611, 7963=>611, 7964=>611, 7965=>611, 7968=>534, 7969=>534, 7970=>534, 7971=>534, 7972=>534, 7973=>534, 7974=>534, 7975=>534, 7976=>722, 7977=>722, 7978=>722, 7979=>722,
+ 7980=>722, 7981=>722, 7982=>722, 7983=>722, 7984=>267, 7985=>267, 7986=>267, 7987=>267, 7988=>267, 7989=>267, 7990=>267, 7991=>267, 7992=>333, 7993=>333, 7994=>333, 7995=>333,
+ 7996=>333, 7997=>333, 7998=>333, 7999=>333, 8000=>534, 8001=>534, 8002=>534, 8003=>534, 8004=>534, 8005=>534, 8008=>722, 8009=>722, 8010=>722, 8011=>722, 8012=>722, 8013=>722,
+ 8016=>534, 8017=>534, 8018=>534, 8019=>534, 8020=>534, 8021=>534, 8022=>534, 8023=>534, 8025=>696, 8027=>696, 8029=>696, 8031=>696, 8032=>693, 8033=>693, 8034=>693, 8035=>693,
+ 8036=>693, 8037=>693, 8038=>693, 8039=>693, 8040=>757, 8041=>757, 8042=>757, 8043=>757, 8044=>757, 8045=>757, 8046=>757, 8047=>757, 8048=>587, 8049=>587, 8050=>426, 8051=>426,
+ 8052=>534, 8053=>534, 8054=>267, 8055=>267, 8056=>534, 8057=>534, 8058=>534, 8059=>534, 8060=>693, 8061=>693, 8064=>587, 8065=>587, 8066=>587, 8067=>587, 8068=>587, 8069=>587,
+ 8070=>587, 8071=>587, 8072=>722, 8073=>722, 8074=>722, 8075=>722, 8076=>722, 8077=>722, 8078=>722, 8079=>722, 8080=>534, 8081=>534, 8082=>534, 8083=>534, 8084=>534, 8085=>534,
+ 8086=>534, 8087=>534, 8088=>722, 8089=>722, 8090=>722, 8091=>722, 8092=>722, 8093=>722, 8094=>722, 8095=>722, 8096=>693, 8097=>693, 8098=>693, 8099=>693, 8100=>693, 8101=>693,
+ 8102=>693, 8103=>693, 8104=>757, 8105=>757, 8106=>757, 8107=>757, 8108=>757, 8109=>757, 8110=>757, 8111=>757, 8112=>587, 8113=>587, 8114=>587, 8115=>587, 8116=>587, 8118=>587,
+ 8119=>587, 8120=>722, 8121=>722, 8122=>722, 8123=>722, 8124=>722, 8125=>250, 8126=>332, 8127=>500, 8128=>500, 8129=>534, 8130=>534, 8131=>534, 8132=>534, 8134=>534, 8135=>534,
+ 8136=>611, 8137=>611, 8138=>722, 8139=>722, 8140=>722, 8141=>500, 8142=>500, 8143=>500, 8144=>267, 8145=>267, 8146=>267, 8147=>267, 8150=>267, 8151=>267, 8152=>333, 8153=>333,
+ 8154=>333, 8155=>333, 8157=>500, 8158=>500, 8159=>500, 8160=>534, 8161=>534, 8162=>534, 8163=>534, 8164=>534, 8165=>534, 8166=>534, 8167=>534, 8168=>696, 8169=>696, 8170=>696,
+ 8171=>696, 8172=>556, 8173=>534, 8174=>534, 8175=>500, 8178=>693, 8179=>693, 8180=>693, 8182=>693, 8183=>693, 8184=>722, 8185=>722, 8186=>757, 8187=>757, 8188=>757, 8189=>500,
+ 8190=>500, 8219=>333, 8223=>444, 8227=>350, 8241=>1363, 8242=>247, 8243=>411, 8244=>611, 8245=>220, 8248=>469, 8251=>629, 8253=>444, 8255=>953, 8256=>953, 8257=>314, 8258=>931,
+ 8259=>333, 8260=>167, 8261=>383, 8262=>383, 8267=>453, 8304=>300, 8305=>300, 8308=>300, 8309=>300, 8310=>300, 8311=>300, 8312=>300, 8313=>300, 8314=>1000, 8320=>300, 8321=>300,
+ 8322=>300, 8323=>300, 8324=>300, 8325=>300, 8326=>300, 8327=>300, 8328=>300, 8329=>300, 8352=>698, 8353=>667, 8354=>667, 8355=>556, 8356=>500, 8357=>778, 8358=>722, 8359=>630,
+ 8361=>944, 8413=>788, 8450=>667, 8451=>954, 8453=>1000, 8457=>822, 8458=>500, 8459=>969, 8460=>663, 8461=>822, 8462=>500, 8463=>500, 8464=>809, 8465=>686, 8466=>874, 8467=>417,
+ 8469=>822, 8470=>954, 8471=>760, 8472=>987, 8473=>656, 8474=>722, 8475=>850, 8476=>795, 8477=>767, 8479=>667, 8480=>879, 8483=>722, 8484=>731, 8486=>757, 8487=>757, 8488=>663,
+ 8490=>722, 8491=>722, 8492=>908, 8493=>614, 8494=>533, 8496=>562, 8497=>895, 8498=>556, 8499=>1080, 8501=>823, 8502=>642, 8503=>315, 8504=>532, 8505=>417, 8531=>750, 8532=>750,
+ 8533=>750, 8534=>750, 8535=>750, 8536=>750, 8537=>750, 8538=>750, 8539=>750, 8540=>750, 8541=>750, 8542=>750, 8543=>750, 8544=>333, 8545=>630, 8546=>927, 8547=>1019, 8548=>722,
+ 8549=>1019, 8550=>1316, 8551=>1629, 8552=>1019, 8553=>722, 8554=>1019, 8555=>1316, 8556=>611, 8557=>667, 8558=>722, 8559=>889, 8560=>278, 8561=>556, 8562=>834, 8563=>778, 8564=>500,
+ 8565=>778, 8566=>1056, 8567=>1334, 8568=>778, 8569=>500, 8570=>778, 8571=>1056, 8572=>278, 8573=>444, 8574=>500, 8575=>778, 8592=>964, 8593=>499, 8594=>964, 8595=>499, 8596=>964,
+ 8597=>499, 8598=>964, 8599=>964, 8600=>964, 8601=>964, 8602=>964, 8603=>964, 8604=>1009, 8605=>1009, 8606=>964, 8608=>964, 8610=>1093, 8611=>1093, 8612=>1093, 8614=>1093, 8619=>964,
+ 8620=>964, 8621=>1151, 8622=>964, 8624=>482, 8625=>482, 8626=>482, 8627=>482, 8628=>658, 8629=>658, 8630=>1069, 8631=>1069, 8634=>939, 8635=>939, 8636=>964, 8637=>964, 8638=>499,
+ 8639=>499, 8640=>964, 8641=>964, 8642=>499, 8643=>499, 8644=>964, 8645=>840, 8646=>964, 8647=>964, 8648=>840, 8649=>964, 8650=>840, 8651=>964, 8652=>964, 8653=>964, 8654=>964,
+ 8655=>964, 8656=>964, 8657=>550, 8658=>964, 8659=>550, 8660=>964, 8661=>550, 8662=>1047, 8663=>1047, 8664=>1047, 8665=>1047, 8666=>964, 8667=>964, 8668=>1092, 8669=>1092, 8672=>964,
+ 8674=>964, 8704=>587, 8705=>716, 8706=>494, 8707=>587, 8708=>587, 8709=>500, 8710=>612, 8711=>713, 8712=>536, 8713=>536, 8714=>439, 8715=>536, 8716=>536, 8717=>439, 8719=>823,
+ 8720=>823, 8721=>713, 8722=>636, 8723=>636, 8724=>636, 8727=>471, 8728=>497, 8729=>497, 8730=>549, 8731=>549, 8732=>549, 8733=>636, 8734=>853, 8735=>509, 8736=>509, 8737=>509,
+ 8738=>509, 8741=>320, 8742=>320, 8743=>654, 8744=>654, 8745=>654, 8746=>654, 8747=>416, 8748=>750, 8749=>1083, 8750=>722, 8751=>750, 8756=>629, 8757=>629, 8758=>250, 8759=>629,
+ 8760=>636, 8761=>847, 8762=>636, 8763=>636, 8764=>636, 8765=>636, 8768=>264, 8769=>636, 8770=>636, 8771=>636, 8772=>636, 8773=>636, 8774=>636, 8775=>636, 8776=>636, 8777=>636,
+ 8778=>636, 8779=>636, 8781=>636, 8782=>636, 8783=>636, 8784=>636, 8785=>636, 8786=>636, 8787=>636, 8788=>847, 8789=>847, 8790=>636, 8791=>636, 8796=>636, 8800=>636, 8801=>636,
+ 8802=>636, 8803=>636, 8804=>636, 8805=>636, 8806=>636, 8807=>636, 8808=>636, 8809=>636, 8810=>918, 8811=>918, 8812=>410, 8813=>636, 8814=>636, 8815=>636, 8816=>636, 8817=>636,
+ 8818=>636, 8819=>636, 8820=>636, 8821=>636, 8822=>636, 8823=>636, 8824=>636, 8825=>636, 8826=>636, 8827=>636, 8828=>636, 8829=>636, 8830=>636, 8831=>636, 8832=>636, 8833=>636,
+ 8834=>636, 8835=>636, 8836=>636, 8837=>636, 8838=>636, 8839=>636, 8840=>636, 8841=>636, 8842=>636, 8843=>636, 8844=>654, 8845=>654, 8846=>654, 8847=>636, 8848=>636, 8849=>636,
+ 8850=>636, 8851=>654, 8852=>654, 8853=>636, 8854=>636, 8855=>636, 8856=>636, 8857=>636, 8858=>636, 8859=>636, 8860=>636, 8861=>636, 8862=>636, 8863=>636, 8864=>636, 8865=>636,
+ 8866=>466, 8867=>466, 8868=>712, 8869=>712, 8871=>466, 8873=>588, 8874=>710, 8875=>588, 8876=>466, 8877=>466, 8878=>588, 8879=>588, 8882=>636, 8883=>636, 8884=>636, 8885=>636,
+ 8886=>1296, 8887=>1296, 8888=>966, 8891=>654, 8892=>654, 8893=>654, 8896=>654, 8897=>654, 8898=>654, 8899=>654, 8900=>512, 8901=>250, 8902=>471, 8903=>629, 8904=>722, 8907=>816,
+ 8908=>816, 8909=>636, 8910=>636, 8911=>636, 8912=>636, 8913=>636, 8914=>654, 8915=>654, 8916=>654, 8917=>636, 8918=>636, 8919=>636, 8920=>1215, 8921=>1215, 8922=>636, 8923=>636,
+ 8924=>636, 8925=>636, 8926=>636, 8927=>636, 8928=>636, 8929=>636, 8930=>636, 8931=>636, 8932=>636, 8933=>636, 8934=>636, 8935=>636, 8936=>636, 8937=>636, 8938=>636, 8939=>636,
+ 8940=>636, 8941=>636, 8942=>250, 8943=>1000, 8944=>1000, 8945=>1000, 8960=>780, 8961=>444, 8976=>564, 8986=>805, 8992=>686, 8993=>686, 9001=>329, 9002=>329, 9031=>777, 9032=>777,
+ 9040=>777, 9047=>777, 9054=>777, 9251=>500, 9312=>788, 9313=>788, 9314=>788, 9315=>788, 9316=>788, 9317=>788, 9318=>788, 9319=>788, 9320=>788, 9321=>788, 9472=>889, 9473=>889,
+ 9474=>889, 9475=>889, 9476=>889, 9477=>889, 9478=>889, 9479=>889, 9480=>889, 9481=>889, 9482=>889, 9483=>889, 9484=>889, 9485=>889, 9486=>889, 9487=>889, 9488=>889, 9489=>889,
+ 9490=>889, 9491=>889, 9492=>889, 9493=>889, 9494=>889, 9495=>889, 9496=>889, 9497=>889, 9498=>889, 9499=>889, 9500=>889, 9501=>889, 9502=>889, 9503=>889, 9504=>889, 9505=>889,
+ 9506=>889, 9507=>889, 9508=>889, 9509=>889, 9510=>889, 9511=>889, 9512=>889, 9513=>889, 9514=>889, 9515=>889, 9516=>889, 9517=>889, 9518=>889, 9519=>889, 9520=>889, 9521=>889,
+ 9522=>889, 9523=>889, 9524=>889, 9525=>889, 9526=>889, 9527=>889, 9528=>889, 9529=>889, 9530=>889, 9531=>889, 9532=>889, 9533=>889, 9534=>889, 9535=>889, 9536=>889, 9537=>889,
+ 9538=>889, 9539=>889, 9540=>889, 9541=>889, 9542=>889, 9543=>889, 9544=>889, 9545=>889, 9546=>889, 9547=>889, 9552=>889, 9553=>889, 9554=>889, 9555=>889, 9556=>889, 9557=>889,
+ 9558=>889, 9559=>889, 9560=>889, 9561=>889, 9562=>889, 9563=>889, 9564=>889, 9565=>889, 9566=>889, 9567=>889, 9568=>889, 9569=>889, 9570=>889, 9571=>889, 9572=>889, 9573=>889,
+ 9574=>889, 9575=>889, 9576=>889, 9577=>889, 9578=>889, 9579=>889, 9580=>889, 9581=>889, 9600=>761, 9601=>761, 9602=>761, 9603=>761, 9604=>761, 9605=>761, 9606=>761, 9607=>761,
+ 9608=>761, 9609=>761, 9610=>761, 9611=>761, 9612=>761, 9613=>761, 9614=>761, 9615=>761, 9616=>761, 9620=>761, 9621=>761, 9632=>761, 9633=>761, 9650=>892, 9654=>892, 9660=>892,
+ 9664=>892, 9670=>788, 9674=>494, 9675=>791, 9679=>791, 9680=>791, 9681=>791, 9682=>791, 9683=>791, 9684=>791, 9685=>791, 9686=>791, 9687=>791, 9698=>761, 9699=>761, 9700=>761,
+ 9701=>761, 9703=>761, 9704=>761, 9705=>761, 9706=>761, 9733=>816, 9734=>823, 9740=>799, 9741=>972, 9742=>719, 9744=>761, 9745=>761, 9746=>761, 9753=>760, 9754=>960, 9755=>960,
+ 9756=>939, 9757=>500, 9758=>939, 9759=>500, 9760=>500, 9762=>805, 9763=>805, 9766=>494, 9768=>494, 9770=>805, 9772=>640, 9774=>805, 9775=>805, 9776=>600, 9777=>600, 9778=>600,
+ 9779=>600, 9780=>600, 9781=>600, 9782=>600, 9783=>600, 9784=>805, 9785=>805, 9786=>805, 9787=>805, 9788=>805, 9789=>777, 9790=>777, 9791=>541, 9792=>541, 9793=>541, 9794=>799,
+ 9795=>700, 9796=>583, 9797=>541, 9798=>652, 9799=>583, 9800=>805, 9801=>805, 9802=>805, 9803=>1013, 9804=>833, 9805=>1152, 9806=>1152, 9807=>1152, 9808=>704, 9809=>805, 9810=>1152,
+ 9811=>805, 9812=>800, 9813=>800, 9814=>800, 9815=>800, 9816=>800, 9817=>800, 9818=>800, 9819=>800, 9820=>800, 9821=>800, 9822=>800, 9823=>800, 9824=>626, 9825=>694, 9826=>595,
+ 9827=>776, 9829=>694, 9830=>595, 9833=>333, 9834=>555, 9835=>722, 9836=>722, 9837=>415, 9838=>377, 9839=>402, 9840=>776, 9841=>776, 9985=>974, 9986=>961, 9987=>974, 9988=>980,
+ 9990=>789, 9991=>790, 9992=>791, 9993=>690, 9996=>549, 9997=>855, 9998=>911, 9999=>933, 10000=>911, 10001=>945, 10002=>974, 10003=>755, 10004=>846, 10005=>762, 10006=>761, 10007=>571,
+ 10008=>677, 10009=>763, 10010=>760, 10011=>759, 10012=>754, 10013=>494, 10014=>552, 10015=>537, 10016=>577, 10017=>692, 10018=>786, 10019=>788, 10020=>788, 10021=>790, 10022=>793, 10023=>794,
+ 10025=>823, 10026=>789, 10027=>841, 10028=>823, 10029=>833, 10030=>816, 10031=>831, 10032=>923, 10033=>744, 10034=>723, 10035=>749, 10036=>790, 10037=>792, 10038=>695, 10039=>776, 10040=>768,
+ 10041=>792, 10042=>759, 10043=>707, 10044=>708, 10045=>682, 10046=>701, 10047=>826, 10048=>815, 10049=>789, 10050=>789, 10051=>707, 10052=>687, 10053=>696, 10054=>689, 10055=>786, 10056=>787,
+ 10057=>713, 10058=>791, 10059=>785, 10061=>873, 10063=>762, 10064=>762, 10065=>759, 10066=>759, 10070=>784, 10072=>138, 10073=>277, 10074=>415, 10075=>392, 10076=>392, 10077=>668, 10078=>668,
+ 10081=>732, 10082=>544, 10083=>544, 10084=>910, 10085=>667, 10086=>760, 10087=>760, 10102=>788, 10103=>788, 10104=>788, 10105=>788, 10106=>788, 10107=>788, 10108=>788, 10109=>788, 10110=>788,
+ 10111=>788, 10112=>788, 10113=>788, 10114=>788, 10115=>788, 10116=>788, 10117=>788, 10118=>788, 10119=>788, 10120=>788, 10121=>788, 10122=>788, 10123=>788, 10124=>788, 10125=>788, 10126=>788,
+ 10127=>788, 10128=>788, 10129=>788, 10130=>788, 10131=>788, 10132=>894, 10136=>748, 10137=>924, 10138=>748, 10139=>918, 10140=>927, 10141=>928, 10142=>928, 10143=>834, 10144=>873, 10145=>828,
+ 10146=>924, 10147=>924, 10148=>917, 10149=>930, 10150=>931, 10151=>463, 10152=>883, 10153=>836, 10154=>836, 10155=>867, 10156=>867, 10157=>696, 10158=>696, 10159=>874, 10161=>874, 10162=>760,
+ 10163=>946, 10164=>771, 10165=>865, 10166=>771, 10167=>888, 10168=>967, 10169=>888, 10170=>831, 10171=>873, 10172=>927, 10173=>970, 10174=>918, 12289=>1000, 12290=>1000, 12291=>1000, 12293=>1000,
+ 12295=>1000, 12296=>1000, 12297=>1000, 12298=>1000, 12299=>1000, 12300=>1000, 12301=>1000, 12302=>1000, 12303=>1000, 12304=>1000, 12305=>1000, 12306=>1000, 12308=>1000, 12309=>1000, 12353=>1000, 12354=>1000,
+ 12355=>1000, 12356=>1000, 12357=>1000, 12358=>1000, 12359=>1000, 12360=>1000, 12361=>1000, 12362=>1000, 12363=>1000, 12364=>1000, 12365=>1000, 12366=>1000, 12367=>1000, 12368=>1000, 12369=>1000, 12370=>1000,
+ 12371=>1000, 12372=>1000, 12373=>1000, 12374=>1000, 12375=>1000, 12376=>1000, 12377=>1000, 12378=>1000, 12379=>1000, 12380=>1000, 12381=>1000, 12382=>1000, 12383=>1000, 12384=>1000, 12385=>1000, 12386=>1000,
+ 12387=>1000, 12388=>1000, 12389=>1000, 12390=>1000, 12391=>1000, 12392=>1000, 12393=>1000, 12394=>1000, 12395=>1000, 12396=>1000, 12397=>1000, 12398=>1000, 12399=>1000, 12400=>1000, 12401=>1000, 12402=>1000,
+ 12403=>1000, 12404=>1000, 12405=>1000, 12406=>1000, 12407=>1000, 12408=>1000, 12409=>1000, 12410=>1000, 12411=>1000, 12412=>1000, 12413=>1000, 12414=>1000, 12415=>1000, 12416=>1000, 12417=>1000, 12418=>1000,
+ 12419=>1000, 12420=>1000, 12421=>1000, 12422=>1000, 12423=>1000, 12424=>1000, 12425=>1000, 12426=>1000, 12427=>1000, 12428=>1000, 12429=>1000, 12430=>1000, 12431=>1000, 12432=>1000, 12433=>1000, 12434=>1000,
+ 12435=>1000, 12436=>1273, 12441=>1000, 12443=>1000, 12449=>1000, 12450=>1000, 12451=>1000, 12452=>1000, 12453=>1000, 12454=>1000, 12455=>1000, 12456=>1000, 12457=>1000, 12458=>1000, 12459=>1000, 12460=>1000,
+ 12461=>1000, 12462=>1000, 12463=>1000, 12464=>1000, 12465=>1000, 12466=>1000, 12467=>1000, 12468=>1000, 12469=>1000, 12470=>1000, 12471=>1000, 12472=>1000, 12473=>1000, 12474=>1000, 12475=>1000, 12476=>1000,
+ 12477=>1000, 12478=>1000, 12479=>1000, 12480=>1000, 12481=>1000, 12482=>1000, 12483=>1000, 12484=>1000, 12485=>1000, 12486=>1000, 12487=>1000, 12488=>1000, 12489=>1000, 12490=>1000, 12491=>1000, 12492=>1000,
+ 12493=>1000, 12494=>1000, 12495=>1000, 12496=>1000, 12497=>1000, 12498=>1000, 12499=>1000, 12500=>1000, 12501=>1000, 12502=>1000, 12503=>1000, 12504=>1000, 12505=>1000, 12506=>1000, 12507=>1000, 12508=>1000,
+ 12509=>1000, 12510=>1000, 12511=>1000, 12512=>1000, 12513=>1000, 12514=>1000, 12515=>1000, 12516=>1000, 12517=>1000, 12518=>1000, 12519=>1000, 12520=>1000, 12521=>1000, 12522=>1000, 12523=>1000, 12524=>1000,
+ 12525=>1000, 12526=>1000, 12527=>1000, 12528=>1000, 12529=>1000, 12530=>1000, 12531=>1000, 12532=>1000, 12533=>1000, 12534=>1000, 12535=>1273, 12536=>1273, 12537=>1273, 12538=>1273, 12539=>250, 12540=>1000,
+ 63033=>500, 63034=>500, 63035=>500, 63036=>500, 63037=>500, 63038=>500, 63039=>500, 63040=>500, 63041=>500, 63171=>333, 63193=>790, 63194=>790, 63195=>890, 63196=>500, 63718=>603, 63719=>1000,
+ 63720=>790, 63721=>790, 63722=>786, 63723=>384, 63724=>384, 63725=>384, 63726=>384, 63727=>384, 63728=>384, 63729=>494, 63730=>494, 63731=>494, 63732=>494, 63733=>686, 63734=>384, 63735=>384,
+ 63736=>384, 63737=>384, 63738=>384, 63739=>384, 63740=>494, 63741=>494, 63742=>494, 64256=>605, 64257=>556, 64258=>556, 64259=>824, 64260=>821, 64262=>677, 64298=>537, 64299=>537, 64300=>537,
+ 64301=>537, 64302=>537, 64303=>537, 64304=>537, 64305=>537, 64306=>350, 64307=>537, 64308=>537, 64309=>350, 64310=>350, 64312=>537, 64313=>350, 64314=>537, 64315=>537, 64316=>537, 64318=>537,
+ 64320=>350, 64321=>537, 64323=>537, 64324=>537, 64326=>537, 64327=>537, 64328=>537, 64329=>537, 64330=>537, 64331=>350, 64332=>537, 64333=>537, 64334=>537, 64342=>926, 64343=>926, 64344=>308,
+ 64345=>308, 64378=>750, 64379=>750, 64380=>580, 64381=>580, 64394=>338, 64395=>338, 64402=>874, 64403=>874, 64404=>329, 64405=>329, 64508=>776, 64509=>700, 64510=>304, 64511=>304, 65010=>640,
+ 65020=>837, 65136=>300, 65140=>300, 65142=>300, 65144=>300, 65146=>300, 65148=>300, 65153=>321, 65164=>301, 65165=>249, 65166=>275, 65167=>950, 65168=>950, 65169=>293, 65170=>293, 65173=>925,
+ 65174=>925, 65175=>308, 65176=>308, 65177=>924, 65178=>924, 65179=>298, 65180=>298, 65181=>750, 65182=>750, 65183=>574, 65184=>574, 65185=>748, 65186=>750, 65187=>600, 65188=>600, 65189=>701,
+ 65190=>775, 65191=>596, 65192=>596, 65193=>397, 65194=>397, 65195=>399, 65196=>399, 65197=>328, 65198=>328, 65199=>331, 65200=>331, 65201=>951, 65202=>951, 65203=>600, 65204=>600, 65205=>949,
+ 65206=>949, 65207=>649, 65208=>649, 65209=>949, 65210=>949, 65211=>823, 65212=>823, 65213=>949, 65214=>949, 65215=>805, 65216=>805, 65217=>557, 65221=>550, 65225=>625, 65226=>575, 65227=>674,
+ 65228=>550, 65229=>602, 65230=>577, 65231=>578, 65232=>577, 65233=>801, 65234=>801, 65235=>300, 65236=>300, 65237=>696, 65238=>696, 65239=>650, 65240=>650, 65241=>757, 65242=>757, 65243=>318,
+ 65244=>318, 65245=>655, 65246=>655, 65247=>206, 65248=>206, 65249=>549, 65250=>549, 65251=>403, 65252=>403, 65253=>651, 65254=>651, 65255=>323, 65256=>323, 65257=>424, 65258=>622, 65259=>525,
+ 65260=>476, 65261=>399, 65262=>399, 65275=>676, 65276=>724, 65533=>788);
+$enc='';
+$diff='';
+$file='FreeSerif.z';
+$ctg='FreeSerif.ctg.z';
+$originalsize=621136;
+?>
diff --git a/lib/tcpdf/fonts/freeserifb.php b/lib/tcpdf/fonts/freeserifb.php
new file mode 100755
index 0000000000..eba5d54d35
--- /dev/null
+++ b/lib/tcpdf/fonts/freeserifb.php
@@ -0,0 +1,110 @@
+1173,'Descent'=>-488,'CapHeight'=>1173,'Flags'=>32,'FontBBox'=>'[-500 -488 1860 1173]','ItalicAngle'=>0,'StemV'=>120,'MissingWidth'=>600);
+$up=-100;
+$ut=50;
+$cw=array(
+ 13=>333, 32=>250, 33=>333, 34=>555, 35=>500, 36=>500, 37=>1000, 38=>833, 39=>278, 40=>333, 41=>333, 42=>500, 43=>570, 44=>250, 45=>333, 46=>250,
+ 47=>278, 48=>500, 49=>500, 50=>500, 51=>500, 52=>500, 53=>500, 54=>500, 55=>500, 56=>500, 57=>500, 58=>333, 59=>333, 60=>570, 61=>570, 62=>570,
+ 63=>500, 64=>930, 65=>722, 66=>667, 67=>722, 68=>724, 69=>667, 70=>611, 71=>778, 72=>774, 73=>386, 74=>500, 75=>764, 76=>664, 77=>943, 78=>722,
+ 79=>778, 80=>611, 81=>778, 82=>712, 83=>556, 84=>667, 85=>722, 86=>722, 87=>1000, 88=>722, 89=>722, 90=>667, 91=>333, 92=>278, 93=>333, 94=>581,
+ 95=>500, 96=>333, 97=>500, 98=>556, 99=>444, 100=>556, 101=>444, 102=>333, 103=>500, 104=>556, 105=>278, 106=>333, 107=>556, 108=>278, 109=>833, 110=>556,
+ 111=>500, 112=>556, 113=>556, 114=>444, 115=>389, 116=>333, 117=>556, 118=>500, 119=>722, 120=>500, 121=>500, 122=>444, 123=>394, 124=>220, 125=>394, 126=>520,
+ 8364=>500, 1027=>611, 8218=>333, 1107=>458, 8222=>500, 8230=>1000, 8224=>500, 8225=>500, 710=>333, 8240=>1000, 352=>556, 8249=>333, 338=>1000, 1036=>778, 381=>667, 1039=>778,
+ 8216=>333, 8217=>333, 8220=>500, 8221=>500, 8226=>350, 8211=>500, 8212=>1000, 732=>333, 8482=>1000, 353=>389, 8250=>333, 339=>722, 1116=>534, 382=>444, 376=>722, 161=>333,
+ 162=>500, 163=>500, 164=>500, 165=>500, 166=>220, 167=>500, 168=>333, 169=>747, 170=>300, 171=>500, 172=>570, 174=>747, 175=>333, 176=>400, 177=>570, 178=>300,
+ 179=>300, 180=>333, 181=>556, 182=>540, 183=>250, 184=>333, 185=>300, 186=>330, 187=>500, 188=>750, 189=>750, 190=>750, 191=>500, 192=>722, 193=>722, 194=>722,
+ 195=>722, 196=>722, 197=>722, 198=>1000, 199=>722, 200=>667, 201=>667, 202=>667, 203=>667, 204=>389, 205=>389, 206=>389, 207=>389, 208=>722, 209=>722, 210=>778,
+ 211=>778, 212=>778, 213=>778, 214=>778, 215=>570, 216=>778, 217=>722, 218=>722, 219=>722, 220=>722, 221=>722, 222=>611, 223=>556, 224=>500, 225=>500, 226=>500,
+ 227=>500, 228=>500, 229=>500, 230=>722, 231=>444, 232=>444, 233=>444, 234=>444, 235=>444, 236=>278, 237=>278, 238=>278, 239=>278, 240=>500, 241=>556, 242=>500,
+ 243=>500, 244=>500, 245=>500, 246=>500, 247=>570, 248=>500, 249=>556, 250=>556, 251=>556, 252=>556, 253=>500, 254=>556, 255=>500, 256=>722, 257=>500, 258=>722,
+ 259=>500, 260=>722, 261=>500, 262=>722, 263=>444, 264=>722, 265=>444, 266=>722, 267=>444, 268=>722, 269=>444, 270=>722, 271=>556, 272=>722, 273=>556, 274=>667,
+ 275=>444, 276=>667, 277=>444, 278=>667, 279=>444, 280=>667, 281=>444, 282=>667, 283=>444, 284=>778, 285=>500, 286=>778, 287=>500, 288=>778, 289=>500, 290=>778,
+ 291=>500, 292=>778, 293=>556, 294=>778, 295=>556, 296=>389, 297=>278, 298=>389, 299=>278, 300=>389, 301=>278, 302=>389, 303=>278, 304=>389, 305=>278, 306=>882,
+ 307=>486, 308=>500, 309=>333, 310=>778, 311=>556, 312=>534, 313=>667, 314=>278, 315=>667, 316=>278, 317=>667, 318=>278, 319=>667, 320=>528, 321=>667, 322=>278,
+ 323=>722, 324=>556, 325=>722, 326=>556, 327=>722, 328=>556, 329=>704, 330=>722, 331=>556, 332=>778, 333=>500, 334=>778, 335=>500, 336=>778, 337=>500, 340=>722,
+ 341=>444, 342=>722, 343=>444, 344=>722, 345=>444, 346=>556, 347=>389, 348=>556, 349=>389, 350=>556, 351=>389, 354=>667, 355=>333, 356=>667, 357=>333, 358=>667,
+ 359=>333, 360=>722, 361=>556, 362=>722, 363=>556, 364=>722, 365=>556, 366=>722, 367=>556, 368=>722, 369=>556, 370=>722, 371=>556, 372=>1000, 373=>722, 374=>722,
+ 375=>500, 377=>667, 378=>444, 379=>667, 380=>444, 383=>333, 439=>1000, 450=>570, 461=>722, 462=>500, 463=>386, 464=>278, 465=>778, 466=>500, 467=>722, 468=>556,
+ 469=>722, 470=>556, 471=>722, 472=>556, 473=>722, 474=>556, 475=>722, 476=>556, 477=>444, 478=>722, 479=>500, 482=>1000, 483=>722, 484=>778, 485=>500, 486=>778,
+ 487=>500, 488=>764, 489=>556, 490=>778, 491=>500, 492=>778, 493=>500, 494=>654, 495=>508, 500=>778, 501=>500, 504=>722, 505=>556, 506=>722, 507=>500, 508=>1000,
+ 509=>722, 510=>778, 511=>500, 512=>722, 513=>500, 514=>722, 515=>500, 516=>667, 517=>444, 518=>667, 519=>444, 520=>386, 521=>278, 522=>386, 523=>278, 524=>778,
+ 525=>500, 526=>778, 527=>500, 528=>712, 529=>444, 530=>712, 531=>444, 532=>722, 533=>556, 534=>722, 535=>556, 536=>556, 537=>389, 538=>667, 539=>333, 542=>774,
+ 543=>556, 550=>722, 551=>500, 552=>667, 553=>444, 554=>778, 555=>500, 556=>778, 557=>500, 558=>778, 559=>500, 560=>778, 561=>500, 562=>722, 563=>500, 658=>508,
+ 711=>333, 728=>333, 729=>333, 730=>333, 731=>333, 733=>333, 768=>0, 769=>0, 770=>0, 771=>0, 772=>0, 773=>0, 774=>0, 775=>0, 776=>0, 777=>0,
+ 778=>0, 779=>0, 780=>0, 781=>0, 782=>0, 783=>0, 784=>0, 785=>0, 786=>0, 787=>0, 788=>0, 789=>0, 790=>0, 791=>0, 792=>0, 793=>0,
+ 794=>0, 795=>0, 796=>0, 797=>0, 798=>0, 799=>0, 800=>0, 801=>0, 802=>0, 803=>0, 804=>0, 805=>0, 806=>0, 807=>0, 808=>0, 809=>0,
+ 810=>0, 811=>0, 812=>0, 813=>0, 814=>0, 815=>0, 816=>0, 817=>0, 818=>0, 819=>0, 820=>0, 821=>0, 822=>0, 823=>0, 824=>0, 825=>0,
+ 826=>0, 827=>0, 828=>0, 829=>0, 830=>0, 831=>0, 864=>0, 865=>0, 884=>199, 885=>199, 890=>0, 894=>333, 900=>180, 901=>330, 902=>722, 903=>250,
+ 904=>811, 905=>958, 906=>569, 908=>811, 910=>902, 911=>811, 912=>330, 913=>722, 914=>667, 915=>611, 916=>759, 917=>667, 918=>667, 919=>778, 920=>778, 921=>389,
+ 922=>778, 923=>722, 924=>944, 925=>722, 926=>650, 927=>778, 928=>812, 929=>611, 931=>650, 932=>667, 933=>722, 934=>868, 935=>722, 936=>868, 937=>811, 938=>0,
+ 939=>722, 940=>605, 941=>440, 942=>605, 943=>330, 944=>550, 945=>605, 946=>550, 947=>550, 948=>550, 949=>440, 950=>495, 951=>605, 952=>550, 953=>330, 954=>608,
+ 955=>495, 956=>605, 957=>495, 958=>495, 959=>550, 960=>605, 961=>550, 962=>440, 963=>550, 964=>440, 965=>550, 966=>660, 967=>495, 968=>715, 969=>715, 970=>330,
+ 971=>550, 972=>550, 973=>550, 974=>715, 976=>550, 977=>550, 978=>722, 979=>722, 980=>722, 981=>660, 982=>605, 986=>510, 987=>426, 988=>611, 989=>470, 1024=>667,
+ 1025=>667, 1026=>667, 1028=>722, 1029=>556, 1030=>389, 1031=>389, 1032=>500, 1033=>1032, 1034=>1032, 1035=>808, 1037=>778, 1038=>722, 1040=>722, 1041=>667, 1042=>667, 1043=>591,
+ 1044=>778, 1045=>667, 1046=>1107, 1047=>564, 1048=>773, 1049=>773, 1050=>764, 1051=>778, 1052=>944, 1053=>778, 1054=>778, 1055=>774, 1056=>611, 1057=>722, 1058=>667, 1059=>722,
+ 1060=>800, 1061=>722, 1062=>773, 1063=>778, 1064=>1113, 1065=>1112, 1066=>867, 1067=>970, 1068=>630, 1069=>722, 1070=>1114, 1071=>735, 1072=>500, 1073=>500, 1074=>502, 1075=>443,
+ 1076=>556, 1077=>444, 1078=>750, 1079=>408, 1080=>574, 1081=>574, 1082=>534, 1083=>544, 1084=>676, 1085=>556, 1086=>500, 1087=>556, 1088=>556, 1089=>444, 1090=>494, 1091=>500,
+ 1092=>825, 1093=>500, 1094=>556, 1095=>556, 1096=>818, 1097=>818, 1098=>612, 1099=>762, 1100=>512, 1101=>444, 1102=>790, 1103=>512, 1104=>444, 1105=>444, 1106=>556, 1108=>444,
+ 1109=>389, 1110=>278, 1111=>278, 1112=>333, 1113=>792, 1114=>786, 1115=>556, 1117=>556, 1118=>500, 1119=>556, 1164=>611, 1165=>512, 1166=>611, 1167=>556, 1168=>611, 1169=>458,
+ 1170=>611, 1171=>458, 1172=>611, 1173=>458, 1174=>1107, 1175=>750, 1176=>580, 1177=>389, 1178=>778, 1179=>534, 1180=>778, 1181=>534, 1182=>778, 1183=>534, 1184=>967, 1185=>633,
+ 1186=>778, 1187=>556, 1188=>1014, 1189=>735, 1190=>778, 1191=>830, 1192=>722, 1193=>444, 1194=>722, 1195=>444, 1196=>667, 1197=>494, 1198=>722, 1199=>500, 1200=>722, 1201=>500,
+ 1202=>722, 1203=>500, 1204=>1046, 1205=>778, 1206=>778, 1207=>556, 1208=>778, 1209=>556, 1210=>778, 1211=>556, 1212=>660, 1213=>444, 1214=>660, 1215=>444, 1216=>389, 1217=>1107,
+ 1218=>750, 1219=>778, 1220=>534, 1223=>778, 1224=>556, 1227=>778, 1228=>556, 1232=>722, 1233=>500, 1234=>722, 1235=>500, 1236=>1000, 1237=>722, 1238=>667, 1239=>444, 1240=>660,
+ 1241=>444, 1242=>660, 1243=>444, 1244=>1107, 1245=>750, 1246=>564, 1247=>408, 1248=>580, 1249=>389, 1250=>778, 1251=>556, 1252=>778, 1253=>556, 1254=>778, 1255=>500, 1256=>778,
+ 1257=>500, 1258=>778, 1259=>500, 1260=>722, 1261=>444, 1262=>722, 1263=>500, 1264=>722, 1265=>500, 1266=>722, 1267=>500, 1268=>778, 1269=>556, 1272=>987, 1273=>762, 1488=>504,
+ 1489=>504, 1490=>313, 1491=>504, 1492=>504, 1493=>285, 1494=>285, 1495=>504, 1496=>504, 1497=>285, 1498=>517, 1499=>504, 1500=>504, 1501=>504, 1502=>504, 1503=>281, 1504=>285,
+ 1505=>504, 1506=>504, 1507=>526, 1508=>504, 1509=>491, 1510=>504, 1511=>549, 1512=>513, 1513=>538, 1514=>504, 1548=>250, 7680=>722, 7681=>500, 7682=>667, 7683=>556, 7684=>667,
+ 7685=>556, 7686=>667, 7687=>556, 7688=>722, 7689=>444, 7690=>724, 7691=>556, 7692=>724, 7693=>556, 7694=>724, 7695=>556, 7696=>724, 7697=>556, 7698=>724, 7699=>556, 7700=>667,
+ 7701=>444, 7702=>667, 7703=>444, 7704=>667, 7705=>444, 7706=>667, 7707=>444, 7708=>667, 7709=>444, 7710=>611, 7711=>333, 7712=>778, 7713=>500, 7714=>774, 7715=>556, 7716=>774,
+ 7717=>556, 7718=>774, 7719=>556, 7720=>774, 7721=>556, 7722=>774, 7723=>556, 7724=>386, 7725=>278, 7726=>389, 7727=>278, 7728=>764, 7729=>556, 7730=>764, 7731=>556, 7732=>764,
+ 7733=>556, 7734=>664, 7735=>278, 7736=>664, 7737=>278, 7738=>664, 7739=>278, 7740=>664, 7741=>278, 7742=>943, 7743=>833, 7744=>943, 7745=>833, 7746=>943, 7747=>833, 7748=>722,
+ 7749=>556, 7750=>722, 7751=>556, 7752=>722, 7753=>556, 7754=>722, 7755=>556, 7756=>778, 7757=>500, 7758=>778, 7759=>500, 7760=>778, 7761=>500, 7762=>778, 7763=>500, 7764=>611,
+ 7765=>556, 7766=>611, 7767=>556, 7768=>712, 7769=>444, 7770=>712, 7771=>444, 7772=>712, 7773=>444, 7774=>712, 7775=>444, 7776=>556, 7777=>389, 7778=>556, 7779=>389, 7780=>556,
+ 7781=>389, 7782=>556, 7783=>389, 7784=>556, 7785=>389, 7786=>667, 7787=>333, 7788=>667, 7789=>333, 7790=>667, 7791=>333, 7792=>667, 7793=>333, 7794=>722, 7795=>556, 7796=>722,
+ 7797=>556, 7798=>722, 7799=>556, 7800=>722, 7801=>556, 7802=>722, 7803=>556, 7804=>722, 7805=>500, 7806=>722, 7807=>500, 7808=>1000, 7809=>722, 7810=>1000, 7811=>722, 7812=>1000,
+ 7813=>722, 7814=>1000, 7815=>722, 7816=>1000, 7817=>722, 7818=>722, 7819=>500, 7820=>722, 7821=>500, 7822=>722, 7823=>500, 7824=>667, 7825=>444, 7826=>667, 7827=>444, 7828=>667,
+ 7829=>444, 7830=>556, 7831=>333, 7832=>722, 7833=>500, 7835=>333, 7840=>722, 7841=>500, 7842=>722, 7843=>500, 7844=>722, 7845=>500, 7846=>722, 7847=>500, 7848=>722, 7849=>500,
+ 7850=>722, 7851=>500, 7852=>722, 7853=>500, 7854=>722, 7855=>500, 7856=>722, 7857=>500, 7858=>722, 7859=>500, 7860=>722, 7861=>500, 7862=>722, 7863=>500, 7864=>667, 7865=>444,
+ 7866=>667, 7867=>444, 7868=>667, 7869=>444, 7870=>667, 7871=>444, 7872=>667, 7873=>444, 7874=>667, 7875=>444, 7876=>667, 7877=>444, 7878=>667, 7879=>444, 7880=>386, 7881=>278,
+ 7882=>386, 7883=>278, 7884=>778, 7885=>500, 7886=>778, 7887=>500, 7888=>778, 7889=>500, 7890=>778, 7891=>500, 7892=>778, 7893=>500, 7894=>778, 7895=>500, 7896=>778, 7897=>500,
+ 7908=>722, 7909=>556, 7910=>722, 7911=>556, 7922=>722, 7923=>500, 7924=>722, 7925=>500, 7926=>722, 7927=>500, 7928=>722, 7929=>500, 7936=>605, 7937=>605, 7938=>605, 7939=>605,
+ 7940=>605, 7941=>605, 7942=>605, 7943=>605, 7944=>722, 7945=>722, 7946=>722, 7947=>722, 7948=>722, 7949=>722, 7950=>722, 7951=>722, 7952=>440, 7953=>440, 7954=>440, 7955=>440,
+ 7956=>440, 7957=>440, 7960=>667, 7961=>667, 7962=>667, 7963=>667, 7964=>667, 7965=>667, 7968=>605, 7969=>605, 7970=>605, 7971=>605, 7972=>605, 7973=>605, 7974=>605, 7975=>605,
+ 7976=>778, 7977=>778, 7978=>778, 7979=>778, 7980=>778, 7981=>778, 7982=>778, 7983=>778, 7984=>330, 7985=>330, 7986=>330, 7987=>330, 7988=>330, 7989=>330, 7990=>330, 7991=>330,
+ 7992=>389, 7993=>389, 7994=>389, 7995=>389, 7996=>389, 7997=>389, 7998=>389, 7999=>389, 8000=>550, 8001=>550, 8002=>550, 8003=>550, 8004=>550, 8005=>550, 8008=>778, 8009=>778,
+ 8010=>778, 8011=>778, 8012=>778, 8013=>778, 8016=>550, 8017=>550, 8018=>550, 8019=>550, 8020=>550, 8021=>550, 8022=>550, 8023=>550, 8025=>722, 8027=>722, 8029=>722, 8031=>722,
+ 8032=>715, 8033=>715, 8034=>715, 8035=>715, 8036=>715, 8037=>715, 8038=>715, 8039=>715, 8040=>811, 8041=>811, 8042=>811, 8043=>811, 8044=>811, 8045=>811, 8046=>811, 8047=>811,
+ 8048=>605, 8049=>605, 8050=>440, 8051=>440, 8052=>605, 8053=>605, 8054=>330, 8055=>330, 8056=>550, 8057=>550, 8058=>550, 8059=>550, 8060=>715, 8061=>715, 8064=>605, 8065=>605,
+ 8066=>605, 8067=>605, 8068=>605, 8069=>605, 8070=>605, 8071=>605, 8072=>722, 8073=>722, 8074=>722, 8075=>722, 8076=>722, 8077=>722, 8078=>722, 8079=>722, 8080=>605, 8081=>605,
+ 8082=>605, 8083=>605, 8084=>605, 8085=>605, 8086=>605, 8087=>605, 8088=>778, 8089=>778, 8090=>778, 8091=>778, 8092=>778, 8093=>778, 8094=>778, 8095=>778, 8096=>715, 8097=>715,
+ 8098=>715, 8099=>715, 8100=>715, 8101=>715, 8102=>715, 8103=>715, 8104=>811, 8105=>811, 8106=>811, 8107=>811, 8108=>811, 8109=>811, 8110=>811, 8111=>811, 8112=>605, 8113=>605,
+ 8114=>605, 8115=>605, 8116=>605, 8118=>605, 8119=>605, 8120=>722, 8121=>722, 8122=>722, 8123=>722, 8124=>722, 8125=>500, 8126=>0, 8127=>500, 8128=>500, 8129=>550, 8130=>605,
+ 8131=>605, 8132=>605, 8134=>605, 8135=>605, 8136=>667, 8137=>667, 8138=>778, 8139=>778, 8140=>778, 8141=>500, 8142=>500, 8143=>500, 8144=>330, 8145=>330, 8146=>330, 8147=>330,
+ 8150=>330, 8151=>330, 8152=>389, 8153=>389, 8154=>389, 8155=>389, 8157=>500, 8158=>500, 8159=>500, 8160=>550, 8161=>550, 8162=>550, 8163=>550, 8164=>550, 8165=>550, 8166=>550,
+ 8167=>550, 8168=>722, 8169=>722, 8170=>722, 8171=>722, 8172=>611, 8173=>550, 8174=>550, 8175=>500, 8178=>715, 8179=>715, 8180=>715, 8182=>715, 8183=>715, 8184=>778, 8185=>778,
+ 8186=>811, 8187=>811, 8188=>811, 8189=>500, 8190=>500, 8208=>333, 8209=>333, 8219=>333, 8223=>500, 8227=>560, 8228=>250, 8229=>500, 8241=>1820, 8248=>469, 8251=>727, 8252=>666,
+ 8253=>695, 8255=>953, 8256=>953, 8257=>338, 8258=>931, 8259=>333, 8260=>167, 8261=>332, 8262=>332, 8263=>1000, 8264=>833, 8265=>833, 8267=>540, 8308=>300, 8309=>1000, 8321=>300,
+ 8322=>300, 8323=>300, 8324=>300, 8352=>710, 8353=>722, 8354=>783, 8355=>611, 8356=>500, 8357=>833, 8358=>722, 8359=>700, 8361=>1000, 8451=>1122, 8470=>954, 8471=>747, 8479=>722,
+ 8483=>722, 8486=>811, 8487=>811, 8490=>764, 8491=>722, 8494=>551, 8498=>611, 8543=>750, 8544=>386, 8545=>772, 8546=>1158, 8547=>1108, 8548=>722, 8549=>1108, 8550=>1494, 8551=>1880,
+ 8552=>1108, 8553=>722, 8554=>1108, 8555=>1494, 8556=>664, 8557=>722, 8558=>724, 8559=>943, 8560=>278, 8561=>556, 8562=>834, 8563=>778, 8564=>500, 8565=>778, 8566=>1056, 8567=>1334,
+ 8568=>778, 8569=>500, 8570=>778, 8571=>1056, 8572=>278, 8573=>444, 8574=>556, 8575=>833, 8706=>494, 8710=>612, 8721=>713, 8722=>570, 8730=>549, 8734=>752, 8800=>570, 8804=>570,
+ 8805=>570, 9674=>494, 12353=>1000, 12354=>1000, 12355=>1000, 12356=>1000, 12357=>1000, 12358=>1000, 12359=>1000, 12360=>1000, 12361=>1000, 12362=>1000, 12363=>1000, 12364=>1000, 12365=>1000, 12366=>1000,
+ 12367=>1000, 12368=>1000, 12369=>1000, 12370=>1000, 12371=>1000, 12372=>1000, 12373=>1000, 12374=>1000, 12375=>1000, 12376=>1000, 12377=>1000, 12378=>1000, 12379=>1000, 12380=>1000, 12381=>1000, 12382=>1000,
+ 12383=>1000, 12384=>1000, 12385=>1000, 12386=>1000, 12387=>1000, 12388=>1000, 12389=>1000, 12390=>1000, 12391=>1000, 12392=>1000, 12393=>1000, 12394=>1000, 12395=>1000, 12396=>1000, 12397=>1000, 12398=>1000,
+ 12399=>1000, 12400=>1000, 12401=>1000, 12402=>1000, 12403=>1000, 12404=>1000, 12405=>1000, 12406=>1000, 12407=>1000, 12408=>1000, 12409=>1000, 12410=>1000, 12411=>1000, 12412=>1000, 12413=>1000, 12414=>1000,
+ 12415=>1000, 12416=>1000, 12417=>1000, 12418=>1000, 12419=>1000, 12420=>1000, 12421=>1000, 12422=>1000, 12423=>1000, 12424=>1000, 12425=>1000, 12426=>1000, 12427=>1000, 12428=>1000, 12429=>1000, 12430=>1000,
+ 12431=>1000, 12432=>1000, 12433=>1000, 12434=>1000, 12435=>1000, 12449=>1000, 12450=>1000, 12451=>1000, 12452=>1000, 12453=>1000, 12454=>1000, 12455=>1000, 12456=>1000, 12457=>1000, 12458=>1000, 12459=>1000,
+ 12460=>1000, 12461=>1000, 12462=>1000, 12463=>1000, 12464=>1000, 12465=>1000, 12466=>1000, 12467=>1000, 12468=>1000, 12469=>1000, 12470=>1000, 12471=>1000, 12472=>1000, 12473=>1000, 12474=>1000, 12475=>1000,
+ 12476=>1000, 12477=>1000, 12478=>1000, 12479=>1000, 12480=>1000, 12481=>1000, 12482=>1000, 12483=>1000, 12484=>1000, 12485=>1000, 12486=>1000, 12487=>1000, 12488=>1000, 12489=>1000, 12490=>1000, 12491=>1000,
+ 12492=>1000, 12493=>1000, 12494=>1000, 12495=>1000, 12496=>1000, 12497=>1000, 12498=>1000, 12499=>1000, 12500=>1000, 12501=>1000, 12502=>1000, 12503=>1000, 12504=>1000, 12505=>1000, 12506=>1000, 12507=>1000,
+ 12508=>1000, 12509=>1000, 12510=>1000, 12511=>1000, 12512=>1000, 12513=>1000, 12514=>1000, 12515=>1000, 12516=>1000, 12517=>1000, 12518=>1000, 12519=>1000, 12520=>1000, 12521=>1000, 12522=>1000, 12523=>1000,
+ 12524=>1000, 12525=>1000, 12526=>1000, 12527=>1000, 12528=>1000, 12529=>1000, 12530=>1000, 12531=>1000, 12532=>1000, 12533=>1000, 12534=>1000, 63033=>500, 63034=>500, 63035=>500, 63036=>500, 63037=>500,
+ 63038=>500, 63039=>500, 63040=>500, 63041=>500, 63171=>333, 63196=>500, 64256=>556, 64257=>556, 64258=>556, 64259=>834, 64260=>834, 64262=>723);
+$enc='';
+$diff='';
+$file='FreeSerifBold.z';
+$ctg='FreeSerifBold.ctg.z';
+$originalsize=198992;
+?>
diff --git a/lib/tcpdf/fonts/freeserifbi.php b/lib/tcpdf/fonts/freeserifbi.php
new file mode 100755
index 0000000000..365d0a12c7
--- /dev/null
+++ b/lib/tcpdf/fonts/freeserifbi.php
@@ -0,0 +1,97 @@
+1171,'Descent'=>-488,'CapHeight'=>1171,'Flags'=>96,'FontBBox'=>'[-575 -488 1577 1171]','ItalicAngle'=>-16.3,'StemV'=>120,'MissingWidth'=>600);
+$up=-100;
+$ut=50;
+$cw=array(
+ 13=>333, 32=>250, 33=>389, 34=>555, 35=>500, 36=>500, 37=>833, 38=>778, 39=>278, 40=>333, 41=>333, 42=>500, 43=>570, 44=>250, 45=>333, 46=>250,
+ 47=>278, 48=>500, 49=>500, 50=>500, 51=>500, 52=>500, 53=>500, 54=>500, 55=>500, 56=>500, 57=>500, 58=>333, 59=>333, 60=>570, 61=>570, 62=>570,
+ 63=>500, 64=>832, 65=>667, 66=>667, 67=>667, 68=>744, 69=>670, 70=>656, 71=>722, 72=>778, 73=>393, 74=>500, 75=>664, 76=>609, 77=>896, 78=>722,
+ 79=>722, 80=>614, 81=>722, 82=>672, 83=>556, 84=>611, 85=>722, 86=>667, 87=>889, 88=>667, 89=>611, 90=>611, 91=>333, 92=>278, 93=>333, 94=>570,
+ 95=>500, 96=>333, 97=>500, 98=>500, 99=>444, 100=>500, 101=>444, 102=>333, 103=>500, 104=>556, 105=>278, 106=>278, 107=>500, 108=>278, 109=>778, 110=>556,
+ 111=>500, 112=>500, 113=>500, 114=>389, 115=>389, 116=>278, 117=>556, 118=>444, 119=>667, 120=>500, 121=>444, 122=>389, 123=>348, 124=>220, 125=>348, 126=>570,
+ 8364=>500, 1027=>667, 8218=>333, 1107=>458, 8222=>500, 8230=>1000, 8224=>500, 8225=>500, 710=>333, 8240=>1000, 352=>556, 8249=>333, 338=>944, 1036=>778, 381=>611, 1039=>869,
+ 8216=>333, 8217=>333, 8220=>500, 8221=>500, 8226=>350, 8211=>500, 8212=>1000, 732=>333, 8482=>1000, 353=>389, 8250=>333, 339=>722, 1116=>558, 382=>389, 376=>611, 161=>389,
+ 162=>500, 163=>500, 164=>500, 165=>500, 166=>220, 167=>500, 168=>333, 169=>747, 170=>266, 171=>500, 172=>606, 174=>747, 175=>333, 176=>400, 177=>570, 178=>300,
+ 179=>300, 180=>333, 181=>576, 182=>500, 183=>250, 184=>333, 185=>300, 186=>300, 187=>500, 188=>750, 189=>750, 190=>750, 191=>500, 192=>667, 193=>667, 194=>667,
+ 195=>667, 196=>667, 197=>667, 198=>944, 199=>667, 200=>667, 201=>667, 202=>667, 203=>667, 204=>389, 205=>389, 206=>389, 207=>389, 208=>722, 209=>722, 210=>722,
+ 211=>722, 212=>722, 213=>722, 214=>722, 215=>570, 216=>722, 217=>722, 218=>722, 219=>722, 220=>722, 221=>611, 222=>611, 223=>500, 224=>500, 225=>500, 226=>500,
+ 227=>500, 228=>500, 229=>500, 230=>722, 231=>444, 232=>444, 233=>444, 234=>444, 235=>444, 236=>278, 237=>278, 238=>278, 239=>278, 240=>500, 241=>556, 242=>500,
+ 243=>500, 244=>500, 245=>500, 246=>500, 247=>570, 248=>500, 249=>556, 250=>556, 251=>556, 252=>556, 253=>444, 254=>500, 255=>444, 256=>667, 257=>500, 258=>667,
+ 259=>500, 260=>667, 261=>500, 262=>667, 263=>444, 264=>667, 265=>444, 266=>667, 267=>444, 268=>667, 269=>444, 270=>722, 271=>644, 272=>722, 273=>500, 274=>667,
+ 275=>444, 276=>667, 277=>444, 278=>667, 279=>444, 280=>667, 281=>444, 282=>667, 283=>444, 284=>722, 285=>500, 286=>722, 287=>500, 288=>722, 289=>500, 290=>722,
+ 291=>500, 292=>778, 293=>556, 294=>778, 295=>556, 296=>389, 297=>278, 298=>389, 299=>278, 300=>389, 301=>278, 302=>389, 303=>278, 304=>389, 305=>278, 306=>826,
+ 307=>547, 308=>500, 309=>278, 310=>667, 311=>500, 312=>534, 313=>611, 314=>278, 315=>611, 316=>278, 317=>638, 318=>424, 319=>611, 320=>528, 321=>611, 322=>278,
+ 323=>722, 324=>556, 325=>722, 326=>556, 327=>722, 328=>556, 329=>556, 330=>722, 331=>556, 332=>722, 333=>500, 334=>722, 335=>500, 336=>722, 337=>500, 340=>667,
+ 341=>389, 342=>667, 343=>389, 344=>667, 345=>389, 346=>556, 347=>389, 348=>556, 349=>389, 350=>556, 351=>389, 354=>611, 355=>278, 356=>611, 357=>278, 358=>611,
+ 359=>278, 360=>722, 361=>556, 362=>722, 363=>556, 364=>722, 365=>556, 366=>722, 367=>556, 368=>722, 369=>556, 370=>722, 371=>556, 372=>889, 373=>667, 374=>611,
+ 375=>444, 377=>611, 378=>389, 379=>611, 380=>389, 383=>333, 439=>1000, 452=>1355, 453=>1133, 454=>889, 455=>1109, 456=>887, 457=>556, 458=>1222, 459=>1000, 460=>834,
+ 461=>667, 462=>500, 463=>393, 464=>278, 465=>722, 466=>500, 467=>722, 468=>556, 469=>722, 470=>556, 471=>722, 472=>556, 473=>722, 474=>556, 475=>722, 476=>556,
+ 477=>444, 478=>667, 479=>500, 480=>667, 481=>500, 482=>944, 483=>722, 484=>722, 485=>500, 486=>722, 487=>500, 488=>664, 489=>500, 490=>722, 491=>500, 492=>722,
+ 493=>500, 494=>614, 495=>461, 496=>278, 497=>1355, 498=>1133, 499=>889, 500=>722, 501=>500, 504=>722, 505=>556, 506=>667, 507=>500, 508=>944, 509=>722, 510=>722,
+ 511=>500, 512=>667, 513=>500, 514=>667, 515=>500, 516=>670, 517=>444, 518=>670, 519=>444, 520=>393, 521=>278, 522=>393, 523=>278, 524=>722, 525=>500, 526=>722,
+ 527=>500, 528=>672, 529=>389, 530=>672, 531=>389, 532=>722, 533=>556, 534=>722, 535=>556, 536=>556, 537=>389, 538=>611, 539=>278, 542=>778, 543=>556, 550=>667,
+ 551=>500, 552=>670, 553=>444, 554=>722, 555=>500, 556=>722, 557=>500, 558=>722, 559=>500, 560=>722, 561=>500, 562=>611, 563=>444, 658=>461, 711=>333, 714=>333,
+ 715=>333, 728=>333, 729=>333, 730=>333, 731=>333, 733=>333, 768=>0, 769=>0, 770=>0, 771=>0, 772=>0, 773=>0, 774=>0, 775=>0, 776=>0, 777=>0,
+ 778=>0, 779=>0, 780=>0, 781=>0, 782=>0, 783=>0, 784=>0, 785=>0, 786=>0, 787=>0, 788=>0, 789=>-113, 790=>0, 791=>0, 792=>0, 793=>0,
+ 794=>0, 795=>0, 796=>0, 797=>0, 798=>0, 799=>0, 800=>0, 801=>0, 802=>0, 803=>0, 804=>0, 805=>0, 806=>0, 807=>0, 808=>0, 809=>0,
+ 810=>0, 811=>0, 812=>0, 813=>0, 814=>0, 815=>0, 816=>0, 817=>0, 818=>0, 819=>0, 820=>0, 821=>0, 822=>0, 823=>0, 824=>0, 825=>0,
+ 826=>0, 827=>0, 828=>0, 829=>0, 830=>0, 831=>0, 864=>0, 865=>0, 884=>199, 885=>199, 890=>0, 894=>333, 900=>180, 901=>330, 902=>667, 903=>250,
+ 904=>667, 905=>778, 906=>389, 908=>722, 910=>722, 911=>741, 912=>330, 913=>667, 914=>667, 915=>637, 916=>740, 917=>667, 918=>611, 919=>778, 920=>722, 921=>389,
+ 922=>677, 923=>667, 924=>889, 925=>722, 926=>650, 927=>722, 928=>778, 929=>611, 931=>730, 932=>621, 933=>722, 934=>748, 935=>667, 936=>868, 937=>741, 938=>389,
+ 939=>722, 940=>605, 941=>440, 942=>605, 943=>330, 944=>550, 945=>605, 946=>550, 947=>550, 948=>550, 949=>440, 950=>495, 951=>605, 952=>550, 953=>330, 954=>608,
+ 955=>495, 956=>605, 957=>495, 958=>495, 959=>550, 960=>605, 961=>550, 962=>440, 963=>550, 964=>440, 965=>550, 966=>660, 967=>495, 968=>715, 969=>715, 970=>330,
+ 971=>550, 972=>550, 973=>550, 974=>715, 976=>550, 977=>550, 978=>722, 979=>722, 980=>722, 981=>660, 982=>605, 1024=>667, 1025=>667, 1026=>611, 1028=>722, 1029=>556,
+ 1030=>389, 1031=>389, 1032=>500, 1033=>778, 1034=>778, 1035=>611, 1037=>870, 1038=>722, 1040=>667, 1041=>733, 1042=>667, 1043=>656, 1044=>864, 1045=>667, 1046=>1107, 1047=>564,
+ 1048=>870, 1049=>870, 1050=>775, 1051=>855, 1052=>889, 1053=>778, 1054=>722, 1055=>869, 1056=>611, 1057=>667, 1058=>611, 1059=>766, 1060=>833, 1061=>667, 1062=>869, 1063=>823,
+ 1064=>1208, 1065=>1209, 1066=>796, 1067=>1060, 1068=>712, 1069=>732, 1070=>1195, 1071=>821, 1072=>500, 1073=>500, 1074=>444, 1075=>389, 1076=>534, 1077=>444, 1078=>1051, 1079=>408,
+ 1080=>556, 1081=>556, 1082=>534, 1083=>637, 1084=>859, 1085=>560, 1086=>500, 1087=>556, 1088=>500, 1089=>444, 1090=>778, 1091=>444, 1092=>764, 1093=>500, 1094=>556, 1095=>556,
+ 1096=>806, 1097=>806, 1098=>591, 1099=>744, 1100=>444, 1101=>451, 1102=>765, 1103=>594, 1104=>444, 1105=>444, 1106=>494, 1108=>444, 1109=>389, 1110=>278, 1111=>278, 1112=>278,
+ 1113=>637, 1114=>556, 1115=>494, 1117=>556, 1118=>444, 1119=>556, 1164=>712, 1165=>444, 1166=>611, 1167=>500, 1168=>611, 1169=>458, 1170=>667, 1171=>458, 1172=>667, 1173=>458,
+ 1174=>1107, 1175=>1051, 1176=>657, 1177=>439, 1178=>772, 1179=>534, 1180=>772, 1181=>534, 1182=>772, 1183=>534, 1184=>772, 1185=>534, 1186=>778, 1187=>560, 1188=>778, 1189=>560,
+ 1190=>869, 1191=>556, 1192=>667, 1193=>444, 1194=>667, 1195=>444, 1196=>611, 1197=>494, 1198=>611, 1199=>444, 1200=>611, 1201=>444, 1202=>667, 1203=>500, 1204=>869, 1205=>556,
+ 1206=>823, 1207=>556, 1208=>823, 1209=>556, 1210=>823, 1211=>556, 1212=>620, 1213=>444, 1214=>620, 1215=>444, 1216=>389, 1217=>1107, 1218=>1051, 1219=>772, 1220=>534, 1223=>778,
+ 1224=>560, 1227=>823, 1228=>556, 1232=>667, 1233=>500, 1234=>667, 1235=>500, 1236=>944, 1237=>722, 1238=>667, 1239=>444, 1240=>620, 1241=>444, 1242=>620, 1243=>444, 1244=>1107,
+ 1245=>1051, 1246=>564, 1247=>408, 1248=>657, 1249=>439, 1250=>870, 1251=>556, 1252=>870, 1253=>556, 1254=>722, 1255=>500, 1256=>722, 1257=>500, 1258=>722, 1259=>500, 1260=>732,
+ 1261=>451, 1262=>766, 1263=>444, 1264=>766, 1265=>444, 1266=>766, 1267=>444, 1268=>823, 1269=>556, 1272=>1060, 1273=>744, 1488=>504, 1489=>504, 1490=>313, 1491=>504, 1492=>504,
+ 1493=>285, 1494=>285, 1495=>504, 1496=>504, 1497=>285, 1498=>517, 1499=>504, 1500=>504, 1501=>504, 1502=>504, 1503=>281, 1504=>285, 1505=>504, 1506=>504, 1507=>526, 1508=>504,
+ 1509=>491, 1510=>504, 1511=>549, 1512=>513, 1513=>538, 1514=>504, 7680=>667, 7681=>500, 7682=>667, 7683=>500, 7684=>667, 7685=>500, 7686=>667, 7687=>500, 7688=>667, 7689=>444,
+ 7690=>744, 7691=>500, 7692=>744, 7693=>500, 7694=>744, 7695=>500, 7696=>744, 7697=>500, 7698=>744, 7699=>500, 7700=>667, 7701=>444, 7702=>667, 7703=>444, 7704=>670, 7705=>444,
+ 7706=>670, 7707=>444, 7708=>670, 7709=>444, 7710=>656, 7711=>333, 7712=>722, 7713=>500, 7714=>778, 7715=>556, 7716=>778, 7717=>556, 7718=>778, 7719=>556, 7720=>778, 7721=>556,
+ 7722=>778, 7723=>556, 7724=>393, 7725=>278, 7726=>389, 7727=>278, 7728=>664, 7729=>500, 7730=>664, 7731=>500, 7732=>664, 7733=>500, 7734=>609, 7735=>278, 7736=>609, 7737=>278,
+ 7738=>609, 7739=>278, 7740=>609, 7741=>278, 7742=>896, 7743=>778, 7744=>896, 7745=>778, 7746=>896, 7747=>778, 7748=>722, 7749=>556, 7750=>722, 7751=>556, 7752=>722, 7753=>556,
+ 7754=>722, 7755=>556, 7756=>722, 7757=>500, 7758=>722, 7759=>500, 7760=>722, 7761=>500, 7762=>722, 7763=>500, 7764=>614, 7765=>500, 7766=>614, 7767=>500, 7768=>672, 7769=>389,
+ 7770=>672, 7771=>389, 7772=>672, 7773=>389, 7774=>672, 7775=>389, 7776=>556, 7777=>389, 7778=>556, 7779=>389, 7780=>556, 7781=>389, 7782=>556, 7783=>389, 7784=>556, 7785=>389,
+ 7786=>611, 7787=>278, 7788=>611, 7789=>278, 7790=>611, 7791=>278, 7792=>611, 7793=>278, 7794=>722, 7795=>556, 7796=>722, 7797=>556, 7798=>722, 7799=>556, 7800=>722, 7801=>556,
+ 7802=>722, 7803=>556, 7804=>667, 7805=>444, 7806=>667, 7807=>444, 7808=>889, 7809=>667, 7810=>889, 7811=>667, 7812=>889, 7813=>667, 7814=>889, 7815=>667, 7816=>889, 7817=>667,
+ 7818=>667, 7819=>500, 7820=>667, 7821=>500, 7822=>611, 7823=>444, 7824=>611, 7825=>389, 7826=>611, 7827=>389, 7828=>611, 7829=>389, 7830=>556, 7831=>278, 7832=>667, 7833=>444,
+ 7835=>333, 7840=>667, 7841=>500, 7842=>667, 7843=>500, 7844=>667, 7845=>500, 7846=>667, 7847=>500, 7848=>667, 7849=>500, 7850=>667, 7851=>500, 7852=>667, 7853=>500, 7854=>667,
+ 7855=>500, 7856=>667, 7857=>500, 7858=>667, 7859=>500, 7860=>667, 7861=>500, 7862=>667, 7863=>500, 7864=>670, 7865=>444, 7866=>670, 7867=>444, 7868=>670, 7869=>444, 7870=>667,
+ 7871=>444, 7872=>667, 7873=>444, 7874=>667, 7875=>444, 7876=>667, 7877=>444, 7878=>670, 7879=>444, 7880=>393, 7881=>278, 7882=>393, 7883=>278, 7884=>722, 7885=>500, 7886=>722,
+ 7887=>500, 7888=>722, 7889=>500, 7890=>722, 7891=>500, 7892=>722, 7893=>500, 7894=>722, 7895=>500, 7896=>722, 7897=>500, 7908=>722, 7909=>556, 7910=>722, 7911=>556, 7922=>611,
+ 7923=>444, 7924=>611, 7925=>444, 7926=>611, 7927=>444, 7928=>611, 7929=>444, 7936=>605, 7937=>605, 7938=>605, 7939=>605, 7940=>605, 7941=>605, 7942=>605, 7943=>605, 7944=>667,
+ 7945=>667, 7946=>667, 7947=>667, 7948=>667, 7949=>667, 7950=>667, 7951=>667, 7952=>440, 7953=>440, 7954=>440, 7955=>440, 7956=>440, 7957=>440, 7960=>667, 7961=>667, 7962=>667,
+ 7963=>667, 7964=>667, 7965=>667, 7968=>605, 7969=>605, 7970=>605, 7971=>605, 7972=>605, 7973=>605, 7974=>605, 7975=>605, 7976=>778, 7977=>778, 7978=>778, 7979=>778, 7980=>778,
+ 7981=>778, 7982=>778, 7983=>778, 7984=>330, 7985=>330, 7986=>330, 7987=>330, 7988=>330, 7989=>330, 7990=>330, 7991=>330, 7992=>389, 7993=>389, 7994=>389, 7995=>389, 7996=>389,
+ 7997=>389, 7998=>389, 7999=>389, 8000=>550, 8001=>550, 8002=>550, 8003=>550, 8004=>550, 8005=>550, 8008=>722, 8009=>722, 8010=>722, 8011=>722, 8012=>722, 8013=>722, 8016=>550,
+ 8017=>550, 8018=>550, 8019=>550, 8020=>550, 8021=>550, 8022=>550, 8023=>550, 8025=>722, 8027=>722, 8029=>722, 8031=>722, 8032=>715, 8033=>715, 8034=>715, 8035=>715, 8036=>715,
+ 8037=>715, 8038=>715, 8039=>715, 8040=>741, 8041=>741, 8042=>741, 8043=>741, 8044=>741, 8045=>741, 8046=>741, 8047=>741, 8048=>605, 8049=>605, 8050=>440, 8051=>440, 8052=>605,
+ 8053=>605, 8054=>330, 8055=>330, 8056=>550, 8057=>550, 8058=>550, 8059=>550, 8060=>715, 8061=>715, 8064=>605, 8065=>605, 8066=>605, 8067=>605, 8068=>605, 8069=>605, 8070=>605,
+ 8071=>605, 8072=>667, 8073=>667, 8074=>667, 8075=>667, 8076=>667, 8077=>667, 8078=>667, 8079=>667, 8080=>605, 8081=>605, 8082=>605, 8083=>605, 8084=>605, 8085=>605, 8086=>605,
+ 8087=>605, 8088=>778, 8089=>778, 8090=>778, 8091=>778, 8092=>778, 8093=>778, 8094=>778, 8095=>778, 8096=>715, 8097=>715, 8098=>715, 8099=>715, 8100=>715, 8101=>715, 8102=>715,
+ 8103=>715, 8104=>741, 8105=>741, 8106=>741, 8107=>741, 8108=>741, 8109=>741, 8110=>741, 8111=>741, 8112=>605, 8113=>605, 8114=>605, 8115=>605, 8116=>605, 8118=>605, 8119=>605,
+ 8120=>667, 8121=>667, 8122=>667, 8123=>667, 8124=>667, 8125=>250, 8126=>0, 8127=>500, 8128=>500, 8129=>550, 8130=>605, 8131=>605, 8132=>605, 8134=>605, 8135=>605, 8136=>667,
+ 8137=>667, 8138=>778, 8139=>778, 8140=>778, 8141=>500, 8142=>500, 8143=>500, 8144=>330, 8145=>330, 8146=>330, 8147=>330, 8150=>330, 8151=>330, 8152=>389, 8153=>389, 8154=>389,
+ 8155=>389, 8157=>500, 8158=>500, 8159=>500, 8160=>550, 8161=>550, 8162=>550, 8163=>550, 8164=>550, 8165=>550, 8166=>550, 8167=>550, 8168=>722, 8169=>722, 8170=>722, 8171=>722,
+ 8172=>611, 8173=>550, 8174=>550, 8175=>500, 8178=>715, 8179=>715, 8180=>715, 8182=>715, 8183=>715, 8184=>722, 8185=>722, 8186=>741, 8187=>741, 8188=>741, 8189=>500, 8190=>500,
+ 8219=>333, 8223=>500, 8227=>560, 8241=>1618, 8251=>727, 8253=>733, 8255=>953, 8256=>953, 8257=>338, 8258=>931, 8259=>333, 8260=>167, 8261=>332, 8262=>332, 8352=>667, 8353=>667,
+ 8354=>667, 8355=>667, 8356=>500, 8357=>778, 8358=>722, 8359=>705, 8361=>889, 8470=>981, 8471=>747, 8483=>667, 8494=>551, 8498=>667, 8706=>494, 8710=>612, 8721=>713, 8722=>606,
+ 8730=>549, 8734=>752, 8800=>570, 8804=>570, 8805=>570, 9674=>494, 63033=>500, 63034=>500, 63035=>500, 63036=>500, 63037=>500, 63038=>500, 63039=>500, 63040=>500, 63041=>500, 63166=>278,
+ 63171=>333, 63196=>500, 64256=>583, 64257=>556, 64258=>556, 64259=>824, 64260=>821, 64262=>662);
+$enc='';
+$diff='';
+$file='FreeSerifBoldItalic.z';
+$ctg='FreeSerifBoldItalic.ctg.z';
+$originalsize=126456;
+?>
diff --git a/lib/tcpdf/fonts/freeserifi.php b/lib/tcpdf/fonts/freeserifi.php
new file mode 100755
index 0000000000..52fabc89d1
--- /dev/null
+++ b/lib/tcpdf/fonts/freeserifi.php
@@ -0,0 +1,104 @@
+1122,'Descent'=>-438,'CapHeight'=>1122,'Flags'=>96,'FontBBox'=>'[-674 -438 1558 1122]','ItalicAngle'=>-16.5,'StemV'=>70,'MissingWidth'=>600);
+$up=-100;
+$ut=50;
+$cw=array(
+ 13=>333, 32=>250, 33=>333, 34=>420, 35=>500, 36=>500, 37=>833, 38=>778, 39=>214, 40=>333, 41=>333, 42=>500, 43=>675, 44=>250, 45=>333, 46=>250,
+ 47=>278, 48=>500, 49=>500, 50=>500, 51=>500, 52=>500, 53=>500, 54=>500, 55=>500, 56=>500, 57=>500, 58=>333, 59=>333, 60=>675, 61=>675, 62=>675,
+ 63=>500, 64=>920, 65=>611, 66=>611, 67=>667, 68=>722, 69=>604, 70=>611, 71=>722, 72=>722, 73=>339, 74=>444, 75=>652, 76=>556, 77=>828, 78=>657,
+ 79=>722, 80=>603, 81=>722, 82=>616, 83=>500, 84=>556, 85=>722, 86=>611, 87=>833, 88=>611, 89=>556, 90=>556, 91=>389, 92=>278, 93=>389, 94=>422,
+ 95=>500, 96=>333, 97=>500, 98=>500, 99=>444, 100=>500, 101=>444, 102=>278, 103=>500, 104=>500, 105=>278, 106=>278, 107=>444, 108=>278, 109=>722, 110=>500,
+ 111=>500, 112=>500, 113=>500, 114=>389, 115=>389, 116=>278, 117=>500, 118=>444, 119=>667, 120=>444, 121=>444, 122=>389, 123=>400, 124=>275, 125=>400, 126=>541,
+ 8364=>500, 1027=>556, 8218=>333, 1107=>454, 8222=>556, 8230=>889, 8224=>500, 8225=>500, 710=>333, 8240=>1000, 352=>500, 8249=>333, 338=>944, 1036=>743, 381=>556, 1039=>814,
+ 8216=>333, 8217=>333, 8220=>556, 8221=>556, 8226=>350, 8211=>500, 8212=>889, 732=>333, 8482=>980, 353=>389, 8250=>333, 339=>667, 1116=>491, 382=>389, 376=>556, 161=>389,
+ 162=>500, 163=>500, 164=>500, 165=>500, 166=>275, 167=>500, 168=>333, 169=>760, 170=>276, 171=>500, 172=>675, 174=>760, 175=>333, 176=>400, 177=>675, 178=>300,
+ 179=>300, 180=>333, 181=>500, 182=>523, 183=>250, 184=>333, 185=>300, 186=>310, 187=>500, 188=>750, 189=>750, 190=>750, 191=>500, 192=>611, 193=>611, 194=>611,
+ 195=>611, 196=>611, 197=>611, 198=>889, 199=>667, 200=>611, 201=>611, 202=>611, 203=>611, 204=>333, 205=>333, 206=>333, 207=>333, 208=>722, 209=>667, 210=>722,
+ 211=>722, 212=>722, 213=>722, 214=>722, 215=>675, 216=>722, 217=>722, 218=>722, 219=>722, 220=>722, 221=>556, 222=>611, 223=>500, 224=>500, 225=>500, 226=>500,
+ 227=>500, 228=>500, 229=>500, 230=>667, 231=>444, 232=>444, 233=>444, 234=>444, 235=>444, 236=>278, 237=>278, 238=>278, 239=>278, 240=>500, 241=>500, 242=>500,
+ 243=>500, 244=>500, 245=>500, 246=>500, 247=>675, 248=>500, 249=>500, 250=>500, 251=>500, 252=>500, 253=>444, 254=>500, 255=>444, 256=>611, 257=>500, 258=>611,
+ 259=>500, 260=>611, 261=>500, 262=>667, 263=>444, 264=>667, 265=>444, 266=>667, 267=>444, 268=>667, 269=>444, 270=>722, 271=>500, 272=>722, 273=>500, 274=>611,
+ 275=>444, 276=>611, 277=>444, 278=>611, 279=>444, 280=>611, 281=>444, 282=>611, 283=>444, 284=>722, 285=>500, 286=>722, 287=>500, 288=>722, 289=>500, 290=>722,
+ 291=>500, 292=>722, 293=>500, 294=>722, 295=>500, 296=>333, 297=>278, 298=>333, 299=>278, 300=>333, 301=>278, 302=>333, 303=>278, 304=>333, 305=>278, 306=>707,
+ 307=>553, 308=>444, 309=>278, 310=>667, 311=>444, 312=>491, 313=>556, 314=>278, 315=>556, 316=>278, 317=>556, 318=>278, 319=>556, 320=>528, 321=>556, 322=>278,
+ 323=>667, 324=>500, 325=>667, 326=>500, 327=>667, 328=>500, 329=>500, 330=>667, 331=>500, 332=>722, 333=>500, 334=>722, 335=>500, 336=>722, 337=>500, 340=>611,
+ 341=>389, 342=>611, 343=>389, 344=>611, 345=>389, 346=>500, 347=>389, 348=>500, 349=>389, 350=>500, 351=>389, 354=>556, 355=>278, 356=>556, 357=>278, 358=>556,
+ 359=>278, 360=>722, 361=>500, 362=>722, 363=>500, 364=>722, 365=>500, 366=>722, 367=>500, 368=>722, 369=>500, 370=>722, 371=>500, 372=>833, 373=>667, 374=>556,
+ 375=>444, 377=>556, 378=>389, 379=>556, 380=>389, 383=>278, 399=>1000, 439=>1000, 450=>600, 461=>611, 462=>500, 463=>339, 464=>278, 465=>722, 466=>500, 467=>722,
+ 468=>500, 469=>722, 470=>500, 471=>722, 472=>500, 473=>722, 474=>500, 475=>722, 476=>500, 477=>444, 478=>611, 479=>500, 482=>889, 483=>667, 484=>722, 485=>500,
+ 486=>722, 487=>500, 488=>652, 489=>444, 490=>722, 491=>500, 492=>722, 493=>500, 494=>615, 495=>389, 506=>611, 507=>500, 508=>889, 509=>667, 510=>722, 511=>500,
+ 512=>611, 513=>500, 514=>611, 515=>500, 516=>604, 517=>444, 518=>604, 519=>444, 520=>339, 521=>278, 522=>339, 523=>278, 524=>722, 525=>500, 526=>722, 527=>500,
+ 528=>616, 529=>389, 530=>616, 531=>389, 532=>722, 533=>500, 534=>722, 535=>500, 536=>500, 537=>389, 538=>556, 539=>278, 542=>722, 543=>500, 550=>611, 551=>500,
+ 552=>604, 553=>444, 554=>722, 555=>500, 556=>722, 557=>500, 558=>722, 559=>500, 560=>722, 561=>500, 562=>556, 563=>444, 658=>389, 711=>333, 728=>333, 729=>333,
+ 730=>333, 731=>333, 733=>333, 768=>0, 769=>0, 770=>0, 771=>0, 772=>0, 773=>0, 774=>0, 775=>0, 776=>0, 777=>0, 778=>0, 779=>0, 780=>0,
+ 781=>0, 782=>0, 783=>0, 784=>0, 785=>0, 786=>0, 787=>0, 788=>0, 789=>0, 790=>0, 791=>0, 792=>0, 793=>0, 794=>0, 795=>0, 796=>0,
+ 797=>0, 798=>0, 799=>0, 800=>0, 801=>0, 802=>0, 803=>0, 804=>0, 805=>0, 806=>0, 807=>0, 808=>0, 809=>0, 810=>0, 811=>0, 812=>0,
+ 813=>0, 814=>0, 815=>0, 816=>0, 817=>0, 818=>0, 819=>0, 820=>0, 821=>0, 822=>0, 823=>0, 824=>0, 825=>0, 826=>0, 827=>0, 828=>0,
+ 829=>0, 830=>0, 831=>0, 864=>0, 865=>0, 884=>199, 885=>199, 890=>332, 894=>333, 900=>186, 901=>332, 902=>641, 903=>250, 904=>611, 905=>742, 906=>333,
+ 908=>682, 910=>676, 911=>744, 912=>267, 913=>641, 914=>581, 915=>611, 916=>660, 917=>611, 918=>606, 919=>742, 920=>672, 921=>333, 922=>667, 923=>641, 924=>833,
+ 925=>657, 926=>678, 927=>682, 928=>749, 929=>611, 931=>657, 932=>596, 933=>676, 934=>722, 935=>611, 936=>863, 937=>744, 938=>333, 939=>696, 940=>587, 941=>426,
+ 942=>534, 943=>267, 944=>534, 945=>587, 946=>534, 947=>480, 948=>534, 949=>426, 950=>480, 951=>534, 952=>534, 953=>267, 954=>534, 955=>480, 956=>534, 957=>480,
+ 958=>480, 959=>534, 960=>587, 961=>534, 962=>426, 963=>534, 964=>426, 965=>534, 966=>640, 967=>480, 968=>693, 969=>693, 970=>267, 971=>534, 972=>534, 973=>534,
+ 974=>693, 976=>534, 977=>534, 978=>676, 979=>676, 980=>676, 981=>640, 982=>587, 983=>534, 986=>426, 987=>426, 988=>611, 989=>470, 1024=>611, 1025=>611, 1026=>556,
+ 1028=>667, 1029=>500, 1030=>333, 1031=>333, 1032=>444, 1033=>722, 1034=>722, 1035=>556, 1037=>814, 1038=>730, 1040=>611, 1041=>682, 1042=>611, 1043=>640, 1044=>747, 1045=>611,
+ 1046=>1073, 1047=>508, 1048=>814, 1049=>814, 1050=>729, 1051=>755, 1052=>833, 1053=>722, 1054=>722, 1055=>805, 1056=>611, 1057=>667, 1058=>556, 1059=>730, 1060=>801, 1061=>611,
+ 1062=>807, 1063=>772, 1064=>1063, 1065=>1065, 1066=>731, 1067=>961, 1068=>645, 1069=>671, 1070=>1191, 1071=>746, 1072=>500, 1073=>500, 1074=>429, 1075=>354, 1076=>552, 1077=>444,
+ 1078=>1058, 1079=>363, 1080=>500, 1081=>500, 1082=>491, 1083=>538, 1084=>731, 1085=>500, 1086=>500, 1087=>500, 1088=>500, 1089=>444, 1090=>722, 1091=>444, 1092=>771, 1093=>444,
+ 1094=>500, 1095=>500, 1096=>750, 1097=>750, 1098=>492, 1099=>684, 1100=>420, 1101=>457, 1102=>700, 1103=>560, 1104=>444, 1105=>444, 1106=>484, 1108=>444, 1109=>389, 1110=>278,
+ 1111=>278, 1112=>278, 1113=>538, 1114=>500, 1115=>500, 1117=>500, 1118=>444, 1119=>500, 1164=>645, 1165=>420, 1166=>611, 1167=>500, 1168=>556, 1169=>418, 1170=>556, 1171=>452,
+ 1172=>556, 1173=>452, 1174=>1073, 1175=>1058, 1176=>575, 1177=>391, 1178=>743, 1179=>491, 1180=>743, 1181=>491, 1182=>743, 1183=>491, 1184=>743, 1185=>491, 1186=>722, 1187=>500,
+ 1188=>722, 1189=>500, 1190=>814, 1191=>500, 1192=>667, 1193=>444, 1194=>667, 1195=>444, 1196=>556, 1197=>484, 1198=>556, 1199=>556, 1200=>556, 1201=>556, 1202=>611, 1203=>444,
+ 1204=>807, 1205=>500, 1206=>772, 1207=>500, 1208=>772, 1209=>500, 1210=>772, 1211=>500, 1212=>722, 1213=>444, 1214=>722, 1215=>444, 1216=>333, 1217=>1073, 1218=>1058, 1219=>743,
+ 1220=>491, 1223=>722, 1224=>500, 1227=>772, 1228=>500, 1232=>611, 1233=>500, 1234=>611, 1235=>500, 1236=>889, 1237=>667, 1238=>611, 1239=>444, 1240=>722, 1241=>444, 1242=>444,
+ 1243=>444, 1244=>1073, 1245=>1058, 1246=>575, 1247=>391, 1248=>575, 1249=>391, 1250=>814, 1251=>500, 1252=>814, 1253=>500, 1254=>722, 1255=>500, 1256=>722, 1257=>500, 1258=>722,
+ 1259=>500, 1260=>671, 1261=>457, 1262=>730, 1263=>444, 1264=>730, 1265=>444, 1266=>730, 1267=>444, 1268=>772, 1269=>500, 1272=>1021, 1273=>684, 1457=>0, 1458=>0, 1460=>0,
+ 1461=>0, 1462=>0, 1463=>0, 1464=>0, 1465=>0, 1467=>0, 1472=>126, 1475=>418, 1488=>537, 1489=>537, 1490=>350, 1491=>537, 1492=>537, 1493=>350, 1494=>350, 1495=>537,
+ 1496=>537, 1497=>350, 1498=>537, 1499=>537, 1500=>537, 1501=>537, 1502=>537, 1503=>350, 1504=>350, 1505=>537, 1506=>537, 1507=>537, 1508=>537, 1509=>537, 1510=>537, 1511=>537,
+ 1512=>537, 1513=>537, 1514=>537, 1520=>537, 1521=>537, 1522=>537, 1523=>396, 1524=>396, 3585=>606, 3586=>550, 3587=>622, 3588=>604, 3589=>619, 3590=>674, 3591=>461, 3592=>499,
+ 3593=>613, 3594=>550, 3595=>622, 3596=>817, 3597=>817, 3598=>656, 3599=>656, 3600=>463, 3601=>717, 3602=>820, 3603=>826, 3604=>604, 3605=>616, 3606=>602, 3607=>650, 3608=>514,
+ 3609=>626, 3610=>626, 3611=>626, 3612=>647, 3613=>647, 3614=>676, 3615=>676, 3616=>643, 3617=>616, 3618=>574, 3619=>480, 3620=>602, 3621=>579, 3622=>643, 3623=>483, 3624=>606,
+ 3625=>654, 3626=>579, 3627=>654, 3628=>676, 3629=>584, 3630=>584, 3631=>524, 3632=>444, 3633=>0, 3634=>408, 3635=>408, 3636=>0, 3637=>0, 3638=>0, 3639=>0, 3640=>0,
+ 3641=>0, 3642=>0, 3647=>712, 3648=>320, 3649=>586, 3650=>321, 3651=>317, 3652=>321, 3653=>290, 3654=>599, 3655=>0, 3656=>0, 3657=>0, 3658=>0, 3659=>0, 3660=>0,
+ 3661=>0, 3662=>0, 3663=>780, 3664=>672, 3665=>672, 3666=>672, 3667=>672, 3668=>672, 3669=>672, 3670=>672, 3671=>672, 3672=>672, 3673=>672, 3674=>694, 3675=>938, 7680=>611,
+ 7681=>500, 7682=>611, 7683=>500, 7684=>611, 7685=>500, 7686=>611, 7687=>500, 7688=>667, 7689=>444, 7690=>722, 7691=>500, 7692=>722, 7693=>500, 7694=>722, 7695=>500, 7696=>722,
+ 7697=>500, 7698=>722, 7699=>500, 7700=>611, 7701=>444, 7702=>611, 7703=>444, 7704=>604, 7705=>444, 7706=>604, 7707=>444, 7708=>604, 7709=>444, 7710=>611, 7711=>278, 7712=>722,
+ 7713=>500, 7714=>722, 7715=>500, 7716=>722, 7717=>500, 7718=>722, 7719=>500, 7720=>722, 7721=>500, 7722=>722, 7723=>500, 7724=>339, 7725=>278, 7726=>333, 7727=>278, 7728=>652,
+ 7729=>444, 7730=>652, 7731=>444, 7732=>652, 7733=>444, 7734=>556, 7735=>278, 7736=>556, 7737=>278, 7738=>556, 7739=>278, 7740=>556, 7741=>278, 7742=>828, 7743=>722, 7744=>828,
+ 7745=>722, 7746=>828, 7747=>722, 7748=>657, 7749=>500, 7750=>657, 7751=>500, 7752=>657, 7753=>500, 7754=>657, 7755=>500, 7756=>722, 7757=>500, 7758=>722, 7759=>500, 7760=>722,
+ 7761=>500, 7762=>722, 7763=>500, 7764=>603, 7765=>500, 7766=>603, 7767=>500, 7768=>616, 7769=>389, 7770=>616, 7771=>389, 7772=>616, 7773=>389, 7774=>616, 7775=>389, 7776=>500,
+ 7777=>389, 7778=>500, 7779=>389, 7780=>500, 7781=>389, 7782=>500, 7783=>389, 7784=>500, 7785=>389, 7786=>556, 7787=>278, 7788=>556, 7789=>278, 7790=>556, 7791=>278, 7792=>556,
+ 7793=>278, 7794=>722, 7795=>500, 7796=>722, 7797=>500, 7798=>722, 7799=>500, 7800=>722, 7801=>500, 7802=>722, 7803=>500, 7804=>611, 7805=>444, 7806=>611, 7807=>444, 7808=>833,
+ 7809=>667, 7810=>833, 7811=>667, 7812=>833, 7813=>667, 7814=>833, 7815=>667, 7816=>833, 7817=>667, 7818=>611, 7819=>444, 7820=>611, 7821=>444, 7822=>556, 7823=>444, 7824=>556,
+ 7825=>389, 7826=>556, 7827=>389, 7828=>556, 7829=>389, 7830=>500, 7831=>278, 7832=>667, 7833=>444, 7835=>278, 7840=>611, 7841=>500, 7842=>611, 7843=>500, 7844=>611, 7845=>500,
+ 7846=>611, 7847=>500, 7848=>611, 7849=>500, 7850=>611, 7851=>500, 7852=>611, 7853=>500, 7854=>611, 7855=>500, 7856=>611, 7857=>500, 7858=>611, 7859=>500, 7860=>611, 7861=>500,
+ 7862=>611, 7863=>500, 7864=>604, 7865=>444, 7866=>604, 7867=>444, 7868=>604, 7869=>444, 7870=>611, 7871=>444, 7872=>611, 7873=>444, 7874=>611, 7875=>444, 7876=>611, 7877=>444,
+ 7878=>604, 7879=>444, 7880=>339, 7881=>278, 7882=>339, 7883=>278, 7884=>722, 7885=>500, 7886=>722, 7887=>500, 7888=>722, 7889=>500, 7890=>722, 7891=>500, 7892=>722, 7893=>500,
+ 7894=>722, 7895=>500, 7896=>722, 7897=>500, 7908=>722, 7909=>500, 7910=>722, 7911=>500, 7922=>556, 7923=>444, 7924=>556, 7925=>444, 7926=>556, 7927=>444, 7928=>556, 7929=>444,
+ 7936=>587, 7937=>587, 7938=>587, 7939=>587, 7940=>587, 7941=>587, 7942=>587, 7943=>587, 7944=>641, 7945=>641, 7946=>641, 7947=>641, 7948=>641, 7949=>641, 7950=>641, 7951=>641,
+ 7952=>426, 7953=>426, 7954=>426, 7955=>426, 7956=>426, 7957=>426, 7960=>611, 7961=>611, 7962=>611, 7963=>611, 7964=>611, 7965=>611, 7968=>534, 7969=>534, 7970=>534, 7971=>534,
+ 7972=>534, 7973=>534, 7974=>534, 7975=>534, 7976=>742, 7977=>742, 7978=>742, 7979=>742, 7980=>742, 7981=>742, 7982=>742, 7983=>742, 7984=>267, 7985=>267, 7986=>267, 7987=>267,
+ 7988=>267, 7989=>267, 7990=>267, 7991=>267, 7992=>333, 7993=>333, 7994=>333, 7995=>333, 7996=>333, 7997=>333, 7998=>333, 7999=>333, 8000=>534, 8001=>534, 8002=>534, 8003=>534,
+ 8004=>534, 8005=>534, 8008=>682, 8009=>682, 8010=>682, 8011=>682, 8012=>682, 8013=>682, 8016=>534, 8017=>534, 8018=>534, 8019=>534, 8020=>534, 8021=>534, 8022=>534, 8023=>534,
+ 8025=>676, 8027=>676, 8029=>676, 8031=>676, 8032=>693, 8033=>693, 8034=>693, 8035=>693, 8036=>693, 8037=>693, 8038=>693, 8039=>693, 8040=>744, 8041=>744, 8042=>744, 8043=>744,
+ 8044=>744, 8045=>744, 8046=>744, 8047=>744, 8048=>587, 8049=>587, 8050=>426, 8051=>426, 8052=>534, 8053=>534, 8054=>267, 8055=>267, 8056=>534, 8057=>534, 8058=>534, 8059=>534,
+ 8060=>693, 8061=>693, 8064=>587, 8065=>587, 8066=>587, 8067=>587, 8068=>587, 8069=>587, 8070=>587, 8071=>587, 8072=>641, 8073=>641, 8074=>641, 8075=>641, 8076=>641, 8077=>641,
+ 8078=>641, 8079=>641, 8080=>534, 8081=>534, 8082=>534, 8083=>534, 8084=>534, 8085=>534, 8086=>534, 8087=>534, 8088=>742, 8089=>742, 8090=>742, 8091=>742, 8092=>742, 8093=>742,
+ 8094=>742, 8095=>742, 8096=>693, 8097=>693, 8098=>693, 8099=>693, 8100=>693, 8101=>693, 8102=>693, 8103=>693, 8104=>744, 8105=>744, 8106=>744, 8107=>744, 8108=>744, 8109=>744,
+ 8110=>744, 8111=>744, 8112=>587, 8113=>587, 8114=>587, 8115=>587, 8116=>587, 8118=>587, 8119=>587, 8120=>641, 8121=>641, 8122=>641, 8123=>641, 8124=>641, 8125=>250, 8126=>332,
+ 8127=>500, 8128=>500, 8129=>534, 8130=>534, 8131=>534, 8132=>534, 8134=>534, 8135=>534, 8136=>611, 8137=>611, 8138=>742, 8139=>742, 8140=>742, 8141=>500, 8142=>500, 8143=>500,
+ 8144=>267, 8145=>267, 8146=>267, 8147=>267, 8150=>267, 8151=>267, 8152=>333, 8153=>333, 8154=>333, 8155=>333, 8157=>500, 8158=>500, 8159=>500, 8160=>534, 8161=>534, 8162=>534,
+ 8163=>534, 8164=>534, 8165=>534, 8166=>534, 8167=>534, 8168=>676, 8169=>676, 8170=>676, 8171=>676, 8172=>611, 8173=>534, 8174=>534, 8175=>500, 8178=>693, 8179=>693, 8180=>693,
+ 8182=>693, 8183=>693, 8184=>682, 8185=>682, 8186=>744, 8187=>744, 8188=>744, 8189=>500, 8190=>500, 8219=>333, 8223=>556, 8227=>350, 8228=>250, 8229=>500, 8241=>1601, 8248=>469,
+ 8251=>629, 8252=>666, 8253=>500, 8255=>953, 8256=>953, 8257=>314, 8258=>931, 8259=>333, 8260=>167, 8261=>480, 8262=>480, 8263=>1000, 8264=>833, 8265=>833, 8304=>300, 8308=>300,
+ 8309=>300, 8310=>300, 8311=>300, 8312=>300, 8313=>300, 8320=>300, 8321=>300, 8322=>300, 8323=>300, 8324=>300, 8325=>300, 8326=>300, 8327=>300, 8328=>300, 8329=>300, 8352=>698,
+ 8353=>667, 8354=>667, 8355=>611, 8356=>500, 8357=>722, 8358=>667, 8359=>611, 8361=>833, 8470=>1023, 8471=>760, 8479=>610, 8483=>611, 8494=>533, 8498=>611, 8543=>750, 8706=>494,
+ 8710=>612, 8721=>713, 8722=>675, 8725=>750, 8730=>549, 8734=>677, 8800=>564, 8804=>675, 8805=>675, 9674=>494, 63033=>500, 63034=>500, 63035=>500, 63036=>500, 63037=>500, 63038=>500,
+ 63039=>500, 63040=>500, 63041=>500, 63171=>333, 63196=>500, 64256=>526, 64257=>500, 64258=>500, 64259=>747, 64260=>748, 64262=>665);
+$enc='';
+$diff='';
+$file='FreeSerifItalic.z';
+$ctg='FreeSerifItalic.ctg.z';
+$originalsize=154900;
+?>
diff --git a/lib/tcpdf/html_entity_decode_php4.php b/lib/tcpdf/html_entity_decode_php4.php
new file mode 100755
index 0000000000..5948707f24
--- /dev/null
+++ b/lib/tcpdf/html_entity_decode_php4.php
@@ -0,0 +1,309 @@
+> 0x06) + 0xC0).chr(($num & 0x3F) + 128);
+ } elseif ($num <= 0xFFFF) {
+ return chr(($num >> 0x0C) + 0xE0).chr((($num >> 0x06) & 0x3F) + 0x80).chr(($num & 0x3F) + 0x80);
+ } elseif ($num <= 0x1FFFFF) {
+ return chr(($num >> 0x12) + 0xF0).chr((($num >> 0x0C) & 0x3F) + 0x80).chr((($num >> 0x06) & 0x3F) + 0x80).chr(($num & 0x3F) + 0x80);
+ }
+ return ' '; // default value
+}
+
+/**
+ * Reverse function for htmlentities.
+ * Convert entities in UTF-8.
+ * @param $text_to_convert Text to convert.
+ * @return string converted
+ */
+function html_entity_decode_php4($text_to_convert) {
+ $htmlentities_table = array (
+ "Á" => "".chr(195).chr(129)."",
+ "á" => "".chr(195).chr(161)."",
+ "Â" => "".chr(195).chr(130)."",
+ "â" => "".chr(195).chr(162)."",
+ "´" => "".chr(194).chr(180)."",
+ "Æ" => "".chr(195).chr(134)."",
+ "æ" => "".chr(195).chr(166)."",
+ "À" => "".chr(195).chr(128)."",
+ "à" => "".chr(195).chr(160)."",
+ "ℵ" => "".chr(226).chr(132).chr(181)."",
+ "Α" => "".chr(206).chr(145)."",
+ "α" => "".chr(206).chr(177)."",
+ "&" => "".chr(38)."",
+ "∧" => "".chr(226).chr(136).chr(167)."",
+ "∠" => "".chr(226).chr(136).chr(160)."",
+ "Å" => "".chr(195).chr(133)."",
+ "å" => "".chr(195).chr(165)."",
+ "≈" => "".chr(226).chr(137).chr(136)."",
+ "Ã" => "".chr(195).chr(131)."",
+ "ã" => "".chr(195).chr(163)."",
+ "Ä" => "".chr(195).chr(132)."",
+ "ä" => "".chr(195).chr(164)."",
+ "„" => "".chr(226).chr(128).chr(158)."",
+ "Β" => "".chr(206).chr(146)."",
+ "β" => "".chr(206).chr(178)."",
+ "¦" => "".chr(194).chr(166)."",
+ "•" => "".chr(226).chr(128).chr(162)."",
+ "∩" => "".chr(226).chr(136).chr(169)."",
+ "Ç" => "".chr(195).chr(135)."",
+ "ç" => "".chr(195).chr(167)."",
+ "¸" => "".chr(194).chr(184)."",
+ "¢" => "".chr(194).chr(162)."",
+ "Χ" => "".chr(206).chr(167)."",
+ "χ" => "".chr(207).chr(135)."",
+ "ˆ" => "".chr(203).chr(134)."",
+ "♣" => "".chr(226).chr(153).chr(163)."",
+ "≅" => "".chr(226).chr(137).chr(133)."",
+ "©" => "".chr(194).chr(169)."",
+ "↵" => "".chr(226).chr(134).chr(181)."",
+ "∪" => "".chr(226).chr(136).chr(170)."",
+ "¤" => "".chr(194).chr(164)."",
+ "†" => "".chr(226).chr(128).chr(160)."",
+ "‡" => "".chr(226).chr(128).chr(161)."",
+ "↓" => "".chr(226).chr(134).chr(147)."",
+ "⇓" => "".chr(226).chr(135).chr(147)."",
+ "°" => "".chr(194).chr(176)."",
+ "Δ" => "".chr(206).chr(148)."",
+ "δ" => "".chr(206).chr(180)."",
+ "♦" => "".chr(226).chr(153).chr(166)."",
+ "÷" => "".chr(195).chr(183)."",
+ "É" => "".chr(195).chr(137)."",
+ "é" => "".chr(195).chr(169)."",
+ "Ê" => "".chr(195).chr(138)."",
+ "ê" => "".chr(195).chr(170)."",
+ "È" => "".chr(195).chr(136)."",
+ "è" => "".chr(195).chr(168)."",
+ "∅" => "".chr(226).chr(136).chr(133)."",
+ " " => "".chr(226).chr(128).chr(131)."",
+ " " => "".chr(226).chr(128).chr(130)."",
+ "Ε" => "".chr(206).chr(149)."",
+ "ε" => "".chr(206).chr(181)."",
+ "≡" => "".chr(226).chr(137).chr(161)."",
+ "Η" => "".chr(206).chr(151)."",
+ "η" => "".chr(206).chr(183)."",
+ "Ð" => "".chr(195).chr(144)."",
+ "ð" => "".chr(195).chr(176)."",
+ "Ë" => "".chr(195).chr(139)."",
+ "ë" => "".chr(195).chr(171)."",
+ "€" => "".chr(226).chr(130).chr(172)."",
+ "∃" => "".chr(226).chr(136).chr(131)."",
+ "ƒ" => "".chr(198).chr(146)."",
+ "∀" => "".chr(226).chr(136).chr(128)."",
+ "½" => "".chr(194).chr(189)."",
+ "¼" => "".chr(194).chr(188)."",
+ "¾" => "".chr(194).chr(190)."",
+ "⁄" => "".chr(226).chr(129).chr(132)."",
+ "Γ" => "".chr(206).chr(147)."",
+ "γ" => "".chr(206).chr(179)."",
+ "≥" => "".chr(226).chr(137).chr(165)."",
+ "↔" => "".chr(226).chr(134).chr(148)."",
+ "⇔" => "".chr(226).chr(135).chr(148)."",
+ "♥" => "".chr(226).chr(153).chr(165)."",
+ "…" => "".chr(226).chr(128).chr(166)."",
+ "Í" => "".chr(195).chr(141)."",
+ "í" => "".chr(195).chr(173)."",
+ "Î" => "".chr(195).chr(142)."",
+ "î" => "".chr(195).chr(174)."",
+ "¡" => "".chr(194).chr(161)."",
+ "Ì" => "".chr(195).chr(140)."",
+ "ì" => "".chr(195).chr(172)."",
+ "ℑ" => "".chr(226).chr(132).chr(145)."",
+ "∞" => "".chr(226).chr(136).chr(158)."",
+ "∫" => "".chr(226).chr(136).chr(171)."",
+ "Ι" => "".chr(206).chr(153)."",
+ "ι" => "".chr(206).chr(185)."",
+ "¿" => "".chr(194).chr(191)."",
+ "∈" => "".chr(226).chr(136).chr(136)."",
+ "Ï" => "".chr(195).chr(143)."",
+ "ï" => "".chr(195).chr(175)."",
+ "Κ" => "".chr(206).chr(154)."",
+ "κ" => "".chr(206).chr(186)."",
+ "Λ" => "".chr(206).chr(155)."",
+ "λ" => "".chr(206).chr(187)."",
+ "〈" => "".chr(226).chr(140).chr(169)."",
+ "«" => "".chr(194).chr(171)."",
+ "←" => "".chr(226).chr(134).chr(144)."",
+ "⇐" => "".chr(226).chr(135).chr(144)."",
+ "⌈" => "".chr(226).chr(140).chr(136)."",
+ "“" => "".chr(226).chr(128).chr(156)."",
+ "≤" => "".chr(226).chr(137).chr(164)."",
+ "⌊" => "".chr(226).chr(140).chr(138)."",
+ "∗" => "".chr(226).chr(136).chr(151)."",
+ "◊" => "".chr(226).chr(151).chr(138)."",
+ "" => "".chr(226).chr(128).chr(142)."",
+ "‹" => "".chr(226).chr(128).chr(185)."",
+ "‘" => "".chr(226).chr(128).chr(152)."",
+ "¯" => "".chr(194).chr(175)."",
+ "—" => "".chr(226).chr(128).chr(148)."",
+ "µ" => "".chr(194).chr(181)."",
+ "·" => "".chr(194).chr(183)."",
+ "−" => "".chr(226).chr(136).chr(146)."",
+ "Μ" => "".chr(206).chr(156)."",
+ "μ" => "".chr(206).chr(188)."",
+ "∇" => "".chr(226).chr(136).chr(135)."",
+ " " => "".chr(194).chr(160)."",
+ "–" => "".chr(226).chr(128).chr(147)."",
+ "≠" => "".chr(226).chr(137).chr(160)."",
+ "∋" => "".chr(226).chr(136).chr(139)."",
+ "¬" => "".chr(194).chr(172)."",
+ "∉" => "".chr(226).chr(136).chr(137)."",
+ "⊄" => "".chr(226).chr(138).chr(132)."",
+ "Ñ" => "".chr(195).chr(145)."",
+ "ñ" => "".chr(195).chr(177)."",
+ "Ν" => "".chr(206).chr(157)."",
+ "ν" => "".chr(206).chr(189)."",
+ "Ó" => "".chr(195).chr(147)."",
+ "ó" => "".chr(195).chr(179)."",
+ "Ô" => "".chr(195).chr(148)."",
+ "ô" => "".chr(195).chr(180)."",
+ "Œ" => "".chr(197).chr(146)."",
+ "œ" => "".chr(197).chr(147)."",
+ "Ò" => "".chr(195).chr(146)."",
+ "ò" => "".chr(195).chr(178)."",
+ "‾" => "".chr(226).chr(128).chr(190)."",
+ "Ω" => "".chr(206).chr(169)."",
+ "ω" => "".chr(207).chr(137)."",
+ "Ο" => "".chr(206).chr(159)."",
+ "ο" => "".chr(206).chr(191)."",
+ "⊕" => "".chr(226).chr(138).chr(149)."",
+ "∨" => "".chr(226).chr(136).chr(168)."",
+ "ª" => "".chr(194).chr(170)."",
+ "º" => "".chr(194).chr(186)."",
+ "Ø" => "".chr(195).chr(152)."",
+ "ø" => "".chr(195).chr(184)."",
+ "Õ" => "".chr(195).chr(149)."",
+ "õ" => "".chr(195).chr(181)."",
+ "⊗" => "".chr(226).chr(138).chr(151)."",
+ "Ö" => "".chr(195).chr(150)."",
+ "ö" => "".chr(195).chr(182)."",
+ "¶" => "".chr(194).chr(182)."",
+ "∂" => "".chr(226).chr(136).chr(130)."",
+ "‰" => "".chr(226).chr(128).chr(176)."",
+ "⊥" => "".chr(226).chr(138).chr(165)."",
+ "Φ" => "".chr(206).chr(166)."",
+ "φ" => "".chr(207).chr(134)."",
+ "Π" => "".chr(206).chr(160)."",
+ "π" => "".chr(207).chr(128)."",
+ "ϖ" => "".chr(207).chr(150)."",
+ "±" => "".chr(194).chr(177)."",
+ "£" => "".chr(194).chr(163)."",
+ "′" => "".chr(226).chr(128).chr(178)."",
+ "″" => "".chr(226).chr(128).chr(179)."",
+ "∏" => "".chr(226).chr(136).chr(143)."",
+ "∝" => "".chr(226).chr(136).chr(157)."",
+ "Ψ" => "".chr(206).chr(168)."",
+ "ψ" => "".chr(207).chr(136)."",
+ "√" => "".chr(226).chr(136).chr(154)."",
+ "〉" => "".chr(226).chr(140).chr(170)."",
+ "»" => "".chr(194).chr(187)."",
+ "→" => "".chr(226).chr(134).chr(146)."",
+ "⇒" => "".chr(226).chr(135).chr(146)."",
+ "⌉" => "".chr(226).chr(140).chr(137)."",
+ "”" => "".chr(226).chr(128).chr(157)."",
+ "ℜ" => "".chr(226).chr(132).chr(156)."",
+ "®" => "".chr(194).chr(174)."",
+ "⌋" => "".chr(226).chr(140).chr(139)."",
+ "Ρ" => "".chr(206).chr(161)."",
+ "ρ" => "".chr(207).chr(129)."",
+ "" => "".chr(226).chr(128).chr(143)."",
+ "›" => "".chr(226).chr(128).chr(186)."",
+ "’" => "".chr(226).chr(128).chr(153)."",
+ "‚" => "".chr(226).chr(128).chr(154)."",
+ "Š" => "".chr(197).chr(160)."",
+ "š" => "".chr(197).chr(161)."",
+ "⋅" => "".chr(226).chr(139).chr(133)."",
+ "§" => "".chr(194).chr(167)."",
+ "" => "".chr(194).chr(173)."",
+ "Σ" => "".chr(206).chr(163)."",
+ "σ" => "".chr(207).chr(131)."",
+ "ς" => "".chr(207).chr(130)."",
+ "∼" => "".chr(226).chr(136).chr(188)."",
+ "♠" => "".chr(226).chr(153).chr(160)."",
+ "⊂" => "".chr(226).chr(138).chr(130)."",
+ "⊆" => "".chr(226).chr(138).chr(134)."",
+ "∑" => "".chr(226).chr(136).chr(145)."",
+ "¹" => "".chr(194).chr(185)."",
+ "²" => "".chr(194).chr(178)."",
+ "³" => "".chr(194).chr(179)."",
+ "⊃" => "".chr(226).chr(138).chr(131)."",
+ "⊇" => "".chr(226).chr(138).chr(135)."",
+ "ß" => "".chr(195).chr(159)."",
+ "Τ" => "".chr(206).chr(164)."",
+ "τ" => "".chr(207).chr(132)."",
+ "∴" => "".chr(226).chr(136).chr(180)."",
+ "Θ" => "".chr(206).chr(152)."",
+ "θ" => "".chr(206).chr(184)."",
+ "ϑ" => "".chr(207).chr(145)."",
+ " " => "".chr(226).chr(128).chr(137)."",
+ "Þ" => "".chr(195).chr(158)."",
+ "þ" => "".chr(195).chr(190)."",
+ "˜" => "".chr(203).chr(156)."",
+ "×" => "".chr(195).chr(151)."",
+ "™" => "".chr(226).chr(132).chr(162)."",
+ "Ú" => "".chr(195).chr(154)."",
+ "ú" => "".chr(195).chr(186)."",
+ "↑" => "".chr(226).chr(134).chr(145)."",
+ "⇑" => "".chr(226).chr(135).chr(145)."",
+ "Û" => "".chr(195).chr(155)."",
+ "û" => "".chr(195).chr(187)."",
+ "Ù" => "".chr(195).chr(153)."",
+ "ù" => "".chr(195).chr(185)."",
+ "¨" => "".chr(194).chr(168)."",
+ "ϒ" => "".chr(207).chr(146)."",
+ "Υ" => "".chr(206).chr(165)."",
+ "υ" => "".chr(207).chr(133)."",
+ "Ü" => "".chr(195).chr(156)."",
+ "ü" => "".chr(195).chr(188)."",
+ "℘" => "".chr(226).chr(132).chr(152)."",
+ "Ξ" => "".chr(206).chr(158)."",
+ "ξ" => "".chr(206).chr(190)."",
+ "Ý" => "".chr(195).chr(157)."",
+ "ý" => "".chr(195).chr(189)."",
+ "¥" => "".chr(194).chr(165)."",
+ "ÿ" => "".chr(195).chr(191)."",
+ "Ÿ" => "".chr(197).chr(184)."",
+ "Ζ" => "".chr(206).chr(150)."",
+ "ζ" => "".chr(206).chr(182)."",
+ "" => "".chr(226).chr(128).chr(141)."",
+ "" => "".chr(226).chr(128).chr(140)."",
+ ">" => ">",
+ "<" => "<"
+ );
+ $return_text = strtr($text_to_convert, $htmlentities_table);
+ $return_text = preg_replace('~([0-9a-f]+);~ei', 'code_to_utf8(hexdec("\\1"))', $return_text);
+ $return_text = preg_replace('~([0-9]+);~e', 'code_to_utf8(\\1)', $return_text);
+ return $return_text;
+}
+
+//============================================================+
+// END OF FILE
+//============================================================+
+?>
\ No newline at end of file
diff --git a/lib/tcpdf/images/_blank.png b/lib/tcpdf/images/_blank.png
new file mode 100755
index 0000000000..38f7b2fa56
Binary files /dev/null and b/lib/tcpdf/images/_blank.png differ
diff --git a/lib/tcpdf/images/logo_example.png b/lib/tcpdf/images/logo_example.png
new file mode 100755
index 0000000000..13799452be
Binary files /dev/null and b/lib/tcpdf/images/logo_example.png differ
diff --git a/lib/tcpdf/tcpdf.php b/lib/tcpdf/tcpdf.php
new file mode 100755
index 0000000000..17aa548d93
--- /dev/null
+++ b/lib/tcpdf/tcpdf.php
@@ -0,0 +1,4137 @@
+
+ * TCPDF project (http://tcpdf.sourceforge.net) is based on the public Domain FPDF class by Olivier Plathey (http://www.fpdf.org).
+ * TCPDF main changes from FPDF are:
+ * - PHP4 porting
+ * - UTF-8 Unicode support
+ * - source code clean up
+ * - code style and formatting
+ * - source code documentation using phpDocumentor (www.phpdoc.org)
+ * - All ISO page formats were included
+ * - image scale factor
+ * - includes methods to parse and printsome XHTML code, supporting the following elements: h1, h2, h3, h4, h5, h6, b, u, i, a, img, p, br, strong, em, font, blockquote, li, ul, ol, hr, td, th, tr, table, sup, sub, small;
+ * - includes a method to print various barcode formats using an improved version of "Generic Barcode Render Class" by Karim Mribti (http://www.mribti.com/barcode/) (require GD library: http://www.boutell.com/gd/)
+ * - defines standard Header() and Footer() methods.
+ *
+ * Tools to encode your unicode fonts are on fonts/ttf2ufm directory.
+ * @name TCPDF
+ * @package com.tecnick.tcpdf
+ * @abstract Class for generating PDF files on-the-fly without requiring external extensions.
+ * @author Nicola Asuni
+ * @copyright 2004-2006 Tecnick.com S.r.l (www.tecnick.com) Via Ugo Foscolo n.19 - 09045 Quartu Sant'Elena (CA) - ITALY - www.tecnick.com - info@tecnick.com
+ * @link http://tcpdf.sourceforge.net
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL
+ @version 1.53.0.TC023_PHP4
+ */
+
+if(!class_exists('TCPDF')) {
+ /**
+ * define default PDF document producer
+ */
+ define('PDF_PRODUCER','TCPDF 1.53.0.TC023_PHP4 (http://tcpdf.sourceforge.net)');
+
+ /**
+ * This is a PHP4 class for generating PDF files on-the-fly without requiring external extensions.
+ * This class is an extension and improvement of the FPDF class by Olivier Plathey (http://www.fpdf.org).
+ * This version contains some changes: [porting to PHP4, support for UTF-8 Unicode, code style and formatting, php documentation (www.phpdoc.org), ISO page formats, minor improvements, image scale factor]
+ * TCPDF project (http://tcpdf.sourceforge.net) is based on the public Domain FPDF class by Olivier Plathey (http://www.fpdf.org).
+ * To add your own TTF fonts please read /fonts/README.TXT
+ * @name TCPDF
+ * @package com.tecnick.tcpdf
+ * @version 1.53.0.TC023
+ * @author Nicola Asuni
+ * @link http://tcpdf.sourceforge.net
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL
+ */
+ class TCPDF {
+ //var properties
+
+ /**
+ * @var current page number
+ * @access protected
+ */
+ var $page;
+
+ /**
+ * @var current object number
+ * @access protected
+ */
+ var $n;
+
+ /**
+ * @var array of object offsets
+ * @access protected
+ */
+ var $offsets;
+
+ /**
+ * @var buffer holding in-memory PDF
+ * @access protected
+ */
+ var $buffer;
+
+ /**
+ * @var array containing pages
+ * @access protected
+ */
+ var $pages;
+
+ /**
+ * @var current document state
+ * @access protected
+ */
+ var $state;
+
+ /**
+ * @var compression flag
+ * @access protected
+ */
+ var $compress;
+
+ /**
+ * @var default orientation
+ * @access protected
+ */
+ var $DefOrientation;
+
+ /**
+ * @var current orientation
+ * @access protected
+ */
+ var $CurOrientation;
+
+ /**
+ * @var array indicating orientation changes
+ * @access protected
+ */
+ var $OrientationChanges;
+
+ /**
+ * @var scale factor (number of points in user unit)
+ * @access protected
+ */
+ var $k;
+
+ /**
+ * @var width of page format in points
+ * @access protected
+ */
+ var $fwPt;
+
+ /**
+ * @var height of page format in points
+ * @access protected
+ */
+ var $fhPt;
+
+ /**
+ * @var width of page format in user unit
+ * @access protected
+ */
+ var $fw;
+
+ /**
+ * @var height of page format in user unit
+ * @access protected
+ */
+ var $fh;
+
+ /**
+ * @var current width of page in points
+ * @access protected
+ */
+ var $wPt;
+
+ /**
+ * @var current height of page in points
+ * @access protected
+ */
+ var $hPt;
+
+ /**
+ * @var current width of page in user unit
+ * @access protected
+ */
+ var $w;
+
+ /**
+ * @var current height of page in user unit
+ * @access protected
+ */
+ var $h;
+
+ /**
+ * @var left margin
+ * @access protected
+ */
+ var $lMargin;
+
+ /**
+ * @var top margin
+ * @access protected
+ */
+ var $tMargin;
+
+ /**
+ * @var right margin
+ * @access protected
+ */
+ var $rMargin;
+
+ /**
+ * @var page break margin
+ * @access protected
+ */
+ var $bMargin;
+
+ /**
+ * @var cell margin
+ * @access protected
+ */
+ var $cMargin;
+
+ /**
+ * @var current horizontal position in user unit for cell positioning
+ * @access protected
+ */
+ var $x;
+
+ /**
+ * @var current vertical position in user unit for cell positioning
+ * @access protected
+ */
+ var $y;
+
+ /**
+ * @var height of last cell printed
+ * @access protected
+ */
+ var $lasth;
+
+ /**
+ * @var line width in user unit
+ * @access protected
+ */
+ var $LineWidth;
+
+ /**
+ * @var array of standard font names
+ * @access protected
+ */
+ var $CoreFonts;
+
+ /**
+ * @var array of used fonts
+ * @access protected
+ */
+ var $fonts;
+
+ /**
+ * @var array of font files
+ * @access protected
+ */
+ var $FontFiles;
+
+ /**
+ * @var array of encoding differences
+ * @access protected
+ */
+ var $diffs;
+
+ /**
+ * @var array of used images
+ * @access protected
+ */
+ var $images;
+
+ /**
+ * @var array of links in pages
+ * @access protected
+ */
+ var $PageLinks;
+
+ /**
+ * @var array of internal links
+ * @access protected
+ */
+ var $links;
+
+ /**
+ * @var current font family
+ * @access protected
+ */
+ var $FontFamily;
+
+ /**
+ * @var current font style
+ * @access protected
+ */
+ var $FontStyle;
+
+ /**
+ * @var underlining flag
+ * @access protected
+ */
+ var $underline;
+
+ /**
+ * @var current font info
+ * @access protected
+ */
+ var $CurrentFont;
+
+ /**
+ * @var current font size in points
+ * @access protected
+ */
+ var $FontSizePt;
+
+ /**
+ * @var current font size in user unit
+ * @access protected
+ */
+ var $FontSize;
+
+ /**
+ * @var commands for drawing color
+ * @access protected
+ */
+ var $DrawColor;
+
+ /**
+ * @var commands for filling color
+ * @access protected
+ */
+ var $FillColor;
+
+ /**
+ * @var commands for text color
+ * @access protected
+ */
+ var $TextColor;
+
+ /**
+ * @var indicates whether fill and text colors are different
+ * @access protected
+ */
+ var $ColorFlag;
+
+ /**
+ * @var word spacing
+ * @access protected
+ */
+ var $ws;
+
+ /**
+ * @var automatic page breaking
+ * @access protected
+ */
+ var $AutoPageBreak;
+
+ /**
+ * @var threshold used to trigger page breaks
+ * @access protected
+ */
+ var $PageBreakTrigger;
+
+ /**
+ * @var flag set when processing footer
+ * @access protected
+ */
+ var $InFooter;
+
+ /**
+ * @var zoom display mode
+ * @access protected
+ */
+ var $ZoomMode;
+
+ /**
+ * @var layout display mode
+ * @access protected
+ */
+ var $LayoutMode;
+
+ /**
+ * @var title
+ * @access protected
+ */
+ var $title;
+
+ /**
+ * @var subject
+ * @access protected
+ */
+ var $subject;
+
+ /**
+ * @var author
+ * @access protected
+ */
+ var $author;
+
+ /**
+ * @var keywords
+ * @access protected
+ */
+ var $keywords;
+
+ /**
+ * @var creator
+ * @access protected
+ */
+ var $creator;
+
+ /**
+ * @var alias for total number of pages
+ * @access protected
+ */
+ var $AliasNbPages;
+
+ /**
+ * @var right-bottom corner X coordinate of inserted image
+ * @since 2002-07-31
+ * @author Nicola Asuni
+ * @access protected
+ */
+ var $img_rb_x;
+
+ /**
+ * @var right-bottom corner Y coordinate of inserted image
+ * @since 2002-07-31
+ * @author Nicola Asuni
+ * @access protected
+ */
+ var $img_rb_y;
+
+ /**
+ * @var image scale factor
+ * @since 2004-06-14
+ * @author Nicola Asuni
+ * @access protected
+ */
+ var $imgscale = 1;
+
+ /**
+ * @var boolean set to true when the input text is unicode (require unicode fonts)
+ * @since 2005-01-02
+ * @author Nicola Asuni
+ * @access protected
+ */
+ var $isunicode = false;
+
+ /**
+ * @var PDF version
+ * @since 1.5.3
+ * @access protected
+ */
+ var $PDFVersion = "1.3";
+
+
+ // ----------------------
+
+ /**
+ * @var Minimum distance between header and top page margin.
+ * @access private
+ */
+ var $header_margin;
+
+ /**
+ * @var Minimum distance between footer and bottom page margin.
+ * @access private
+ */
+ var $footer_margin;
+
+ /**
+ * @var original left margin value
+ * @access private
+ * @since 1.53.0.TC013
+ */
+ var $original_lMargin;
+
+ /**
+ * @var original right margin value
+ * @access private
+ * @since 1.53.0.TC013
+ */
+ var $original_rMargin;
+
+ /**
+ * @var Header font.
+ * @access private
+ */
+ var $header_font;
+
+ /**
+ * @var Footer font.
+ * @access private
+ */
+ var $footer_font;
+
+ /**
+ * @var Language templates.
+ * @access private
+ */
+ var $l;
+
+ /**
+ * @var Barcode to print on page footer (only if set).
+ * @access private
+ */
+ var $barcode = false;
+
+ /**
+ * @var If true prints header
+ * @access private
+ */
+ var $print_header = true;
+
+ /**
+ * @var If true prints footer.
+ * @access private
+ */
+ var $print_footer = true;
+
+ /**
+ * @var Header width (0 = full page width).
+ * @access private
+ */
+ var $header_width = 0;
+
+ /**
+ * @var Header image logo.
+ * @access private
+ */
+ var $header_logo = "";
+
+ /**
+ * @var Header image logo width in mm.
+ * @access private
+ */
+ var $header_logo_width = 30;
+
+ /**
+ * @var String to print as title on document header.
+ * @access private
+ */
+ var $header_title = "";
+
+ /**
+ * @var String to print on document header.
+ * @access private
+ */
+ var $header_string = "";
+
+ /**
+ * @var Default number of columns for html table.
+ * @access private
+ */
+ var $default_table_columns = 4;
+
+
+ // variables for html parser
+
+ /**
+ * @var HTML PARSER: store current link.
+ * @access private
+ */
+ var $HREF;
+
+ /**
+ * @var HTML PARSER: store font list.
+ * @access private
+ */
+ var $fontList;
+
+ /**
+ * @var HTML PARSER: true when font attribute is set.
+ * @access private
+ */
+ var $issetfont;
+
+ /**
+ * @var HTML PARSER: true when color attribute is set.
+ * @access private
+ */
+ var $issetcolor;
+
+ /**
+ * @var HTML PARSER: true in case of ordered list (OL), false otherwise.
+ * @access private
+ */
+ var $listordered = false;
+
+ /**
+ * @var HTML PARSER: count list items.
+ * @access private
+ */
+ var $listcount = 0;
+
+ /**
+ * @var HTML PARSER: size of table border.
+ * @access private
+ */
+ var $tableborder = 0;
+
+ /**
+ * @var HTML PARSER: true at the beginning of table.
+ * @access private
+ */
+ var $tdbegin = false;
+
+ /**
+ * @var HTML PARSER: table width.
+ * @access private
+ */
+ var $tdwidth = 0;
+
+ /**
+ * @var HTML PARSER: table height.
+ * @access private
+ */
+ var $tdheight = 0;
+
+ /**
+ * @var HTML PARSER: table align.
+ * @access private
+ */
+ var $tdalign = "L";
+
+ /**
+ * @var HTML PARSER: table background color.
+ * @access private
+ */
+ var $tdbgcolor = false;
+
+ /**
+ * @var Store temporary font size in points.
+ * @access private
+ */
+ var $tempfontsize = 10;
+
+ /**
+ * @var Bold font style status.
+ * @access private
+ */
+ var $b;
+
+ /**
+ * @var Underlined font style status.
+ * @access private
+ */
+ var $u;
+
+ /**
+ * @var Italic font style status.
+ * @access private
+ */
+ var $i;
+
+ /**
+ * @var spacer for LI tags.
+ * @access private
+ */
+ var $lispacer = "";
+
+ /**
+ * @var default encoding
+ * @access private
+ * @since 1.53.0.TC010
+ */
+ var $encoding = "UTF-8";
+
+ /**
+ * @var PHP internal encoding
+ * @access private
+ * @since 1.53.0.TC016
+ */
+ var $internal_encoding;
+
+ /**
+ * @var store previous fill color as RGB array
+ * @access private
+ * @since 1.53.0.TC017
+ */
+ var $prevFillColor = array(255,255,255);
+
+ /**
+ * @var store previous text color as RGB array
+ * @access private
+ * @since 1.53.0.TC017
+ */
+ var $prevTextColor = array(0,0,0);
+
+ /**
+ * @var store previous font family
+ * @access private
+ * @since 1.53.0.TC017
+ */
+ var $prevFontFamily;
+
+ /**
+ * @var store previous font style
+ * @access private
+ * @since 1.53.0.TC017
+ */
+ var $prevFontStyle;
+
+ //------------------------------------------------------------
+ // var methods
+ //------------------------------------------------------------
+
+ /**
+ * 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).
+ * @since 1.0
+ * @param string $orientation page orientation. Possible values are (case insensitive):- P or Portrait (default)
- L or Landscape
+ * @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 following values (case insensitive) or a custom format in the form of a two-element array containing the width and the height (expressed in the unit given by unit).- 4A0
- 2A0
- A0
- A1
- A2
- A3
- A4 (default)
- A5
- A6
- A7
- A8
- A9
- A10
- B0
- B1
- B2
- B3
- B4
- B5
- B6
- B7
- B8
- B9
- B10
- C0
- C1
- C2
- C3
- C4
- C5
- C6
- C7
- C8
- C9
- C10
- RA0
- RA1
- RA2
- RA3
- RA4
- SRA0
- SRA1
- SRA2
- SRA3
- SRA4
- LETTER
- LEGAL
- EXECUTIVE
- FOLIO
+ * @param boolean $unicode TRUE means that the input text is unicode (default = true)
+ * @param String $encoding charset encoding; default is UTF-8
+ */
+ function TCPDF($orientation='P', $unit='mm', $format='A4', $unicode=true, $encoding="UTF-8") {
+
+ /* Set internal character encoding to ASCII */
+ if (function_exists("mb_internal_encoding") AND mb_internal_encoding()) {
+ $this->internal_encoding = mb_internal_encoding();
+ mb_internal_encoding("ASCII");
+ }
+
+ //Some checks
+ $this->_dochecks();
+ //Initialization of properties
+ $this->isunicode=$unicode;
+ $this->page=0;
+ $this->n=2;
+ $this->buffer='';
+ $this->pages=array();
+ $this->OrientationChanges=array();
+ $this->state=0;
+ $this->fonts=array();
+ $this->FontFiles=array();
+ $this->diffs=array();
+ $this->images=array();
+ $this->links=array();
+ $this->InFooter=false;
+ $this->lasth=0;
+ $this->FontFamily='';
+ $this->FontStyle='';
+ $this->FontSizePt=12;
+ $this->underline=false;
+ $this->DrawColor='0 G';
+ $this->FillColor='0 g';
+ $this->TextColor='0 g';
+ $this->ColorFlag=false;
+ $this->ws=0;
+ //Standard Unicode fonts
+ $this->CoreFonts=array(
+ 'courier'=>'Courier',
+ 'courierB'=>'Courier-Bold',
+ 'courierI'=>'Courier-Oblique',
+ 'courierBI'=>'Courier-BoldOblique',
+ 'helvetica'=>'Helvetica',
+ 'helveticaB'=>'Helvetica-Bold',
+ 'helveticaI'=>'Helvetica-Oblique',
+ 'helveticaBI'=>'Helvetica-BoldOblique',
+ 'times'=>'Times-Roman',
+ 'timesB'=>'Times-Bold',
+ 'timesI'=>'Times-Italic',
+ 'timesBI'=>'Times-BoldItalic',
+ 'symbol'=>'Symbol',
+ 'zapfdingbats'=>'ZapfDingbats'
+ );
+
+ //Scale factor
+ // 2003-06-11 - Nicola Asuni : changed if/else with switch statement
+ switch (strtolower($unit)){
+ case 'pt': {$this->k=1; break;}
+ case 'mm': {$this->k=72/25.4; break;}
+ case 'cm': {$this->k=72/2.54; break;}
+ case 'in': {$this->k=72; break;}
+ default : {$this->Error('Incorrect unit: '.$unit); break;}
+ }
+
+ //Page format
+ if(is_string($format)) {
+ // 2002-07-24 - Nicola Asuni (info@tecnick.com)
+ // Added new page formats (45 standard ISO paper formats and 4 american common formats).
+ // Paper cordinates are calculated in this way: (inches * 72) where (1 inch = 2.54 cm)
+ switch (strtoupper($format)){
+ case '4A0': {$format = array(4767.87,6740.79); break;}
+ case '2A0': {$format = array(3370.39,4767.87); break;}
+ case 'A0': {$format = array(2383.94,3370.39); break;}
+ case 'A1': {$format = array(1683.78,2383.94); break;}
+ case 'A2': {$format = array(1190.55,1683.78); break;}
+ case 'A3': {$format = array(841.89,1190.55); break;}
+ case 'A4': default: {$format = array(595.28,841.89); break;}
+ case 'A5': {$format = array(419.53,595.28); break;}
+ case 'A6': {$format = array(297.64,419.53); break;}
+ case 'A7': {$format = array(209.76,297.64); break;}
+ case 'A8': {$format = array(147.40,209.76); break;}
+ case 'A9': {$format = array(104.88,147.40); break;}
+ case 'A10': {$format = array(73.70,104.88); break;}
+ case 'B0': {$format = array(2834.65,4008.19); break;}
+ case 'B1': {$format = array(2004.09,2834.65); break;}
+ case 'B2': {$format = array(1417.32,2004.09); break;}
+ case 'B3': {$format = array(1000.63,1417.32); break;}
+ case 'B4': {$format = array(708.66,1000.63); break;}
+ case 'B5': {$format = array(498.90,708.66); break;}
+ case 'B6': {$format = array(354.33,498.90); break;}
+ case 'B7': {$format = array(249.45,354.33); break;}
+ case 'B8': {$format = array(175.75,249.45); break;}
+ case 'B9': {$format = array(124.72,175.75); break;}
+ case 'B10': {$format = array(87.87,124.72); break;}
+ case 'C0': {$format = array(2599.37,3676.54); break;}
+ case 'C1': {$format = array(1836.85,2599.37); break;}
+ case 'C2': {$format = array(1298.27,1836.85); break;}
+ case 'C3': {$format = array(918.43,1298.27); break;}
+ case 'C4': {$format = array(649.13,918.43); break;}
+ case 'C5': {$format = array(459.21,649.13); break;}
+ case 'C6': {$format = array(323.15,459.21); break;}
+ case 'C7': {$format = array(229.61,323.15); break;}
+ case 'C8': {$format = array(161.57,229.61); break;}
+ case 'C9': {$format = array(113.39,161.57); break;}
+ case 'C10': {$format = array(79.37,113.39); break;}
+ case 'RA0': {$format = array(2437.80,3458.27); break;}
+ case 'RA1': {$format = array(1729.13,2437.80); break;}
+ case 'RA2': {$format = array(1218.90,1729.13); break;}
+ case 'RA3': {$format = array(864.57,1218.90); break;}
+ case 'RA4': {$format = array(609.45,864.57); break;}
+ case 'SRA0': {$format = array(2551.18,3628.35); break;}
+ case 'SRA1': {$format = array(1814.17,2551.18); break;}
+ case 'SRA2': {$format = array(1275.59,1814.17); break;}
+ case 'SRA3': {$format = array(907.09,1275.59); break;}
+ case 'SRA4': {$format = array(637.80,907.09); break;}
+ case 'LETTER': {$format = array(612.00,792.00); break;}
+ case 'LEGAL': {$format = array(612.00,1008.00); break;}
+ case 'EXECUTIVE': {$format = array(521.86,756.00); break;}
+ case 'FOLIO': {$format = array(612.00,936.00); break;}
+ // default: {$this->Error('Unknown page format: '.$format); break;}
+ // END CHANGES Nicola Asuni
+ }
+ $this->fwPt=$format[0];
+ $this->fhPt=$format[1];
+ }
+ else {
+ $this->fwPt=$format[0]*$this->k;
+ $this->fhPt=$format[1]*$this->k;
+ }
+
+ $this->fw=$this->fwPt/$this->k;
+ $this->fh=$this->fhPt/$this->k;
+
+ //Page orientation
+ $orientation=strtolower($orientation);
+ if($orientation=='p' or $orientation=='portrait') {
+ $this->DefOrientation='P';
+ $this->wPt=$this->fwPt;
+ $this->hPt=$this->fhPt;
+ }
+ elseif($orientation=='l' or $orientation=='landscape') {
+ $this->DefOrientation='L';
+ $this->wPt=$this->fhPt;
+ $this->hPt=$this->fwPt;
+ }
+ else {
+ $this->Error('Incorrect orientation: '.$orientation);
+ }
+
+ $this->CurOrientation=$this->DefOrientation;
+ $this->w=$this->wPt/$this->k;
+ $this->h=$this->hPt/$this->k;
+ //Page margins (1 cm)
+ $margin=28.35/$this->k;
+ $this->SetMargins($margin,$margin);
+ //Interior cell margin (1 mm)
+ $this->cMargin=$margin/10;
+ //Line width (0.2 mm)
+ $this->LineWidth=.567/$this->k;
+ //Automatic page break
+ $this->SetAutoPageBreak(true,2*$margin);
+ //Full width display mode
+ $this->SetDisplayMode('fullwidth');
+ //Compression
+ $this->SetCompression(true);
+ //Set default PDF version number
+ $this->PDFVersion = "1.3";
+
+ $this->encoding = $encoding;
+ $this->b = 0;
+ $this->i = 0;
+ $this->u = 0;
+ $this->HREF = '';
+ $this->fontlist = array("arial", "times", "courier", "helvetica", "symbol");
+ $this->issetfont = false;
+ $this->issetcolor = false;
+ $this->tableborder = 0;
+ $this->tdbegin = false;
+ $this->tdwidth= 0;
+ $this->tdheight = 0;
+ $this->tdalign = "L";
+ $this->tdbgcolor = false;
+
+ $this->SetFillColor(200, 200, 200, true);
+ $this->SetTextColor(0, 0, 0, true);
+ }
+
+ /**
+ * Set the image scale.
+ * @param float $scale image scale.
+ * @author Nicola Asuni
+ * @since 1.5.2
+ */
+ function setImageScale($scale) {
+ $this->imgscale=$scale;
+ }
+
+ /**
+ * Returns the image scale.
+ * @return float image scale.
+ * @author Nicola Asuni
+ * @since 1.5.2
+ */
+ function getImageScale() {
+ return $this->imgscale;
+ }
+
+ /**
+ * Returns the page width in units.
+ * @return int page width.
+ * @author Nicola Asuni
+ * @since 1.5.2
+ */
+ function getPageWidth() {
+ return $this->w;
+ }
+
+ /**
+ * Returns the page height in units.
+ * @return int page height.
+ * @author Nicola Asuni
+ * @since 1.5.2
+ */
+ function getPageHeight() {
+ return $this->fh;
+ }
+
+ /**
+ * Returns the page break margin.
+ * @return int page break margin.
+ * @author Nicola Asuni
+ * @since 1.5.2
+ */
+ function getBreakMargin() {
+ return $this->bMargin;
+ }
+
+ /**
+ * Returns the scale factor (number of points in user unit).
+ * @return int scale factor.
+ * @author Nicola Asuni
+ * @since 1.5.2
+ */
+ function getScaleFactor() {
+ return $this->k;
+ }
+
+ /**
+ * Defines the left, top and right margins. By default, they equal 1 cm. Call this method to change them.
+ * @param float $left Left margin.
+ * @param float $top Top margin.
+ * @param float $right Right margin. Default value is the left one.
+ * @since 1.0
+ * @see SetLeftMargin(), SetTopMargin(), SetRightMargin(), SetAutoPageBreak()
+ */
+ function SetMargins($left, $top, $right=-1) {
+ //Set left, top and right margins
+ $this->lMargin=$left;
+ $this->tMargin=$top;
+ if($right==-1) {
+ $right=$left;
+ }
+ $this->rMargin=$right;
+ }
+
+ /**
+ * 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.
+ * @since 1.4
+ * @see SetTopMargin(), SetRightMargin(), SetAutoPageBreak(), SetMargins()
+ */
+ function SetLeftMargin($margin) {
+ //Set left margin
+ $this->lMargin=$margin;
+ if(($this->page>0) and ($this->x<$margin)) {
+ $this->x=$margin;
+ }
+ }
+
+ /**
+ * Defines the top margin. The method can be called before creating the first page.
+ * @param float $margin The margin.
+ * @since 1.5
+ * @see SetLeftMargin(), SetRightMargin(), SetAutoPageBreak(), SetMargins()
+ */
+ function SetTopMargin($margin) {
+ //Set top margin
+ $this->tMargin=$margin;
+ }
+
+ /**
+ * Defines the right margin. The method can be called before creating the first page.
+ * @param float $margin The margin.
+ * @since 1.5
+ * @see SetLeftMargin(), SetTopMargin(), SetAutoPageBreak(), SetMargins()
+ */
+ function SetRightMargin($margin) {
+ //Set right margin
+ $this->rMargin=$margin;
+ }
+
+ /**
+ * 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.
+ * @since 1.0
+ * @see Cell(), MultiCell(), AcceptPageBreak()
+ */
+ function SetAutoPageBreak($auto, $margin=0) {
+ //Set auto page break mode and triggering margin
+ $this->AutoPageBreak=$auto;
+ $this->bMargin=$margin;
+ $this->PageBreakTrigger=$this->h-$margin;
+ }
+
+ /**
+ * Defines the way the document is to be displayed by the viewer. The zoom level can be set: pages can be displayed entirely on screen, occupy the full width of the window, use real size, be scaled by a specific zooming factor or use viewer default (configured in the Preferences menu of Acrobat). The page layout can be specified too: single at once, continuous display, two columns or viewer default. By default, documents use the full width mode with continuous display.
+ * @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:- single: displays one page at once
- continuous: displays pages continuously (default)
- two: displays two pages on two columns
- default: uses viewer default mode
+ * @since 1.2
+ */
+ function SetDisplayMode($zoom, $layout='continuous') {
+ //Set display mode in viewer
+ if($zoom=='fullpage' or $zoom=='fullwidth' or $zoom=='real' or $zoom=='default' or !is_string($zoom)) {
+ $this->ZoomMode=$zoom;
+ }
+ else {
+ $this->Error('Incorrect zoom display mode: '.$zoom);
+ }
+ if($layout=='single' or $layout=='continuous' or $layout=='two' or $layout=='default') {
+ $this->LayoutMode=$layout;
+ }
+ else {
+ $this->Error('Incorrect layout display mode: '.$layout);
+ }
+ }
+
+ /**
+ * 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.
+ * @since 1.4
+ */
+ function SetCompression($compress) {
+ //Set page compression
+ if(function_exists('gzcompress')) {
+ $this->compress=$compress;
+ }
+ else {
+ $this->compress=false;
+ }
+ }
+
+ /**
+ * Defines the title of the document.
+ * @param string $title The title.
+ * @since 1.2
+ * @see SetAuthor(), SetCreator(), SetKeywords(), SetSubject()
+ */
+ function SetTitle($title) {
+ //Title of document
+ $this->title=$title;
+ }
+
+ /**
+ * Defines the subject of the document.
+ * @param string $subject The subject.
+ * @since 1.2
+ * @see SetAuthor(), SetCreator(), SetKeywords(), SetTitle()
+ */
+ function SetSubject($subject) {
+ //Subject of document
+ $this->subject=$subject;
+ }
+
+ /**
+ * Defines the author of the document.
+ * @param string $author The name of the author.
+ * @since 1.2
+ * @see SetCreator(), SetKeywords(), SetSubject(), SetTitle()
+ */
+ function SetAuthor($author) {
+ //Author of document
+ $this->author=$author;
+ }
+
+ /**
+ * Associates keywords with the document, generally in the form 'keyword1 keyword2 ...'.
+ * @param string $keywords The list of keywords.
+ * @since 1.2
+ * @see SetAuthor(), SetCreator(), SetSubject(), SetTitle()
+ */
+ function SetKeywords($keywords) {
+ //Keywords of document
+ $this->keywords=$keywords;
+ }
+
+ /**
+ * 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.
+ * @since 1.2
+ * @see SetAuthor(), SetKeywords(), SetSubject(), SetTitle()
+ */
+ function SetCreator($creator) {
+ //Creator of document
+ $this->creator=$creator;
+ }
+
+ /**
+ * Defines an alias for the total number of pages. It will be substituted as the document is closed.
+ * Example:
+ *
+ * class PDF extends TCPDF {
+ * function Footer() {
+ * //Go to 1.5 cm from bottom
+ * $this->SetY(-15);
+ * //Select Arial italic 8
+ * $this->SetFont('Arial','I',8);
+ * //Print current and total page numbers
+ * $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
+ * }
+ * }
+ * $pdf=new PDF();
+ * $pdf->AliasNbPages();
+ *
+ * @param string $alias The alias. Default value: {nb}.
+ * @since 1.4
+ * @see PageNo(), Footer()
+ */
+ function AliasNbPages($alias='{nb}') {
+ //Define an alias for total number of pages
+ $this->AliasNbPages = $this->_escapetext($alias);
+ }
+
+ /**
+ * 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
+ * @since 1.0
+ */
+ function Error($msg) {
+ //Fatal error
+ die('TCPDF error: '.$msg);
+ }
+
+ /**
+ * 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
+ * @since 1.0
+ * @see AddPage(), Close()
+ */
+ function Open() {
+ //Begin document
+ $this->state=1;
+ }
+
+ /**
+ * 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.
+ * @since 1.0
+ * @see Open(), Output()
+ */
+ function Close() {
+ //Terminate document
+ if($this->state==3) {
+ return;
+ }
+ if($this->page==0) {
+ $this->AddPage();
+ }
+ //Page footer
+ $this->InFooter=true;
+ $this->Footer();
+ $this->InFooter=false;
+ //Close page
+ $this->_endpage();
+ //Close document
+ $this->_enddoc();
+ }
+
+ /**
+ * Adds a new page to the document. If a page is already present, the Footer() method is called first to output the footer. Then the page is added, the current position set to the top-left corner according to the left and top margins, and Header() is called to display the header.
+ * The font which was set before calling is automatically restored. There is no need to call SetFont() again if you want to continue with the same font. The same is true for colors and line width.
+ * 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
- L or Landscape
The default value is the one passed to the constructor.
+ * @since 1.0
+ * @see TCPDF(), Header(), Footer(), SetMargins()
+ */
+ function AddPage($orientation='') {
+ //Start a new page
+ if($this->state==0) {
+ $this->Open();
+ }
+ $family=$this->FontFamily;
+ $style=$this->FontStyle.($this->underline ? 'U' : '');
+ $size=$this->FontSizePt;
+ $lw=$this->LineWidth;
+ $dc=$this->DrawColor;
+ $fc=$this->FillColor;
+ $tc=$this->TextColor;
+ $cf=$this->ColorFlag;
+ if($this->page>0) {
+ //Page footer
+ $this->InFooter=true;
+ $this->Footer();
+ $this->InFooter=false;
+ //Close page
+ $this->_endpage();
+ }
+ //Start new page
+ $this->_beginpage($orientation);
+ //Set line cap style to square
+ $this->_out('2 J');
+ //Set line width
+ $this->LineWidth=$lw;
+ $this->_out(sprintf('%.2f w',$lw*$this->k));
+ //Set font
+ if($family) {
+ $this->SetFont($family,$style,$size);
+ }
+ //Set colors
+ $this->DrawColor=$dc;
+ if($dc!='0 G') {
+ $this->_out($dc);
+ }
+ $this->FillColor=$fc;
+ if($fc!='0 g') {
+ $this->_out($fc);
+ }
+ $this->TextColor=$tc;
+ $this->ColorFlag=$cf;
+ //Page header
+ $this->Header();
+ //Restore line width
+ if($this->LineWidth!=$lw) {
+ $this->LineWidth=$lw;
+ $this->_out(sprintf('%.2f w',$lw*$this->k));
+ }
+ //Restore font
+ if($family) {
+ $this->SetFont($family,$style,$size);
+ }
+ //Restore colors
+ if($this->DrawColor!=$dc) {
+ $this->DrawColor=$dc;
+ $this->_out($dc);
+ }
+ if($this->FillColor!=$fc) {
+ $this->FillColor=$fc;
+ $this->_out($fc);
+ }
+ $this->TextColor=$tc;
+ $this->ColorFlag=$cf;
+ }
+
+
+
+ /**
+ * 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
+ */
+ function setHeaderData($ln="", $lw=0, $ht="", $hs="") {
+ $this->header_logo = $ln;
+ $this->header_logo_width = $lw;
+ $this->header_title = $ht;
+ $this->header_string = $hs;
+ }
+
+ /**
+ * Set header margin.
+ * (minimum distance between header and top page margin)
+ * @param int $hm distance in millimeters
+ */
+ function setHeaderMargin($hm=10) {
+ $this->header_margin = $hm;
+ }
+
+ /**
+ * Set footer margin.
+ * (minimum distance between footer and bottom page margin)
+ * @param int $fm distance in millimeters
+ */
+ function setFooterMargin($fm=10) {
+ $this->footer_margin = $fm;
+ }
+
+ /**
+ * This method is used to render the page header.
+ * It is automatically called by AddPage() and could be overwritten in your own inherited class.
+ */
+ function Header() {
+ if ($this->print_header) {
+
+ if (!isset($this->original_lMargin)) {
+ $this->original_lMargin = $this->lMargin;
+ }
+ if (!isset($this->original_rMargin)) {
+ $this->original_rMargin = $this->rMargin;
+ }
+
+ //set current position
+ $this->SetXY($this->original_lMargin, $this->header_margin);
+
+ if (($this->header_logo) AND ($this->header_logo != K_BLANK_IMAGE)) {
+ $this->Image(K_PATH_IMAGES.$this->header_logo, $this->original_lMargin, $this->header_margin, $this->header_logo_width);
+ }
+ else {
+ $this->img_rb_y = $this->GetY();
+ }
+
+ $cell_height = round((K_CELL_HEIGHT_RATIO * $this->header_font[2]) / $this->k, 2);
+
+ $header_x = $this->original_lMargin + ($this->header_logo_width * 1.05); //set left margin for text data cell
+
+ // header title
+ $this->SetFont($this->header_font[0], 'B', $this->header_font[2] + 1);
+ $this->SetX($header_x);
+ $this->Cell($this->header_width, $cell_height, $this->header_title, 0, 1, 'L');
+
+ // header string
+ $this->SetFont($this->header_font[0], $this->header_font[1], $this->header_font[2]);
+ $this->SetX($header_x);
+ $this->MultiCell($this->header_width, $cell_height, $this->header_string, 0, 'L', 0);
+
+ // print an ending header line
+ if (empty($this->header_width)) {
+ //set style for cell border
+ $this->SetLineWidth(0.3);
+ $this->SetDrawColor(0, 0, 0);
+ $this->SetY(1 + max($this->img_rb_y, $this->GetY()));
+ $this->SetX($this->original_lMargin);
+ $this->Cell(0, 0, '', 'T', 0, 'C');
+ }
+
+ //restore position
+ $this->SetXY($this->original_lMargin, $this->tMargin);
+ }
+ }
+
+ /**
+ * This method is used to render the page footer.
+ * It is automatically called by AddPage() and could be overwritten in your own inherited class.
+ */
+ function Footer() {
+ if ($this->print_footer) {
+
+ if (!isset($this->original_lMargin)) {
+ $this->original_lMargin = $this->lMargin;
+ }
+ if (!isset($this->original_rMargin)) {
+ $this->original_rMargin = $this->rMargin;
+ }
+
+ //set font
+ $this->SetFont($this->footer_font[0], $this->footer_font[1] , $this->footer_font[2]);
+ //set style for cell border
+ $line_width = 0.3;
+ $this->SetLineWidth($line_width);
+ $this->SetDrawColor(0, 0, 0);
+
+ $footer_height = round((K_CELL_HEIGHT_RATIO * $this->footer_font[2]) / $this->k, 2); //footer height
+ //get footer y position
+ $footer_y = $this->h - $this->footer_margin - $footer_height;
+ //set current position
+ $this->SetXY($this->original_lMargin, $footer_y);
+
+ //print document barcode
+ if ($this->barcode) {
+ $this->Ln();
+ $barcode_width = round(($this->w - $this->original_lMargin - $this->original_rMargin)); //max width
+ $this->writeBarcode($this->original_lMargin, $footer_y + $line_width, $barcode_width, $footer_height - $line_width, "C128B", false, false, 2, $this->barcode);
+ }
+
+ $this->SetXY($this->original_lMargin, $footer_y);
+
+ //Print page number
+ $this->Cell(0, $footer_height, $this->l['w_page']." ".$this->PageNo().' / {nb}', 'T', 0, 'R');
+ }
+ }
+
+ /**
+ * Returns the current page number.
+ * @return int page number
+ * @since 1.0
+ * @see AliasNbPages()
+ */
+ function PageNo() {
+ //Get current page number
+ return $this->page;
+ }
+
+ /**
+ * 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 $r If g et b are given, red component; if not, indicates the gray level. Value between 0 and 255
+ * @param int $g Green component (between 0 and 255)
+ * @param int $b Blue component (between 0 and 255)
+ * @since 1.3
+ * @see SetFillColor(), SetTextColor(), Line(), Rect(), Cell(), MultiCell()
+ */
+ function SetDrawColor($r, $g=-1, $b=-1) {
+ //Set color for all stroking operations
+ if(($r==0 and $g==0 and $b==0) or $g==-1) {
+ $this->DrawColor=sprintf('%.3f G',$r/255);
+ }
+ else {
+ $this->DrawColor=sprintf('%.3f %.3f %.3f RG',$r/255,$g/255,$b/255);
+ }
+ if($this->page>0) {
+ $this->_out($this->DrawColor);
+ }
+ }
+
+ /**
+ * 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 $r If g et b are given, red component; if not, indicates the gray level. Value between 0 and 255
+ * @param int $g Green component (between 0 and 255)
+ * @param int $b Blue component (between 0 and 255)
+ * @param boolean $storeprev if true stores the RGB array on $prevFillColor variable.
+ * @since 1.3
+ * @see SetDrawColor(), SetTextColor(), Rect(), Cell(), MultiCell()
+ */
+ function SetFillColor($r, $g=-1, $b=-1, $storeprev=false) {
+ //Set color for all filling operations
+ if(($r==0 and $g==0 and $b==0) or $g==-1) {
+ $this->FillColor=sprintf('%.3f g',$r/255);
+ }
+ else {
+ $this->FillColor=sprintf('%.3f %.3f %.3f rg',$r/255,$g/255,$b/255);
+ }
+ $this->ColorFlag=($this->FillColor!=$this->TextColor);
+ if($this->page>0) {
+ $this->_out($this->FillColor);
+ }
+ if ($storeprev) {
+ // store color as previous value
+ $this->prevFillColor = array($r, $g, $b);
+ }
+ }
+
+ /**
+ * 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 $r If g et b are given, red component; if not, indicates the gray level. Value between 0 and 255
+ * @param int $g Green component (between 0 and 255)
+ * @param int $b Blue component (between 0 and 255)
+ * @param boolean $storeprev if true stores the RGB array on $prevTextColor variable.
+ * @since 1.3
+ * @see SetDrawColor(), SetFillColor(), Text(), Cell(), MultiCell()
+ */
+ function SetTextColor($r, $g=-1, $b=-1, $storeprev=false) {
+ //Set color for text
+ if(($r==0 and $g==0 and $b==0) or $g==-1) {
+ $this->TextColor=sprintf('%.3f g',$r/255);
+ }
+ else {
+ $this->TextColor=sprintf('%.3f %.3f %.3f rg',$r/255,$g/255,$b/255);
+ }
+ $this->ColorFlag=($this->FillColor!=$this->TextColor);
+ if ($storeprev) {
+ // store color as previous value
+ $this->prevTextColor = array($r, $g, $b);
+ }
+ }
+
+ /**
+ * Returns the length of a string in user unit. A font must be selected.
+ * Support UTF-8 Unicode [Nicola Asuni, 2005-01-02]
+ * @param string $s The string whose length is to be computed
+ * @return int
+ * @since 1.2
+ */
+ function GetStringWidth($s) {
+ //Get width of a string in the current font
+ $s = (string)$s;
+ $cw = &$this->CurrentFont['cw'];
+ $w = 0;
+ if($this->isunicode) {
+ $unicode = $this->UTF8StringToArray($s);
+ foreach($unicode as $char) {
+ if (isset($cw[$char])) {
+ $w+=$cw[$char];
+ } elseif(isset($cw[ord($char)])) {
+ $w+=$cw[ord($char)];
+ } elseif(isset($cw[chr($char)])) {
+ $w+=$cw[chr($char)];
+ } elseif(isset($this->CurrentFont['desc']['MissingWidth'])) {
+ $w += $this->CurrentFont['desc']['MissingWidth']; // set default size
+ } else {
+ $w += 500;
+ }
+ }
+ } else {
+ $l = strlen($s);
+ for($i=0; $i<$l; $i++) {
+ if (isset($cw[$s{$i}])) {
+ $w += $cw[$s{$i}];
+ } else if (isset($cw[ord($s{$i})])) {
+ $w += $cw[ord($s{$i})];
+ }
+ }
+ }
+ return ($w * $this->FontSize / 1000);
+ }
+
+ /**
+ * 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.
+ * @since 1.0
+ * @see Line(), Rect(), Cell(), MultiCell()
+ */
+ function SetLineWidth($width) {
+ //Set line width
+ $this->LineWidth=$width;
+ if($this->page>0) {
+ $this->_out(sprintf('%.2f w',$width*$this->k));
+ }
+ }
+
+ /**
+ * 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
+ * @since 1.0
+ * @see SetLineWidth(), SetDrawColor()
+ */
+ function Line($x1, $y1, $x2, $y2) {
+ //Draw a line
+ $this->_out(sprintf('%.2f %.2f m %.2f %.2f l S', $x1*$this->k, ($this->h-$y1)*$this->k, $x2*$this->k, ($this->h-$y2)*$this->k));
+ }
+
+ /**
+ * Outputs a rectangle. It can be drawn (border only), filled (with no border) or both.
+ * @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. Possible values are:- D or empty string: draw (default)
- F: fill
- DF or FD: draw and fill
+ * @since 1.0
+ * @see SetLineWidth(), SetDrawColor(), SetFillColor()
+ */
+ function Rect($x, $y, $w, $h, $style='') {
+ //Draw a rectangle
+ if($style=='F') {
+ $op='f';
+ }
+ elseif($style=='FD' or $style=='DF') {
+ $op='B';
+ }
+ else {
+ $op='S';
+ }
+ $this->_out(sprintf('%.2f %.2f %.2f %.2f re %s',$x*$this->k,($this->h-$y)*$this->k,$w*$this->k,-$h*$this->k,$op));
+ }
+
+ /**
+ * Imports a TrueType or Type1 font and makes it available. It is necessary to generate a font definition file first with the makefont.php utility. The definition file (and the font file itself when embedding) must be present either in the current directory or in the one indicated by FPDF_FONTPATH if the constant is defined. If it could not be found, the error "Could not include font definition file" is generated.
+ * Support UTF-8 Unicode [Nicola Asuni, 2005-01-02].
+ * Example:
+ *
+ * $pdf->AddFont('Comic','I');
+ * // is equivalent to:
+ * $pdf->AddFont('Comic','I','comici.php');
+ *
+ * @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 $file The font definition file. By default, the name is built from the family and style, in lower case with no space.
+ * @since 1.5
+ * @see SetFont()
+ */
+ function AddFont($family, $style='', $file='') {
+ if(empty($family)) {
+ return;
+ }
+
+ //Add a TrueType or Type1 font
+ $family = strtolower($family);
+ if((!$this->isunicode) AND ($family == 'arial')) {
+ $family = 'helvetica';
+ }
+
+ $style=strtoupper($style);
+ $style=str_replace('U','',$style);
+ if($style == 'IB') {
+ $style = 'BI';
+ }
+
+ $fontkey = $family.$style;
+ // check if the font has been already added
+ if(isset($this->fonts[$fontkey])) {
+ return;
+ }
+
+ if($file=='') {
+ $file = str_replace(' ', '', $family).strtolower($style).'.php';
+ }
+ if(!file_exists($this->_getfontpath().$file)) {
+ // try to load the basic file without styles
+ $file = str_replace(' ', '', $family).'.php';
+ }
+
+ include($this->_getfontpath().$file);
+
+ if(!isset($name) AND !isset($fpdf_charwidths)) {
+ $this->Error('Could not include font definition file');
+ }
+
+ $i = count($this->fonts)+1;
+
+ if($this->isunicode) {
+ $this->fonts[$fontkey] = array('i'=>$i, 'type'=>$type, 'name'=>$name, 'desc'=>$desc, 'up'=>$up, 'ut'=>$ut, 'cw'=>$cw, 'enc'=>$enc, 'file'=>$file, 'ctg'=>$ctg);
+ $fpdf_charwidths[$fontkey] = $cw;
+ } else {
+ $this->fonts[$fontkey]=array('i'=>$i, 'type'=>'core', 'name'=>$this->CoreFonts[$fontkey], 'up'=>-100, 'ut'=>50, 'cw'=>$fpdf_charwidths[$fontkey]);
+ }
+
+ if(isset($diff) AND (!empty($diff))) {
+ //Search existing encodings
+ $d=0;
+ $nb=count($this->diffs);
+ for($i=1;$i<=$nb;$i++) {
+ if($this->diffs[$i]==$diff) {
+ $d=$i;
+ break;
+ }
+ }
+ if($d==0) {
+ $d=$nb+1;
+ $this->diffs[$d]=$diff;
+ }
+ $this->fonts[$fontkey]['diff']=$d;
+ }
+ if(!empty($file)) {
+ if((strcasecmp($type,"TrueType") == 0) OR (strcasecmp($type,"TrueTypeUnicode") == 0)) {
+ $this->FontFiles[$file]=array('length1'=>$originalsize);
+ }
+ else {
+ $this->FontFiles[$file]=array('length1'=>$size1,'length2'=>$size2);
+ }
+ }
+ }
+
+ /**
+ * Sets the font used to print character strings. It is mandatory to call this method at least once before printing text or the resulting document would not be valid.
+ * The font can be either a standard one or a font added via the AddFont() method. Standard fonts use Windows encoding cp1252 (Western Europe).
+ * 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 FPDF_FONTPATH constant
+ * Example for the last case (note the trailing slash):
+ *
+ * define('FPDF_FONTPATH','/home/www/font/');
+ * require('tcpdf.php');
+ *
+ * //Times regular 12
+ * $pdf->SetFont('Times');
+ * //Arial bold 14
+ * $pdf->SetFont('Arial','B',14);
+ * //Removes bold
+ * $pdf->SetFont('');
+ * //Times bold, italic and underlined 14
+ * $pdf->SetFont('Times','BIU');
+ *
+ * If the file corresponding to the requested font is not found, the error "Could not include font metric file" is generated.
+ * @param string $family Family font. It can be either a name defined by AddFont() or one of the standard families (case insensitive):- Courier (fixed-width)
- Helvetica or Arial (synonymous; sans serif)
- Times (serif)
- Symbol (symbolic)
- ZapfDingbats (symbolic)
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
or any combination. The default value is regular. Bold and italic styles do not apply to Symbol and ZapfDingbats
+ * @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
+ * @since 1.0
+ * @see AddFont(), SetFontSize(), Cell(), MultiCell(), Write()
+ */
+ function SetFont($family, $style='', $size=0) {
+ // save previous values
+ $this->prevFontFamily = $this->FontFamily;
+ $this->prevFontStyle = $this->FontStyle;
+
+ //Select a font; size given in points
+ global $fpdf_charwidths;
+
+ $family=strtolower($family);
+ if($family=='') {
+ $family=$this->FontFamily;
+ }
+ if((!$this->isunicode) AND ($family == 'arial')) {
+ $family = 'helvetica';
+ }
+ elseif(($family=="symbol") OR ($family=="zapfdingbats")) {
+ $style='';
+ }
+ $style=strtoupper($style);
+
+ if(strpos($style,'U')!==false) {
+ $this->underline=true;
+ $style=str_replace('U','',$style);
+ }
+ else {
+ $this->underline=false;
+ }
+ if($style=='IB') {
+ $style='BI';
+ }
+ if($size==0) {
+ $size=$this->FontSizePt;
+ }
+
+ // try to add font (if not already added)
+ if($this->isunicode) {
+ $this->AddFont($family, $style);
+ }
+
+ //Test if font is already selected
+ if(($this->FontFamily == $family) AND ($this->FontStyle == $style) AND ($this->FontSizePt == $size)) {
+ return;
+ }
+
+ $fontkey = $family.$style;
+ //if(!isset($this->fonts[$fontkey]) AND isset($this->fonts[$family])) {
+ // $style='';
+ //}
+
+ //Test if used for the first time
+ if(!isset($this->fonts[$fontkey])) {
+ //Check if one of the standard fonts
+ if(isset($this->CoreFonts[$fontkey])) {
+ if(!isset($fpdf_charwidths[$fontkey])) {
+ //Load metric file
+ $file = $family;
+ if(($family!='symbol') AND ($family!='zapfdingbats')) {
+ $file .= strtolower($style);
+ }
+ if(!file_exists($this->_getfontpath().$file.'.php')) {
+ // try to load the basic file without styles
+ $file = $family;
+ $fontkey = $family;
+ }
+ include($this->_getfontpath().$file.'.php');
+ if (($this->isunicode AND !isset($ctg)) OR ((!$this->isunicode) AND (!isset($fpdf_charwidths[$fontkey]))) ) {
+ $this->Error("Could not include font metric file [".$fontkey."]: ".$this->_getfontpath().$file.".php");
+ }
+ }
+ $i = count($this->fonts) + 1;
+
+ if($this->isunicode) {
+ $this->fonts[$fontkey] = array('i'=>$i, 'type'=>$type, 'name'=>$name, 'desc'=>$desc, 'up'=>$up, 'ut'=>$ut, 'cw'=>$cw, 'enc'=>$enc, 'file'=>$file, 'ctg'=>$ctg);
+ $fpdf_charwidths[$fontkey] = $cw;
+ } else {
+ $this->fonts[$fontkey]=array('i'=>$i, 'type'=>'core', 'name'=>$this->CoreFonts[$fontkey], 'up'=>-100, 'ut'=>50, 'cw'=>$fpdf_charwidths[$fontkey]);
+ }
+ }
+ else {
+ $this->Error('Undefined font: '.$family.' '.$style);
+ }
+ }
+ //Select it
+ $this->FontFamily = $family;
+ $this->FontStyle = $style;
+ $this->FontSizePt = $size;
+ $this->FontSize = $size / $this->k;
+ $this->CurrentFont = &$this->fonts[$fontkey];
+ if($this->page>0) {
+ $this->_out(sprintf('BT /F%d %.2f Tf ET', $this->CurrentFont['i'], $this->FontSizePt));
+ }
+ }
+
+ /**
+ * Defines the size of the current font.
+ * @param float $size The size (in points)
+ * @since 1.0
+ * @see SetFont()
+ */
+ function SetFontSize($size) {
+ //Set font size in points
+ if($this->FontSizePt==$size) {
+ return;
+ }
+ $this->FontSizePt = $size;
+ $this->FontSize = $size / $this->k;
+ if($this->page > 0) {
+ $this->_out(sprintf('BT /F%d %.2f Tf ET', $this->CurrentFont['i'], $this->FontSizePt));
+ }
+ }
+
+ /**
+ * 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().
+ * @since 1.5
+ * @see Cell(), Write(), Image(), Link(), SetLink()
+ */
+ function AddLink() {
+ //Create a new internal link
+ $n=count($this->links)+1;
+ $this->links[$n]=array(0,0);
+ return $n;
+ }
+
+ /**
+ * 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
+ * @since 1.5
+ * @see AddLink()
+ */
+ function SetLink($link, $y=0, $page=-1) {
+ //Set destination of internal link
+ if($y==-1) {
+ $y=$this->y;
+ }
+ if($page==-1) {
+ $page=$this->page;
+ }
+ $this->links[$link]=array($page,$y);
+ }
+
+ /**
+ * 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()
+ * @since 1.5
+ * @see AddLink(), Cell(), Write(), Image()
+ */
+ function Link($x, $y, $w, $h, $link) {
+ //Put a link on the page
+ $this->PageLinks[$this->page][] = array($x * $this->k, $this->hPt - $y * $this->k, $w * $this->k, $h*$this->k, $link);
+ }
+
+ /**
+ * Prints a character string. The origin is on the left of the first charcter, on the baseline. This method allows to place a string precisely on the page, but it is usually easier to use Cell(), MultiCell() or Write() which are the standard methods to print text.
+ * @param float $x Abscissa of the origin
+ * @param float $y Ordinate of the origin
+ * @param string $txt String to print
+ * @since 1.0
+ * @see SetFont(), SetTextColor(), Cell(), MultiCell(), Write()
+ */
+ function Text($x, $y, $txt) {
+ //Output a string
+ $s=sprintf('BT %.2f %.2f Td (%s) Tj ET', $x * $this->k, ($this->h-$y) * $this->k, $this->_escapetext($txt));
+ if($this->underline AND ($txt!='')) {
+ $s .= ' '.$this->_dounderline($x,$y,$txt);
+ }
+ if($this->ColorFlag) {
+ $s='q '.$this->TextColor.' '.$s.' Q';
+ }
+ $this->_out($s);
+ }
+
+ /**
+ * Whenever a page break condition is met, the method is called, and the break is issued or not depending on the returned value. 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.
+ * Example:
+ * The method is overriden in an inherited class in order to obtain a 3 column layout:
+ *
+ * class PDF extends TCPDF {
+ * var $col=0;
+ *
+ * function SetCol($col) {
+ * //Move position to a column
+ * $this->col=$col;
+ * $x=10+$col*65;
+ * $this->SetLeftMargin($x);
+ * $this->SetX($x);
+ * }
+ *
+ * function AcceptPageBreak() {
+ * if($this->col<2) {
+ * //Go to next column
+ * $this->SetCol($this->col+1);
+ * $this->SetY(10);
+ * return false;
+ * }
+ * else {
+ * //Go back to first column and issue page break
+ * $this->SetCol(0);
+ * return true;
+ * }
+ * }
+ * }
+ *
+ * $pdf=new PDF();
+ * $pdf->Open();
+ * $pdf->AddPage();
+ * $pdf->SetFont('Arial','',12);
+ * for($i=1;$i<=300;$i++) {
+ * $pdf->Cell(0,5,"Line $i",0,1);
+ * }
+ * $pdf->Output();
+ *
+ * @return boolean
+ * @since 1.4
+ * @see SetAutoPageBreak()
+ */
+ function AcceptPageBreak() {
+ //Accept automatic page break or not
+ return $this->AutoPageBreak;
+ }
+
+ /**
+ * 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 either 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
+ * @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
- 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
+ * @param int $fill Indicates if the cell background must be painted (1) or transparent (0). Default value: 0.
+ * @param mixed $link URL or identifier returned by AddLink().
+ * @since 1.0
+ * @see SetFont(), SetDrawColor(), SetFillColor(), SetTextColor(), SetLineWidth(), AddLink(), Ln(), MultiCell(), Write(), SetAutoPageBreak()
+ */
+ function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=0, $link='') {
+ //Output a cell
+ $k=$this->k;
+ if(($this->y + $h) > $this->PageBreakTrigger AND empty($this->InFooter) AND $this->AcceptPageBreak()) {
+ //Automatic page break
+ $x = $this->x;
+ $ws = $this->ws;
+ if($ws > 0) {
+ $this->ws = 0;
+ $this->_out('0 Tw');
+ }
+ $this->AddPage($this->CurOrientation);
+ $this->x = $x;
+ if($ws > 0) {
+ $this->ws = $ws;
+ $this->_out(sprintf('%.3f Tw',$ws * $k));
+ }
+ }
+ if($w == 0) {
+ $w = $this->w - $this->rMargin - $this->x;
+ }
+ $s = '';
+ if(($fill == 1) OR ($border == 1)) {
+ if($fill == 1) {
+ $op = ($border == 1) ? 'B' : 'f';
+ }
+ else {
+ $op = 'S';
+ }
+ $s = sprintf('%.2f %.2f %.2f %.2f re %s ', $this->x * $k, ($this->h - $this->y) * $k, $w * $k, -$h * $k, $op);
+ }
+ if(is_string($border)) {
+ $x=$this->x;
+ $y=$this->y;
+ if(strpos($border,'L')!==false) {
+ $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',$x*$k,($this->h-$y)*$k,$x*$k,($this->h-($y+$h))*$k);
+ }
+ if(strpos($border,'T')!==false) {
+ $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',$x*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-$y)*$k);
+ }
+ if(strpos($border,'R')!==false) {
+ $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',($x+$w)*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-($y+$h))*$k);
+ }
+ if(strpos($border,'B')!==false) {
+ $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',$x*$k,($this->h-($y+$h))*$k,($x+$w)*$k,($this->h-($y+$h))*$k);
+ }
+ }
+ if($txt != '') {
+ $width = $this->GetStringWidth($txt);
+ if($align == 'R') {
+ $dx = $w - $this->cMargin - $width;
+ }
+ elseif($align=='C') {
+ $dx = ($w - $width)/2;
+ }
+ else {
+ $dx = $this->cMargin;
+ }
+ if($this->ColorFlag) {
+ $s .= 'q '.$this->TextColor.' ';
+ }
+ $txt2 = $this->_escapetext($txt);
+ $s.=sprintf('BT %.2f %.2f Td (%s) Tj ET', ($this->x + $dx) * $k, ($this->h - ($this->y + 0.5 * $h + 0.3 * $this->FontSize)) * $k, $txt2);
+ if($this->underline) {
+ $s.=' '.$this->_dounderline($this->x + $dx, $this->y + 0.5 * $h + 0.3 * $this->FontSize, $txt);
+ }
+ if($this->ColorFlag) {
+ $s.=' Q';
+ }
+ if($link) {
+ $this->Link($this->x + $dx, $this->y + 0.5 * $h - 0.5 * $this->FontSize, $width, $this->FontSize, $link);
+ }
+ }
+ if($s) {
+ $this->_out($s);
+ }
+ $this->lasth = $h;
+ if($ln>0) {
+ //Go to next line
+ $this->y += $h;
+ if($ln == 1) {
+ $this->x = $this->lMargin;
+ }
+ }
+ else {
+ $this->x += $w;
+ }
+ }
+
+ /**
+ * 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 Height of cells.
+ * @param string $txt String to print
+ * @param mixed $border Indicates if borders must be drawn around the cell block. The value can be either 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
+ * @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
- 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
- C: center
- R: right align
- J: justification (default value)
+ * @param int $fill Indicates if the cell background must be painted (1) or transparent (0). Default value: 0.
+ * @since 1.3
+ * @see SetFont(), SetDrawColor(), SetFillColor(), SetTextColor(), SetLineWidth(), Cell(), Write(), SetAutoPageBreak()
+ */
+ function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0) {
+ //Output text with automatic or explicit line breaks
+ $cw = &$this->CurrentFont['cw'];
+
+ if($w == 0) {
+ $w = $this->w - $this->rMargin - $this->x;
+ }
+
+ $wmax = ($w - 2 * $this->cMargin);
+
+ $s = str_replace("\r", '', $txt); // remove carriage returns
+ $nb = strlen($s);
+
+ $b=0;
+ if($border) {
+ if($border==1) {
+ $border='LTRB';
+ $b='LRT';
+ $b2='LR';
+ }
+ else {
+ $b2='';
+ if(strpos($border,'L')!==false) {
+ $b2.='L';
+ }
+ if(strpos($border,'R')!==false) {
+ $b2.='R';
+ }
+ $b=(strpos($border,'T')!==false) ? $b2.'T' : $b2;
+ }
+ }
+ $sep=-1;
+ $i=0;
+ $j=0;
+ $l=0;
+ $ns=0;
+ $nl=1;
+ while($i<$nb) {
+ //Get next character
+ $c = $s{$i};
+ if(preg_match("/[\n]/u", $c)) {
+ //Explicit line break
+ if($this->ws > 0) {
+ $this->ws = 0;
+ $this->_out('0 Tw');
+ }
+ $this->Cell($w, $h, substr($s, $j, $i-$j), $b, 2, $align, $fill);
+ $i++;
+ $sep=-1;
+ $j=$i;
+ $l=0;
+ $ns=0;
+ $nl++;
+ if($border and $nl==2) {
+ $b = $b2;
+ }
+ continue;
+ }
+ if(preg_match("/[ ]/u", $c)) {
+ $sep = $i;
+ $ls = $l;
+ $ns++;
+ }
+
+ $l = $this->GetStringWidth(substr($s, $j, $i-$j));
+
+ if($l > $wmax) {
+ //Automatic line break
+ if($sep == -1) {
+ if($i == $j) {
+ $i++;
+ }
+ if($this->ws > 0) {
+ $this->ws = 0;
+ $this->_out('0 Tw');
+ }
+ $this->Cell($w, $h, substr($s, $j, $i-$j), $b, 2, $align, $fill);
+ }
+ else {
+ if($align=='J') {
+ $this->ws = ($ns>1) ? ($wmax-$ls)/($ns-1) : 0;
+ $this->_out(sprintf('%.3f Tw', $this->ws * $this->k));
+ }
+ $this->Cell($w, $h, substr($s, $j, $sep-$j), $b, 2, $align, $fill);
+ $i = $sep + 1;
+ }
+ $sep=-1;
+ $j=$i;
+ $l=0;
+ $ns=0;
+ $nl++;
+ if($border AND ($nl==2)) {
+ $b=$b2;
+ }
+ }
+ else {
+ $i++;
+ }
+ }
+ //Last chunk
+ if($this->ws>0) {
+ $this->ws=0;
+ $this->_out('0 Tw');
+ }
+ if($border and is_int(strpos($border,'B'))) {
+ $b.='B';
+ }
+ $this->Cell($w, $h, substr($s, $j, $i-$j), $b, 2, $align, $fill);
+ $this->x=$this->lMargin;
+ }
+
+ /**
+ * This method prints text from the current position. When the right margin is reached (or the \n character is met) a line break occurs and text continues from the left margin. Upon method exit, the current position is left just at the end of the text. It is possible to put a link on the text.
+ * Example:
+ *
+ * //Begin with regular font
+ * $pdf->SetFont('Arial','',14);
+ * $pdf->Write(5,'Visit ');
+ * //Then put a blue underlined link
+ * $pdf->SetTextColor(0,0,255);
+ * $pdf->SetFont('','U');
+ * $pdf->Write(5,'www.tecnick.com','http://www.tecnick.com');
+ *
+ * @param float $h Line height
+ * @param string $txt String to print
+ * @param mixed $link URL or identifier returned by AddLink()
+ * @param int $fill Indicates if the background must be painted (1) or transparent (0). Default value: 0.
+ * @since 1.5
+ * @see SetFont(), SetTextColor(), AddLink(), MultiCell(), SetAutoPageBreak()
+ */
+ function Write($h, $txt, $link='', $fill=0) {
+
+ //Output text in flowing mode
+ $cw = &$this->CurrentFont['cw'];
+ $w = $this->w - $this->rMargin - $this->x;
+ $wmax = ($w - 2 * $this->cMargin);
+
+ $s = str_replace("\r", '', $txt);
+ $nb = strlen($s);
+
+ // handle single space character
+ if(($nb==1) AND preg_match("/[ ]/u", $s)) {
+ $this->x += $this->GetStringWidth($s);
+ return;
+ }
+
+ $sep=-1;
+ $i=0;
+ $j=0;
+ $l=0;
+ $nl=1;
+ while($i<$nb) {
+ //Get next character
+ $c=$s{$i};
+ if(preg_match("/[\n]/u", $c)) {
+ //Explicit line break
+ $this->Cell($w, $h, substr($s, $j, $i-$j), 0, 2, '', $fill, $link);
+ $i++;
+ $sep = -1;
+ $j = $i;
+ $l = 0;
+ if($nl == 1) {
+ $this->x = $this->lMargin;
+ $w = $this->w - $this->rMargin - $this->x;
+ $wmax = ($w - 2 * $this->cMargin);
+ }
+ $nl++;
+ continue;
+ }
+ if(preg_match("/[ ]/u", $c)) {
+ $sep= $i;
+ }
+
+ $l = $this->GetStringWidth(substr($s, $j, $i-$j));
+
+ if($l > $wmax) {
+ //Automatic line break (word wrapping)
+ if($sep == -1) {
+ if($this->x > $this->lMargin) {
+ //Move to next line
+ $this->x = $this->lMargin;
+ $this->y += $h;
+ $w=$this->w - $this->rMargin - $this->x;
+ $wmax=($w - 2 * $this->cMargin);
+ $i++;
+ $nl++;
+ continue;
+ }
+ if($i==$j) {
+ $i++;
+ }
+ $this->Cell($w, $h, substr($s, $j, $i-$j), 0, 2, '', $fill, $link);
+ }
+ else {
+ $this->Cell($w, $h, substr($s, $j, $sep-$j), 0, 2, '', $fill, $link);
+ $i=$sep+1;
+ }
+ $sep = -1;
+ $j = $i;
+ $l = 0;
+ if($nl==1) {
+ $this->x = $this->lMargin;
+ $w = $this->w - $this->rMargin - $this->x;
+ $wmax = ($w - 2 * $this->cMargin);
+ }
+ $nl++;
+ }
+ else {
+ $i++;
+ }
+ }
+
+ //Last chunk
+ if($i!=$j) {
+ $this->Cell($this->GetStringWidth(substr($s, $j)." "), $h, substr($s, $j), 0, 0, '', $fill, $link);
+ }
+ }
+
+ /**
+ * Puts an image in the page. The upper-left corner must be given. The dimensions can be specified in different ways:- explicit width and height (expressed in user unit)
- one explicit dimension, the other being calculated automatically in order to keep the original proportions
- no explicit dimension, in which case the image is put at 72 dpi
+ * Supported formats are JPEG and PNG.
+ * For JPEG, all flavors are allowed:- gray scales
- true colors (24 bits)
- CMYK (32 bits)
+ * For PNG, are allowed:- gray scales on at most 8 bits (256 levels)
- indexed colors
- true colors (24 bits)
+ * but are not supported:
+ * If a transparent color is defined, it will be taken into account (but will be only interpreted by Acrobat 4 and above).
+ * 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.
+ * @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 string $type Image format. Possible values are (case insensitive): JPG, JPEG, PNG. If not specified, the type is inferred from the file extension.
+ * @param mixed $link URL or identifier returned by AddLink().
+ * @since 1.1
+ * @see AddLink()
+ */
+ function Image($file, $x, $y, $w=0, $h=0, $type='', $link='') {
+ //Put an image on the page
+ if(!isset($this->images[$file])) {
+ //First use of image, get info
+ if($type == '') {
+ $pos = strrpos($file,'.');
+ if(empty($pos)) {
+ $this->Error('Image file has no extension and no type was specified: '.$file);
+ }
+ $type = substr($file, $pos+1);
+ }
+ $type = strtolower($type);
+ $mqr = get_magic_quotes_runtime();
+ set_magic_quotes_runtime(0);
+ if($type == 'jpg' or $type == 'jpeg') {
+ $info=$this->_parsejpg($file);
+ }
+ elseif($type == 'png') {
+ $info=$this->_parsepng($file);
+ }
+ else {
+ //Allow for additional formats
+ $mtd='_parse'.$type;
+ if(!method_exists($this,$mtd)) {
+ $this->Error('Unsupported image type: '.$type);
+ }
+ $info=$this->$mtd($file);
+ }
+ set_magic_quotes_runtime($mqr);
+ $info['i']=count($this->images)+1;
+ $this->images[$file]=$info;
+ }
+ else {
+ $info=$this->images[$file];
+ }
+ //Automatic width and height calculation if needed
+ if(($w == 0) and ($h == 0)) {
+ //Put image at 72 dpi
+ // 2004-06-14 :: Nicola Asuni, scale factor where added
+ $w = $info['w'] / ($this->imgscale * $this->k);
+ $h = $info['h'] / ($this->imgscale * $this->k);
+ }
+ if($w == 0) {
+ $w = $h * $info['w'] / $info['h'];
+ }
+ if($h == 0) {
+ $h = $w * $info['h'] / $info['w'];
+ }
+ $this->_out(sprintf('q %.2f 0 0 %.2f %.2f %.2f cm /I%d Do Q', $w*$this->k, $h*$this->k, $x*$this->k, ($this->h-($y+$h))*$this->k, $info['i']));
+ if($link) {
+ $this->Link($x, $y, $w, $h, $link);
+ }
+
+ //2002-07-31 - Nicola Asuni
+ // set right-bottom corner coordinates
+ $this->img_rb_x = $x + $w;
+ $this->img_rb_y = $y + $h;
+ }
+
+ /**
+ * 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.
+ * @since 1.0
+ * @see Cell()
+ */
+ function Ln($h='') {
+ //Line feed; default value is last cell height
+ $this->x=$this->lMargin;
+ if(is_string($h)) {
+ $this->y+=$this->lasth;
+ }
+ else {
+ $this->y+=$h;
+ }
+ }
+
+ /**
+ * Returns the abscissa of the current position.
+ * @return float
+ * @since 1.2
+ * @see SetX(), GetY(), SetY()
+ */
+ function GetX() {
+ //Get x position
+ return $this->x;
+ }
+
+ /**
+ * Defines the abscissa of the current position. If the passed value is negative, it is relative to the right of the page.
+ * @param float $x The value of the abscissa.
+ * @since 1.2
+ * @see GetX(), GetY(), SetY(), SetXY()
+ */
+ function SetX($x) {
+ //Set x position
+ if($x>=0) {
+ $this->x=$x;
+ }
+ else {
+ $this->x=$this->w+$x;
+ }
+ }
+
+ /**
+ * Returns the ordinate of the current position.
+ * @return float
+ * @since 1.0
+ * @see SetY(), GetX(), SetX()
+ */
+ function GetY() {
+ //Get y position
+ return $this->y;
+ }
+
+ /**
+ * 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.
+ * @since 1.0
+ * @see GetX(), GetY(), SetY(), SetXY()
+ */
+ function SetY($y) {
+ //Set y position and reset x
+ $this->x=$this->lMargin;
+ if($y>=0) {
+ $this->y=$y;
+ }
+ else {
+ $this->y=$this->h+$y;
+ }
+ }
+
+ /**
+ * 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
+ * @since 1.2
+ * @see SetX(), SetY()
+ */
+ function SetXY($x, $y) {
+ //Set x and y positions
+ $this->SetY($y);
+ $this->SetX($x);
+ }
+
+ /**
+ * 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. If not given, the document will be sent to the browser (destination I) with the name doc.pdf.
+ * @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. 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 file with the name given by name.
- S: return the document as a string. name is ignored.
If the parameter is not specified but a name is given, destination is F. If no parameter is specified at all, destination is I.
Note: for compatibility with previous versions, a boolean value is also accepted (false for F and true for D).
+ * @since 1.0
+ * @see Close()
+ */
+ function Output($name='',$dest='') {
+ //Output PDF to some destination
+ //Finish document if necessary
+ if($this->state < 3) {
+ $this->Close();
+ }
+ //Normalize parameters
+ if(is_bool($dest)) {
+ $dest=$dest ? 'D' : 'F';
+ }
+ $dest=strtoupper($dest);
+ if($dest=='') {
+ if($name=='') {
+ $name='doc.pdf';
+ $dest='I';
+ } else {
+ $dest='F';
+ }
+ }
+ switch($dest) {
+ case 'I': {
+ //Send to standard output
+ if(ob_get_contents()) {
+ $this->Error('Some data has already been output, can\'t send PDF file');
+ }
+ if(php_sapi_name()!='cli') {
+ //We send to a browser
+ header('Content-Type: application/pdf');
+ if(headers_sent()) {
+ $this->Error('Some data has already been output to browser, can\'t send PDF file');
+ }
+ header('Content-Length: '.strlen($this->buffer));
+ header('Content-disposition: inline; filename="'.$name.'"');
+ }
+ echo $this->buffer;
+ break;
+ }
+ case 'D': {
+ //Download file
+ if(ob_get_contents()) {
+ $this->Error('Some data has already been output, can\'t send PDF file');
+ }
+ if(isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')) {
+ header('Content-Type: application/force-download');
+ } else {
+ header('Content-Type: application/octet-stream');
+ }
+ if(headers_sent()) {
+ $this->Error('Some data has already been output to browser, can\'t send PDF file');
+ }
+ header('Content-Length: '.strlen($this->buffer));
+ header('Content-disposition: attachment; filename="'.$name.'"');
+ echo $this->buffer;
+ break;
+ }
+ case 'F': {
+ //Save to local file
+ $f=fopen($name,'wb');
+ if(!$f) {
+ $this->Error('Unable to create output file: '.$name);
+ }
+ fwrite($f,$this->buffer,strlen($this->buffer));
+ fclose($f);
+ break;
+ }
+ case 'S': {
+ //Return as a string
+ return $this->buffer;
+ }
+ default: {
+ $this->Error('Incorrect output destination: '.$dest);
+ }
+ }
+ return '';
+ }
+
+ // var methods
+
+ /**
+ * Check for locale-related bug
+ * @access protected
+ */
+ function _dochecks() {
+ //Check for locale-related bug
+ if(1.1==1) {
+ $this->Error('Don\'t alter the locale before including class file');
+ }
+ //Check for decimal separator
+ if(sprintf('%.1f',1.0)!='1.0') {
+ setlocale(LC_NUMERIC,'C');
+ }
+ }
+
+ /**
+ * Return fonts path
+ * @access protected
+ */
+ function _getfontpath() {
+ if(!defined('FPDF_FONTPATH') AND is_dir(dirname(__FILE__).'/font')) {
+ define('FPDF_FONTPATH', dirname(__FILE__).'/font/');
+ }
+ return defined('FPDF_FONTPATH') ? FPDF_FONTPATH : '';
+ }
+
+ /**
+ * Start document
+ * @access protected
+ */
+ function _begindoc() {
+ //Start document
+ $this->state=1;
+ $this->_out('%PDF-1.3');
+ }
+
+ /**
+ * _putpages
+ * @access protected
+ */
+ function _putpages() {
+ $nb = $this->page;
+ if(!empty($this->AliasNbPages)) {
+ $nbstr = $this->UTF8ToUTF16BE($nb, false);
+ //Replace number of pages
+ for($n=1;$n<=$nb;$n++) {
+ $this->pages[$n]=str_replace($this->AliasNbPages, $nbstr, $this->pages[$n]);
+ }
+ }
+ if($this->DefOrientation=='P') {
+ $wPt=$this->fwPt;
+ $hPt=$this->fhPt;
+ }
+ else {
+ $wPt=$this->fhPt;
+ $hPt=$this->fwPt;
+ }
+ $filter=($this->compress) ? '/Filter /FlateDecode ' : '';
+ for($n=1;$n<=$nb;$n++) {
+ //Page
+ $this->_newobj();
+ $this->_out('<_out('/Parent 1 0 R');
+ if(isset($this->OrientationChanges[$n])) {
+ $this->_out(sprintf('/MediaBox [0 0 %.2f %.2f]',$hPt,$wPt));
+ }
+ $this->_out('/Resources 2 0 R');
+ if(isset($this->PageLinks[$n])) {
+ //Links
+ $annots='/Annots [';
+ foreach($this->PageLinks[$n] as $pl) {
+ $rect=sprintf('%.2f %.2f %.2f %.2f',$pl[0],$pl[1],$pl[0]+$pl[2],$pl[1]-$pl[3]);
+ $annots.='<_escape($pl[4]).')>>>>';
+ }
+ else {
+ $l=$this->links[$pl[4]];
+ $h=isset($this->OrientationChanges[$l[0]]) ? $wPt : $hPt;
+ $annots.=sprintf('/Dest [%d 0 R /XYZ 0 %.2f null]>>',1+2*$l[0],$h-$l[1]*$this->k);
+ }
+ }
+ $this->_out($annots.']');
+ }
+ $this->_out('/Contents '.($this->n+1).' 0 R>>');
+ $this->_out('endobj');
+ //Page content
+ $p=($this->compress) ? gzcompress($this->pages[$n]) : $this->pages[$n];
+ $this->_newobj();
+ $this->_out('<<'.$filter.'/Length '.strlen($p).'>>');
+ $this->_putstream($p);
+ $this->_out('endobj');
+ }
+ //Pages root
+ $this->offsets[1]=strlen($this->buffer);
+ $this->_out('1 0 obj');
+ $this->_out('<_out($kids.']');
+ $this->_out('/Count '.$nb);
+ $this->_out(sprintf('/MediaBox [0 0 %.2f %.2f]',$wPt,$hPt));
+ $this->_out('>>');
+ $this->_out('endobj');
+ }
+
+ /**
+ * Adds fonts
+ * _putfonts
+ * @access protected
+ */
+ function _putfonts() {
+ $nf=$this->n;
+ foreach($this->diffs as $diff) {
+ //Encodings
+ $this->_newobj();
+ $this->_out('<>');
+ $this->_out('endobj');
+ }
+ $mqr=get_magic_quotes_runtime();
+ set_magic_quotes_runtime(0);
+ foreach($this->FontFiles as $file=>$info) {
+ //Font file embedding
+ $this->_newobj();
+ $this->FontFiles[$file]['n']=$this->n;
+ $font='';
+ $f = fopen($this->_getfontpath().$file,'rb',1);
+ if(!$f) {
+ $this->Error('Font file not found');
+ }
+ while(!feof($f)) {
+ $font .= fread($f, 8192);
+ }
+ fclose($f);
+ $compressed=(substr($file,-2)=='.z');
+ if(!$compressed && isset($info['length2'])) {
+ $header=(ord($font{0})==128);
+ if($header) {
+ //Strip first binary header
+ $font=substr($font,6);
+ }
+ if($header && ord($font{$info['length1']})==128) {
+ //Strip second binary header
+ $font=substr($font,0,$info['length1']).substr($font,$info['length1']+6);
+ }
+ }
+ $this->_out('<_out('/Filter /FlateDecode');
+ }
+ $this->_out('/Length1 '.$info['length1']);
+ if(isset($info['length2'])) {
+ $this->_out('/Length2 '.$info['length2'].' /Length3 0');
+ }
+ $this->_out('>>');
+ $this->_putstream($font);
+ $this->_out('endobj');
+ }
+ set_magic_quotes_runtime($mqr);
+ foreach($this->fonts as $k=>$font) {
+ //Font objects
+ $this->fonts[$k]['n']=$this->n+1;
+ $type=$font['type'];
+ $name=$font['name'];
+ if($type=='core') {
+ //Standard font
+ $this->_newobj();
+ $this->_out('<_out('/BaseFont /'.$name);
+ $this->_out('/Subtype /Type1');
+ if($name!='Symbol' && $name!='ZapfDingbats') {
+ $this->_out('/Encoding /WinAnsiEncoding');
+ }
+ $this->_out('>>');
+ $this->_out('endobj');
+ } elseif($type=='Type1' || $type=='TrueType') {
+ //Additional Type1 or TrueType font
+ $this->_newobj();
+ $this->_out('<_out('/BaseFont /'.$name);
+ $this->_out('/Subtype /'.$type);
+ $this->_out('/FirstChar 32 /LastChar 255');
+ $this->_out('/Widths '.($this->n+1).' 0 R');
+ $this->_out('/FontDescriptor '.($this->n+2).' 0 R');
+ if($font['enc']) {
+ if(isset($font['diff'])) {
+ $this->_out('/Encoding '.($nf+$font['diff']).' 0 R');
+ } else {
+ $this->_out('/Encoding /WinAnsiEncoding');
+ }
+ }
+ $this->_out('>>');
+ $this->_out('endobj');
+ //Widths
+ $this->_newobj();
+ $cw=&$font['cw'];
+ $s='[';
+ for($i=32;$i<=255;$i++) {
+ $s.=$cw[chr($i)].' ';
+ }
+ $this->_out($s.']');
+ $this->_out('endobj');
+ //Descriptor
+ $this->_newobj();
+ $s='<$v) {
+ $s.=' /'.$k.' '.$v;
+ }
+ $file = $font['file'];
+ if($file) {
+ $s.=' /FontFile'.($type=='Type1' ? '' : '2').' '.$this->FontFiles[$file]['n'].' 0 R';
+ }
+ $this->_out($s.'>>');
+ $this->_out('endobj');
+ } else {
+ //Allow for additional types
+ $mtd='_put'.strtolower($type);
+ if(!method_exists($this, $mtd)) {
+ $this->Error('Unsupported font type: '.$type);
+ }
+ $this->$mtd($font);
+ }
+ }
+ }
+
+ /**
+ * _putimages
+ * @access protected
+ */
+ function _putimages() {
+ $filter=($this->compress) ? '/Filter /FlateDecode ' : '';
+ reset($this->images);
+ while(list($file,$info)=each($this->images)) {
+ $this->_newobj();
+ $this->images[$file]['n']=$this->n;
+ $this->_out('<_out('/Subtype /Image');
+ $this->_out('/Width '.$info['w']);
+ $this->_out('/Height '.$info['h']);
+ if($info['cs']=='Indexed') {
+ $this->_out('/ColorSpace [/Indexed /DeviceRGB '.(strlen($info['pal'])/3-1).' '.($this->n+1).' 0 R]');
+ }
+ else {
+ $this->_out('/ColorSpace /'.$info['cs']);
+ if($info['cs']=='DeviceCMYK') {
+ $this->_out('/Decode [1 0 1 0 1 0 1 0]');
+ }
+ }
+ $this->_out('/BitsPerComponent '.$info['bpc']);
+ if(isset($info['f'])) {
+ $this->_out('/Filter /'.$info['f']);
+ }
+ if(isset($info['parms'])) {
+ $this->_out($info['parms']);
+ }
+ if(isset($info['trns']) and is_array($info['trns'])) {
+ $trns='';
+ for($i=0;$i_out('/Mask ['.$trns.']');
+ }
+ $this->_out('/Length '.strlen($info['data']).'>>');
+ $this->_putstream($info['data']);
+ unset($this->images[$file]['data']);
+ $this->_out('endobj');
+ //Palette
+ if($info['cs']=='Indexed') {
+ $this->_newobj();
+ $pal=($this->compress) ? gzcompress($info['pal']) : $info['pal'];
+ $this->_out('<<'.$filter.'/Length '.strlen($pal).'>>');
+ $this->_putstream($pal);
+ $this->_out('endobj');
+ }
+ }
+ }
+
+ /**
+ * _putxobjectdict
+ * @access protected
+ */
+ function _putxobjectdict() {
+ foreach($this->images as $image) {
+ $this->_out('/I'.$image['i'].' '.$image['n'].' 0 R');
+ }
+ }
+
+ /**
+ * _putresourcedict
+ * @access protected
+ */
+ function _putresourcedict(){
+ $this->_out('/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
+ $this->_out('/Font <<');
+ foreach($this->fonts as $font) {
+ $this->_out('/F'.$font['i'].' '.$font['n'].' 0 R');
+ }
+ $this->_out('>>');
+ $this->_out('/XObject <<');
+ $this->_putxobjectdict();
+ $this->_out('>>');
+ }
+
+ /**
+ * _putresources
+ * @access protected
+ */
+ function _putresources() {
+ $this->_putfonts();
+ $this->_putimages();
+ //Resource dictionary
+ $this->offsets[2]=strlen($this->buffer);
+ $this->_out('2 0 obj');
+ $this->_out('<<');
+ $this->_putresourcedict();
+ $this->_out('>>');
+ $this->_out('endobj');
+ }
+
+ /**
+ * _putinfo
+ * @access protected
+ */
+ function _putinfo() {
+ $this->_out('/Producer '.$this->_textstring(PDF_PRODUCER));
+ if(!empty($this->title)) {
+ $this->_out('/Title '.$this->_textstring($this->title));
+ }
+ if(!empty($this->subject)) {
+ $this->_out('/Subject '.$this->_textstring($this->subject));
+ }
+ if(!empty($this->author)) {
+ $this->_out('/Author '.$this->_textstring($this->author));
+ }
+ if(!empty($this->keywords)) {
+ $this->_out('/Keywords '.$this->_textstring($this->keywords));
+ }
+ if(!empty($this->creator)) {
+ $this->_out('/Creator '.$this->_textstring($this->creator));
+ }
+ $this->_out('/CreationDate '.$this->_textstring('D:'.date('YmdHis')));
+ }
+
+ /**
+ * _putcatalog
+ * @access protected
+ */
+ function _putcatalog() {
+ $this->_out('/Type /Catalog');
+ $this->_out('/Pages 1 0 R');
+ if($this->ZoomMode=='fullpage') {
+ $this->_out('/OpenAction [3 0 R /Fit]');
+ }
+ elseif($this->ZoomMode=='fullwidth') {
+ $this->_out('/OpenAction [3 0 R /FitH null]');
+ }
+ elseif($this->ZoomMode=='real') {
+ $this->_out('/OpenAction [3 0 R /XYZ null null 1]');
+ }
+ elseif(!is_string($this->ZoomMode)) {
+ $this->_out('/OpenAction [3 0 R /XYZ null null '.($this->ZoomMode/100).']');
+ }
+ if($this->LayoutMode=='single') {
+ $this->_out('/PageLayout /SinglePage');
+ }
+ elseif($this->LayoutMode=='continuous') {
+ $this->_out('/PageLayout /OneColumn');
+ }
+ elseif($this->LayoutMode=='two') {
+ $this->_out('/PageLayout /TwoColumnLeft');
+ }
+ }
+
+ /**
+ * _puttrailer
+ * @access protected
+ */
+ function _puttrailer() {
+ $this->_out('/Size '.($this->n+1));
+ $this->_out('/Root '.$this->n.' 0 R');
+ $this->_out('/Info '.($this->n-1).' 0 R');
+ }
+
+ /**
+ * _putheader
+ * @access protected
+ */
+ function _putheader() {
+ $this->_out('%PDF-'.$this->PDFVersion);
+ }
+
+ /**
+ * _enddoc
+ * @access protected
+ */
+ function _enddoc() {
+ $this->_putheader();
+ $this->_putpages();
+ $this->_putresources();
+ //Info
+ $this->_newobj();
+ $this->_out('<<');
+ $this->_putinfo();
+ $this->_out('>>');
+ $this->_out('endobj');
+ //Catalog
+ $this->_newobj();
+ $this->_out('<<');
+ $this->_putcatalog();
+ $this->_out('>>');
+ $this->_out('endobj');
+ //Cross-ref
+ $o=strlen($this->buffer);
+ $this->_out('xref');
+ $this->_out('0 '.($this->n+1));
+ $this->_out('0000000000 65535 f ');
+ for($i=1;$i<=$this->n;$i++) {
+ $this->_out(sprintf('%010d 00000 n ',$this->offsets[$i]));
+ }
+ //Trailer
+ $this->_out('trailer');
+ $this->_out('<<');
+ $this->_puttrailer();
+ $this->_out('>>');
+ $this->_out('startxref');
+ $this->_out($o);
+ $this->_out('%%EOF');
+ $this->state=3;
+ }
+
+ /**
+ * _beginpage
+ * @access protected
+ */
+ function _beginpage($orientation) {
+ $this->page++;
+ $this->pages[$this->page]='';
+ $this->state=2;
+ $this->x=$this->lMargin;
+ $this->y=$this->tMargin;
+ $this->FontFamily='';
+ //Page orientation
+ if(empty($orientation)) {
+ $orientation=$this->DefOrientation;
+ }
+ else {
+ $orientation=strtoupper($orientation{0});
+ if($orientation!=$this->DefOrientation) {
+ $this->OrientationChanges[$this->page]=true;
+ }
+ }
+ if($orientation!=$this->CurOrientation) {
+ //Change orientation
+ if($orientation=='P') {
+ $this->wPt=$this->fwPt;
+ $this->hPt=$this->fhPt;
+ $this->w=$this->fw;
+ $this->h=$this->fh;
+ }
+ else {
+ $this->wPt=$this->fhPt;
+ $this->hPt=$this->fwPt;
+ $this->w=$this->fh;
+ $this->h=$this->fw;
+ }
+ $this->PageBreakTrigger=$this->h-$this->bMargin;
+ $this->CurOrientation=$orientation;
+ }
+ }
+
+ /**
+ * End of page contents
+ * @access protected
+ */
+ function _endpage() {
+ $this->state=1;
+ }
+
+ /**
+ * Begin a new object
+ * @access protected
+ */
+ function _newobj() {
+ $this->n++;
+ $this->offsets[$this->n]=strlen($this->buffer);
+ $this->_out($this->n.' 0 obj');
+ }
+
+ /**
+ * Underline text
+ * @access protected
+ */
+ function _dounderline($x,$y,$txt) {
+ $up = $this->CurrentFont['up'];
+ $ut = $this->CurrentFont['ut'];
+ $w = $this->GetStringWidth($txt) + $this->ws * substr_count($txt,' ');
+ return sprintf('%.2f %.2f %.2f %.2f re f', $x * $this->k, ($this->h - ($y - $up / 1000 * $this->FontSize)) * $this->k, $w * $this->k, -$ut / 1000 * $this->FontSizePt);
+ }
+
+ /**
+ * Extract info from a JPEG file
+ * @access protected
+ */
+ function _parsejpg($file) {
+ $a=GetImageSize($file);
+ if(empty($a)) {
+ $this->Error('Missing or incorrect image file: '.$file);
+ }
+ if($a[2]!=2) {
+ $this->Error('Not a JPEG file: '.$file);
+ }
+ if(!isset($a['channels']) or $a['channels']==3) {
+ $colspace='DeviceRGB';
+ }
+ elseif($a['channels']==4) {
+ $colspace='DeviceCMYK';
+ }
+ else {
+ $colspace='DeviceGray';
+ }
+ $bpc=isset($a['bits']) ? $a['bits'] : 8;
+ //Read whole file
+ $f=fopen($file,'rb');
+ $data='';
+ while(!feof($f)) {
+ $data.=fread($f,4096);
+ }
+ fclose($f);
+ return array('w'=>$a[0],'h'=>$a[1],'cs'=>$colspace,'bpc'=>$bpc,'f'=>'DCTDecode','data'=>$data);
+ }
+
+ /**
+ * Extract info from a PNG file
+ * @access protected
+ */
+ function _parsepng($file) {
+ $f=fopen($file,'rb');
+ if(empty($f)) {
+ $this->Error('Can\'t open image file: '.$file);
+ }
+ //Check signature
+ if(fread($f,8)!=chr(137).'PNG'.chr(13).chr(10).chr(26).chr(10)) {
+ $this->Error('Not a PNG file: '.$file);
+ }
+ //Read header chunk
+ fread($f,4);
+ if(fread($f,4)!='IHDR') {
+ $this->Error('Incorrect PNG file: '.$file);
+ }
+ $w=$this->_freadint($f);
+ $h=$this->_freadint($f);
+ $bpc=ord(fread($f,1));
+ if($bpc>8) {
+ $this->Error('16-bit depth not supported: '.$file);
+ }
+ $ct=ord(fread($f,1));
+ if($ct==0) {
+ $colspace='DeviceGray';
+ }
+ elseif($ct==2) {
+ $colspace='DeviceRGB';
+ }
+ elseif($ct==3) {
+ $colspace='Indexed';
+ }
+ else {
+ $this->Error('Alpha channel not supported: '.$file);
+ }
+ if(ord(fread($f,1))!=0) {
+ $this->Error('Unknown compression method: '.$file);
+ }
+ if(ord(fread($f,1))!=0) {
+ $this->Error('Unknown filter method: '.$file);
+ }
+ if(ord(fread($f,1))!=0) {
+ $this->Error('Interlacing not supported: '.$file);
+ }
+ fread($f,4);
+ $parms='/DecodeParms <>';
+ //Scan chunks looking for palette, transparency and image data
+ $pal='';
+ $trns='';
+ $data='';
+ do {
+ $n=$this->_freadint($f);
+ $type=fread($f,4);
+ if($type=='PLTE') {
+ //Read palette
+ $pal=fread($f,$n);
+ fread($f,4);
+ }
+ elseif($type=='tRNS') {
+ //Read transparency info
+ $t=fread($f,$n);
+ if($ct==0) {
+ $trns=array(ord(substr($t,1,1)));
+ }
+ elseif($ct==2) {
+ $trns=array(ord(substr($t,1,1)),ord(substr($t,3,1)),ord(substr($t,5,1)));
+ }
+ else {
+ $pos=strpos($t,chr(0));
+ if($pos!==false) {
+ $trns=array($pos);
+ }
+ }
+ fread($f,4);
+ }
+ elseif($type=='IDAT') {
+ //Read image data block
+ $data.=fread($f,$n);
+ fread($f,4);
+ }
+ elseif($type=='IEND') {
+ break;
+ }
+ else {
+ fread($f,$n+4);
+ }
+ }
+ while($n);
+ if($colspace=='Indexed' and empty($pal)) {
+ $this->Error('Missing palette in '.$file);
+ }
+ fclose($f);
+ return array('w'=>$w, 'h'=>$h, 'cs'=>$colspace, 'bpc'=>$bpc, 'f'=>'FlateDecode', 'parms'=>$parms, 'pal'=>$pal, 'trns'=>$trns, 'data'=>$data);
+ }
+
+ /**
+ * Read a 4-byte integer from file
+ * @access protected
+ */
+ function _freadint($f) {
+ //Read a 4-byte integer from file
+ $a=unpack('Ni',fread($f,4));
+ return $a['i'];
+ }
+
+ /**
+ * Format a text string
+ * @access protected
+ */
+ function _textstring($s) {
+ if($this->isunicode) {
+ //Convert string to UTF-16BE
+ $s = $this->UTF8ToUTF16BE($s, true);
+ }
+ return '('. $this->_escape($s).')';
+ }
+
+ /**
+ * Format a text string
+ * @access protected
+ */
+ function _escapetext($s) {
+ if($this->isunicode) {
+ //Convert string to UTF-16BE
+ $s = $this->UTF8ToUTF16BE($s, false);
+ }
+ return $this->_escape($s);
+ }
+
+ /**
+ * Add \ before \, ( and )
+ * @access protected
+ */
+ function _escape($s) {
+ return strtr($s, array(')' => '\\)', '(' => '\\(', '\\' => '\\\\'));
+ }
+
+ /**
+ *
+ * @access protected
+ */
+ function _putstream($s) {
+ $this->_out('stream');
+ $this->_out($s);
+ $this->_out('endstream');
+ }
+
+ /**
+ * Add a line to the document
+ * @access protected
+ */
+ function _out($s) {
+ if($this->state==2) {
+ $this->pages[$this->page] .= $s."\n";
+ }
+ else {
+ $this->buffer .= $s."\n";
+ }
+ }
+
+ /**
+ * Adds unicode fonts.
+ * Based on PDF Reference 1.3 (section 5)
+ * @access protected
+ * @author Nicola Asuni
+ * @since 1.52.0.TC005 (2005-01-05)
+ */
+ function _puttruetypeunicode($font) {
+ // Type0 Font
+ // A composite fontâa font composed of other fonts, organized hierarchically
+ $this->_newobj();
+ $this->_out('<_out('/Subtype /Type0');
+ $this->_out('/BaseFont /'.$font['name'].'');
+ $this->_out('/Encoding /Identity-H'); //The horizontal identity mapping for 2-byte CIDs; may be used with CIDFonts using any Registry, Ordering, and Supplement values.
+ $this->_out('/DescendantFonts ['.($this->n + 1).' 0 R]');
+ $this->_out('>>');
+ $this->_out('endobj');
+
+ // CIDFontType2
+ // A CIDFont whose glyph descriptions are based on TrueType font technology
+ $this->_newobj();
+ $this->_out('<_out('/Subtype /CIDFontType2');
+ $this->_out('/BaseFont /'.$font['name'].'');
+ $this->_out('/CIDSystemInfo '.($this->n + 1).' 0 R');
+ $this->_out('/FontDescriptor '.($this->n + 2).' 0 R');
+ if (isset($font['desc']['MissingWidth'])){
+ $this->_out('/DW '.$font['desc']['MissingWidth'].''); // The default width for glyphs in the CIDFont MissingWidth
+ }
+ $w = "";
+ foreach ($font['cw'] as $cid => $width) {
+ $w .= ''.$cid.' ['.$width.'] '; // define a specific width for each individual CID
+ }
+ $this->_out('/W ['.$w.']'); // A description of the widths for the glyphs in the CIDFont
+ $this->_out('/CIDToGIDMap '.($this->n + 3).' 0 R');
+ $this->_out('>>');
+ $this->_out('endobj');
+
+ // CIDSystemInfo dictionary
+ // A dictionary containing entries that define the character collection of the CIDFont.
+ $this->_newobj();
+ $this->_out('<_out('/Ordering (UCS)'); // A string that uniquely names a character collection issued by a specific registry
+ $this->_out('/Supplement 0'); // The supplement number of the character collection.
+ $this->_out('>>');
+ $this->_out('endobj');
+
+ // Font descriptor
+ // A font descriptor describing the CIDFontâs default metrics other than its glyph widths
+ $this->_newobj();
+ $this->_out('<_out('/FontName /'.$font['name']);
+ foreach ($font['desc'] as $key => $value) {
+ $this->_out('/'.$key.' '.$value);
+ }
+ if ($font['file']) {
+ // A stream containing a TrueType font program
+ $this->_out('/FontFile2 '.$this->FontFiles[$font['file']]['n'].' 0 R');
+ }
+ $this->_out('>>');
+ $this->_out('endobj');
+
+ // Embed CIDToGIDMap
+ // A specification of the mapping from CIDs to glyph indices
+ $this->_newobj();
+ $ctgfile = $this->_getfontpath().$font['ctg'];
+ if(!file_exists($ctgfile)) {
+ $this->Error('Font file not found: '.$ctgfile);
+ }
+ $size = filesize($ctgfile);
+ $this->_out('<_out('/Filter /FlateDecode');
+ }
+ $this->_out('>>');
+ $this->_putstream(file_get_contents($ctgfile));
+ $this->_out('endobj');
+ }
+
+ /**
+ * Converts UTF-8 strings to codepoints array.
+ * Invalid byte sequences will be replaced with 0xFFFD (replacement character)
+ * Based on: http://www.faqs.org/rfcs/rfc3629.html
+ *
+ * Char. number range | UTF-8 octet sequence
+ * (hexadecimal) | (binary)
+ * --------------------+-----------------------------------------------
+ * 0000 0000-0000 007F | 0xxxxxxx
+ * 0000 0080-0000 07FF | 110xxxxx 10xxxxxx
+ * 0000 0800-0000 FFFF | 1110xxxx 10xxxxxx 10xxxxxx
+ * 0001 0000-0010 FFFF | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
+ * ---------------------------------------------------------------------
+ *
+ * ABFN notation:
+ * ---------------------------------------------------------------------
+ * UTF8-octets = *( UTF8-char )
+ * UTF8-char = UTF8-1 / UTF8-2 / UTF8-3 / UTF8-4
+ * UTF8-1 = %x00-7F
+ * UTF8-2 = %xC2-DF UTF8-tail
+ *
+ * UTF8-3 = %xE0 %xA0-BF UTF8-tail / %xE1-EC 2( UTF8-tail ) /
+ * %xED %x80-9F UTF8-tail / %xEE-EF 2( UTF8-tail )
+ * UTF8-4 = %xF0 %x90-BF 2( UTF8-tail ) / %xF1-F3 3( UTF8-tail ) /
+ * %xF4 %x80-8F 2( UTF8-tail )
+ * UTF8-tail = %x80-BF
+ * ---------------------------------------------------------------------
+ *
+ * @param string $str string to process.
+ * @return array containing codepoints (UTF-8 characters values)
+ * @access protected
+ * @author Nicola Asuni
+ * @since 1.53.0.TC005 (2005-01-05)
+ */
+ function UTF8StringToArray($str) {
+ if(!$this->isunicode) {
+ return $str; // string is not in unicode
+ }
+ $unicode = array(); // array containing unicode values
+ $bytes = array(); // array containing single character byte sequences
+ $numbytes = 1; // number of octetc needed to represent the UTF-8 character
+
+ $str .= ""; // force $str to be a string
+ $length = strlen($str);
+
+ for($i = 0; $i < $length; $i++) {
+ $char = ord($str{$i}); // get one string character at time
+ if(count($bytes) == 0) { // get starting octect
+ if ($char <= 0x7F) {
+ $unicode[] = $char; // use the character "as is" because is ASCII
+ $numbytes = 1;
+ } elseif (($char >> 0x05) == 0x06) { // 2 bytes character (0x06 = 110 BIN)
+ $bytes[] = ($char - 0xC0) << 0x06;
+ $numbytes = 2;
+ } elseif (($char >> 0x04) == 0x0E) { // 3 bytes character (0x0E = 1110 BIN)
+ $bytes[] = ($char - 0xE0) << 0x0C;
+ $numbytes = 3;
+ } elseif (($char >> 0x03) == 0x1E) { // 4 bytes character (0x1E = 11110 BIN)
+ $bytes[] = ($char - 0xF0) << 0x12;
+ $numbytes = 4;
+ } else {
+ // use replacement character for other invalid sequences
+ $unicode[] = 0xFFFD;
+ $bytes = array();
+ $numbytes = 1;
+ }
+ } elseif (($char >> 0x06) == 0x02) { // bytes 2, 3 and 4 must start with 0x02 = 10 BIN
+ $bytes[] = $char - 0x80;
+ if (count($bytes) == $numbytes) {
+ // compose UTF-8 bytes to a single unicode value
+ $char = $bytes[0];
+ for($j = 1; $j < $numbytes; $j++) {
+ $char += ($bytes[$j] << (($numbytes - $j - 1) * 0x06));
+ }
+ if ((($char >= 0xD800) AND ($char <= 0xDFFF)) OR ($char >= 0x10FFFF)) {
+ /* The definition of UTF-8 prohibits encoding character numbers between
+ U+D800 and U+DFFF, which are reserved for use with the UTF-16
+ encoding form (as surrogate pairs) and do not directly represent
+ characters. */
+ $unicode[] = 0xFFFD; // use replacement character
+ }
+ else {
+ $unicode[] = $char; // add char to array
+ }
+ // reset data for next char
+ $bytes = array();
+ $numbytes = 1;
+ }
+ } else {
+ // use replacement character for other invalid sequences
+ $unicode[] = 0xFFFD;
+ $bytes = array();
+ $numbytes = 1;
+ }
+ }
+ return $unicode;
+ }
+
+ /**
+ * Converts UTF-8 strings to UTF16-BE.
+ * Based on: http://www.faqs.org/rfcs/rfc2781.html
+ *
+ * Encoding UTF-16:
+ *
+ * Encoding of a single character from an ISO 10646 character value to
+ * UTF-16 proceeds as follows. Let U be the character number, no greater
+ * than 0x10FFFF.
+ *
+ * 1) If U < 0x10000, encode U as a 16-bit unsigned integer and
+ * terminate.
+ *
+ * 2) Let U' = U - 0x10000. Because U is less than or equal to 0x10FFFF,
+ * U' must be less than or equal to 0xFFFFF. That is, U' can be
+ * represented in 20 bits.
+ *
+ * 3) Initialize two 16-bit unsigned integers, W1 and W2, to 0xD800 and
+ * 0xDC00, respectively. These integers each have 10 bits free to
+ * encode the character value, for a total of 20 bits.
+ *
+ * 4) Assign the 10 high-order bits of the 20-bit U' to the 10 low-order
+ * bits of W1 and the 10 low-order bits of U' to the 10 low-order
+ * bits of W2. Terminate.
+ *
+ * Graphically, steps 2 through 4 look like:
+ * U' = yyyyyyyyyyxxxxxxxxxx
+ * W1 = 110110yyyyyyyyyy
+ * W2 = 110111xxxxxxxxxx
+ *
+ * @param string $str string to process.
+ * @param boolean $setbom 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
+ */
+ function UTF8ToUTF16BE($str, $setbom=true) {
+ if(!$this->isunicode) {
+ return $str; // string is not in unicode
+ }
+ $outstr = ""; // string to be returned
+ $unicode = $this->UTF8StringToArray($str); // array containing UTF-8 unicode values
+ $numitems = count($unicode);
+
+ if ($setbom) {
+ $outstr .= "\xFE\xFF"; // Byte Order Mark (BOM)
+ }
+ foreach($unicode as $char) {
+ if($char == 0xFFFD) {
+ $outstr .= "\xFF\xFD"; // replacement character
+ } elseif ($char < 0x10000) {
+ $outstr .= chr($char >> 0x08);
+ $outstr .= chr($char & 0xFF);
+ } else {
+ $char -= 0x10000;
+ $w1 = 0xD800 | ($char >> 0x10);
+ $w2 = 0xDC00 | ($char & 0x3FF);
+ $outstr .= chr($w1 >> 0x08);
+ $outstr .= chr($w1 & 0xFF);
+ $outstr .= chr($w2 >> 0x08);
+ $outstr .= chr($w2 & 0xFF);
+ }
+ }
+ return $outstr;
+ }
+
+ // ====================================================
+
+ /**
+ * Set header font.
+ * @param array $font font
+ * @since 1.1
+ */
+ function setHeaderFont($font) {
+ $this->header_font = $font;
+ }
+
+ /**
+ * Set footer font.
+ * @param array $font font
+ * @since 1.1
+ */
+ function setFooterFont($font) {
+ $this->footer_font = $font;
+ }
+
+ /**
+ * Set language array.
+ * @param array $language
+ * @since 1.1
+ */
+ function setLanguageArray($language) {
+ $this->l = $language;
+ }
+
+ /**
+ * Set document barcode.
+ * @param string $bc barcode
+ */
+ function setBarcode($bc="") {
+ $this->barcode = $bc;
+ }
+
+ /**
+ * Print Barcode.
+ * @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 (I25, C128A, C128B, C128C, C39)
+ * @param string $style barcode style
+ * @param string $font font for text
+ * @param int $xres x resolution
+ * @param string $code code to print
+ */
+ function writeBarcode($x, $y, $w, $h, $type, $style, $font, $xres, $code) {
+ require_once(dirname(__FILE__)."/barcode/barcode.php");
+ require_once(dirname(__FILE__)."/barcode/i25object.php");
+ require_once(dirname(__FILE__)."/barcode/c39object.php");
+ require_once(dirname(__FILE__)."/barcode/c128aobject.php");
+ require_once(dirname(__FILE__)."/barcode/c128bobject.php");
+ require_once(dirname(__FILE__)."/barcode/c128cobject.php");
+
+ if (empty($code)) {
+ return;
+ }
+
+ if (empty($style)) {
+ $style = BCS_ALIGN_LEFT;
+ $style |= BCS_IMAGE_PNG;
+ $style |= BCS_TRANSPARENT;
+ //$style |= BCS_BORDER;
+ //$style |= BCS_DRAW_TEXT;
+ //$style |= BCS_STRETCH_TEXT;
+ //$style |= BCS_REVERSE_COLOR;
+ }
+ if (empty($font)) {$font = BCD_DEFAULT_FONT;}
+ if (empty($xres)) {$xres = BCD_DEFAULT_XRES;}
+
+ $scale_factor = 1.5 * $xres * $this->k;
+ $bc_w = round($w * $scale_factor); //width in points
+ $bc_h = round($h * $scale_factor); //height in points
+
+ switch (strtoupper($type)) {
+ case "I25": {
+ $obj = new I25Object($bc_w, $bc_h, $style, $code);
+ break;
+ }
+ case "C128A": {
+ $obj = new C128AObject($bc_w, $bc_h, $style, $code);
+ break;
+ }
+ default:
+ case "C128B": {
+ $obj = new C128BObject($bc_w, $bc_h, $style, $code);
+ break;
+ }
+ case "C128C": {
+ $obj = new C128CObject($bc_w, $bc_h, $style, $code);
+ break;
+ }
+ case "C39": {
+ $obj = new C39Object($bc_w, $bc_h, $style, $code);
+ break;
+ }
+ }
+
+ $obj->SetFont($font);
+ $obj->DrawObject($xres);
+
+ //use a temporary file....
+ $tmpName = tempnam(K_PATH_CACHE,'img');
+ imagepng($obj->getImage(), $tmpName);
+ $this->Image($tmpName, $x, $y, $w, $h, 'png');
+ $obj->DestroyObject();
+ unset($obj);
+ unlink($tmpName);
+ }
+
+ /**
+ * Returns the PDF data.
+ */
+ function getPDFData() {
+ if($this->state < 3) {
+ $this->Close();
+ }
+ return $this->buffer;
+ }
+
+ // --- HTML PARSER FUNCTIONS ---
+
+ /**
+ * Allows to preserve some HTML formatting.
+ * Supports: h1, h2, h3, h4, h5, h6, b, u, i, a, img, p, br, strong, em, font, blockquote, li, ul, ol, hr, td, th, tr, table, sup, sub, small
+ * @param string $html text to display
+ * @param boolean $ln if true add a new line after text (default = true)
+ * @param int $fill Indicates if the background must be painted (1) or transparent (0). Default value: 0.
+ */
+ function writeHTML($html, $ln=true, $fill=0) {
+
+ // store some variables
+ $html=strip_tags($html,"