Upgrade TCPDF from 5_3_00 to 5_9_056

This commit is contained in:
james 2011-02-23 22:42:29 +00:00
parent 4f319cea75
commit 56119710a0
269 changed files with 56371 additions and 31413 deletions

View File

@ -1,9 +1,9 @@
<?php
//============================================================+
// File name : 2dbarcodes.php
// Version : 1.0.006
// Version : 1.0.007
// Begin : 2009-04-07
// Last Update : 2010-06-06
// Last Update : 2010-12-16
// Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -12,16 +12,16 @@
// This file is part of TCPDF software library.
//
// TCPDF is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// TCPDF is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// You should have received a copy of the GNU Lesser General Public License
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
//
// See LICENSE.TXT file for more information.
@ -33,30 +33,25 @@
//============================================================+
/**
* @file
* PHP class to creates array representations for 2D barcodes to be used with TCPDF.
* @package com.tecnick.tcpdf
* @abstract Functions for generating string representation of 2D barcodes.
* @author Nicola Asuni
* @copyright 2009-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @version 1.0.006
* @version 1.0.007
*/
/**
* PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br>
* @name TCPDFBarcode
* @package com.tecnick.tcpdf
* @version 1.0.006
* @author Nicola Asuni
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
/**
* @class TCPDF2DBarcode
* PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).
* @package com.tecnick.tcpdf
* @version 1.0.007
* @author Nicola Asuni
*/
class TCPDF2DBarcode {
/**
* @var array representation of barcode.
* @access protected
* Array representation of barcode.
* @protected
*/
protected $barcode_array = false;
@ -67,8 +62,8 @@ class TCPDF2DBarcode {
* <li>$arrcode['num_rows'] required number of rows</li>
* <li>$arrcode['num_cols'] required number of columns</li>
* <li>$arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)</li></ul>
* @param string $code code to print
* @param string $type type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li></ul>
* @param $code (string) code to print
* @param $type (string) type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li></ul>
*/
public function __construct($code, $type) {
$this->setBarcode($code, $type);
@ -84,8 +79,8 @@ class TCPDF2DBarcode {
/**
* Set the barcode.
* @param string $code code to print
* @param string $type type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li></ul>
* @param $code (string) code to print
* @param $type (string) type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li></ul>
* @return array
*/
public function setBarcode($code, $type) {
@ -175,4 +170,3 @@ class TCPDF2DBarcode {
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -1,3 +1,481 @@
5.9.056 (2011-02-22)
- A bug on fixHTMLCode() method was fixed.
- Automatic line break for HTML was fixed.
5.9.055 (2011-02-17)
- Another bug related to HTML table page break was fixed.
5.9.054 (2011-02-16)
- A bug related to HTML table page break was fixed.
5.9.053 (2011-02-16)
- Support for HTMl attribute display="none" was added.
5.9.052 (2011-02-15)
- A bug related to HTML automatic newlines was fixed.
5.9.051 (2011-02-12)
- "Commas at beginning of new lines" problem was fixed.
5.9.050 (2011-02-11)
- Bug #3177606 "SVG Bar chart error" was fixed.
5.9.049 (2011-02-03)
- Bug #3170777 "TCPDF creates a new page after a single line in writeHTML" was fixed.
5.9.048 (2011-02-02)
- No changes. Just released to override previous release that was not uploaded correctly.
5.9.047 (2011-01-28)
- Bug #3167115 "PDF error in <table> (example 48)" was fixed (was introduced in 5.8.046).
5.9.046 (2011-01-18)
- PDF view/print layers are now automatically turned off if not used (see setVisibility() method).
5.9.045 (2011-01-17)
- HTML list support were improved.
5.9.044 (2011-01-15)
- Bug #3158422 "writeHTMLCell Loop" was fixed.
- Some HTML image alignment problems were fixed.
5.9.043 (2011-01-14)
- Bug #3158178 "PHP Notice" was fixed.
- Bug #3158193 "Endless loop in writeHTML" was fixed.
- Bug #3157764 "SVG Pie chart incorrectly rendered2".
5.9.042 (2011-01-14)
- Some problems of the PHP4 version were fixed.
5.9.041 (2011-01-13)
- A problem with SVG elliptical arc path was fixed (ref. bug #3156574).
- A problem related to font weight on HTML table headers was fixed.
5.9.040 (2011-01-12)
- A bug related to empty pages after table was fixed.
5.9.039 (2011-01-12)
- Bug item #3155759 "openssl_random_pseudo_bytes() slow under Windows" was fixed.
5.9.038 (2011-01-11)
- Minor bugs were fixed.
5.9.037 (2011-01-09)
- An alignment problem for HTML texts was fixed.
5.9.036 (2011-01-07)
- A bug related to HTML tables on header was fixed.
5.9.035 (2011-01-03)
- A problem related to HTML table border alignment was fixed.
- Bug #2996366 "FastCGI and Header Problems" was fixed.
5.9.034 (2010-12-19)
- DejaVu and GNU Free fonts were updated.
5.9.033 (2010-12-18)
- Source code documetnation was improved.
5.9.032 (2010-12-18)
- Default font stretching and spacing values are now inherited by HTML methods.
5.9.031 (2010-12-16)
- Source code documentation errors were fixed.
5.9.030 (2010-12-16)
- Several source code documentation errors were fixed.
- Source code style was changed for Doxygen.
- Source code documentation was moved online to http://www.tcpdf.org
5.9.029 (2010-12-04)
- The $fitbox parameter on Image() method was extended to specify image alignment inside the box (check the example n. 9).
5.9.028 (2010-12-03)
- Font utils makefont.php and makeallttffonts.php were updated.
5.9.027 (2010-12-01)
- Spot Colors are now better integrated with HTML mode.
- Method SetDocInfoUnicode() was added to turn on/off Unicode mode for document information dictionary (meta tags) - check the example n. 19.
5.9.026 (2010-12-01)
- A problem with mixed text directions on HTML was fixed.
5.9.025 (2010-12-01)
- The AddSpotColor() now automatically fills the spotcolor array (defined on spotcolors.php file).
5.9.024 (2010-11-30)
- Bug item #3123612 "SVG not use gradientTransform in percentage mode" was fixed.
5.9.023 (2010-11-25)
- A potential bug on SVG transcoder was fixed.
5.9.022 (2010-11-21)
- Method ImageEPS includes support for EPS/AI Spot colors.
- Method ImageEPS includes a new parameter $fixoutvals to remove values outside the bounding box.
5.9.021 (2010-11-20)
- Support for custom bullet points images was added (check the example n.6)
- Examples n. 6 and 61 were update (check the comments inside).
5.9.020 (2010-11-19)
- A problem related to additional page when using multicolumn mode was fixed.
5.9.019 (2010-11-19)
- An SVG bug was fixed.
- ImageSVG() and ImageEPS() methods now accepts image data streams (put the string on the $file parameter preceded by '@' character).
- Option 'E' was added to the $dest parameter of Output() method to return the document as base64 mime multi-part email attachment (RFC 2045).
5.9.018 (2010-11-19)
- An SVG bug was fixed.
5.9.017 (2010-11-16)
- Tagline color was set to transparent.
- The method fixHTMLCode() was added to automatically clean up HTML code (requires HTML Tidy).
5.9.016 (2010-11-16)
- Bug item #3109705 "list item page break hanging bullet" was fixed.
5.9.015 (2010-11-16)
- Bug item affecting QRCode was fixed.
- Some bugs affecting HTML lists were fixed.
- ImageSVG() and fitBlock() methods were improved to handle some SVG problems.
- Some problems with PHP4 compatibility were fixed.
5.9.014 (2010-11-15)
- Bug item #3109464 "QRCode error" was fixed.
5.9.013 (2010-11-15)
- Bug item #3109257 "Problem with interlaced GIFs and PNGs" was fixed.
- Image function now accepts image data streams (check example n. 9).
5.9.012 (2010-11-12)
- Method getTCPDFVersion() was added.
- PDF_PRODUCER constant was removed.
- Method convertHTMLColorToDec() was improved.
- HTML colors now support spot color names defined on the new spotcolors.php file.
- The default method Header() was improved to support SVG and EPS/AI images.
- A bug on SVG importer was fixed.
5.9.011 (2010-11-02)
- Bug item #3101486 "Bug Fix for image loading" was fixed.
5.9.010 (2010-10-27)
- Support for CSS properties 'border-spacing' and 'padding' for tables were added.
- Several language files were added.
5.9.009 (2010-10-21)
- HTML text alignment was improved to include the case of RTL text on LTR direction and LTR text on RTL direction.
5.9.008 (2010-10-21)
- Bug item #3091502 "Bookmark oddity" was fixed.
- HTML internal links now accepts page number and Y position.
- The method write1DBarcode() was improved to accept separate horizontal and vertical padding (see example n. 27).
5.9.007 (2010-10-20)
- Method adjustCellPadding() was fixed to handle bad input.
5.9.006 (2010-10-19)
- Support for AES 256 bit encryption was added (see example n. 16).
- Method getNumLines() was fixed for the empty string case.
5.9.005 (2010-10-18)
- Method addPageRegion() was changed to accept regions starting exactly from the top of the page.
5.9.004 (2010-10-18)
- A bug related to annotations was fixed.
- The file unicode_data.php was canged to encapsulate all data in a class.
- The file htmlcolors.php was changed to remove the global variable.
5.9.003 (2010-10-15)
- Support for no-write page regions was added. Check the example n. 64 and new methods setPageRegions(), addPageRegion(), getPageRegions(), removePageRegion().
- A bug on Right-To-Left alignment was fixed.
5.9.002 (2010-10-08)
- Cell method was improved to preserve the font stretching and spacing values when using the $stretch parameter (see example n. 4).
5.9.001 (2010-10-07)
- The problem of blank page for nobr table higher than a single page was fixed.
5.9.000 (2010-10-06)
- Support for text stretching and spacing (kerning) was added, see example n. 63 and methods setFontStretching(), getFontStretching(), setFontSpacing(), getFontSpacing().
- Support for CSS properties 'font-stretch' and 'letter-spacing' was added (see example n. 63).
- The cMargin state was replaced by cell_padding array that can be set/get using setCellPadding() and getCellPadding() methods.
- Methods getCellPaddings() and setCellPaddings() were added to fine tune cell paddings (see example n. 5).
- Methods getCellMargins() and setCellMargins() were added to fine tune cell margins (see example n. 5).
- Method write1DBarcode() was improved to permit custom labels (see example n. 27).
- Method ImagePngAlpha() now includes support for ImageMagick to improve performances.
- XObject Template support was extended to support Multicell(), writeHTML() and writeHTMLCell() methods.
- The signature of getNumLines() and getStringHeight() methods is changed.
- Example n. 57 was updated.
// -------------------------------------------------------------------
5.8.034 (2010-09-27)
- A bug related to SetFont on XObject templates was fixed.
5.8.033 (2010-09-25)
- A problem with Footer() and multiple columns was fixed.
5.8.032 (2010-09-22)
- Bug #3073165 "Issues with changes to addHTMLVertSpace()" was fixed.
5.8.031 (2010-09-20)
- Bug #3071961 "Spaces in HTML" was fixed.
5.8.030 (2010-09-17)
- SVG support was improved and some bugs were fixed.
5.8.029 (2010-09-16)
- A problem with HTML borders was fixed.
5.8.028 (2010-09-13)
- Bug #3065224 "mcrypt_create_iv error on TCPDF 5.8.027 on PHP 5.3.2" was fixed.
5.8.027 (2010-09-13)
- Bug #3065118 "mcrypt_decrypt error on TCPDF 5.8.026 on PHP 5.3.2" was fixed.
5.8.026 (2010-09-13)
- A bug on addHTMLTOC() method was fixed. Note: be sure that the #TOC_PAGE_NUMBER# template has enough width to be printed correctly.
5.8.025 (2010-09-09)
- Bug #3062692 "Textarea inside a table" was fixed.
5.8.024 (2010-09-08)
- Bug #3062005 "Undefined variable: ann_obj_id" was fixed.
5.8.023 (2010-08-31)
- Forms bug added on version 5.8.019 was fixed.
5.8.022 (2010-08-31)
- Bug #3056632 "SVG rendered vertically flipped" was fixed.
5.8.021 (2010-08-30)
- A new CID-0 'chinese' font was added for traditional Chinese.
- Bug #3054287 'Inner tags are ignored due to "align" attribute' was fixed.
5.8.020 (2010-08-26)
- CSS "catch-all" class selector is now supported.
5.8.019 (2010-08-26)
- XObject Templates now includes support for links and annotations.
- A problem related to link alignment on cell was fixed.
- A problem related to SVG styles was fixed.
5.8.018 (2010-08-25)
- Method getNumberOfColumns() was added.
- A problem related to table header was fixed.
- Method getSVGTransformMatrix() was fixed to apply SVG transformations in the correct order.
- SVG support was improved and several bugs were fixed.
5.8.017 (2010-08-25)
- This version includes support for XObject Templates (see the new example n. 62).
- Methods starttemplate(), endTemplate() and printTemplate() were added (see the new example n. 62).
5.8.016 (2010-08-24)
- Alignment problem on write2DBarcode was fixed.
5.8.015 (2010-08-24)
- A problem arised with the latest bugfix was fixed.
5.8.014 (2010-08-23)
- Method _getxobjectdict() was added for better compatibility with external extensions.
- A bug related to radiobuttons was fixed.
- Bug #3051509 "new line after punctuation marks" was fixed (partially).
5.8.013 (2010-08-23)
- SVG support for 'direction' property was added.
- A problem on default width calculation for linear barcodes was fixed.
- New option was added to write1DBarcode() method to improve alignments (see example n. 27).
- Bug #3050896 "Nested HTML tables: styles are not applied" was fixed.
- Method _putresourcedict() was improved to include external XObject templates.
5.8.012 (2010-08-22)
- Support for SVG 'text-anchor' property was added.
5.8.011 (2010-08-21)
- Method write1DBarcode() was improved to be backward compatible (check the new example n. 27).
- Support for CSS width and height properties on images were added.
5.8.010 (2010-08-20)
- Documentation of unhtmlentities() was fixed.
- The 'fitwidth' option was added and border color problem was fixed on write1DBarcode() method (check the example n. 27).
5.8.009 (2010-08-20)
- Internal object numbering was improved.
- Some errors in object encryption were fixed.
5.8.008 (2010-08-19)
- Method write1DBarcode() was changed, check the example n. 27.
- Method Footer() was changed to account for barcode changes.
- Automatic calculation of K_PATH_URL constant was fixed on configuration file.
- Method setEqualColumns() was fixed for $width=0 case.
- Method AddTOC() was fixed for multipage and multicolumn modes.
- Better support for SVG "font-family" property.
- A problem on default Page Zoom mode was fixed.
- Several Annotation bugs were fixed.
5.8.007 (2010-08-18)
- A bug affecting HTML tables was fixed.
- Bug #3047500 "SVG not rendering paths properly" was fixed.
5.8.006 (2010-08-17)
- A bug affecting HTML table nesting was fixed.
5.8.005 (2010-08-17)
- A bug affecting the HTML 'select' tag in certain conditions was fixed.
5.8.004 (2010-08-17)
- Better support for HTML "font-family" property.
- A bug related to HTML multicolumn was fixed.
5.8.003 (2010-08-16)
- Better support for HTML "font-family" property.
5.8.002 (2010-08-14)
- HTML alignments were improved
- IMPORTANT: Default regular expression to find spaces has been changed to exclude the non-breaking-space (160 DEC- A0 HEX). If you are using setSpacesRE() method, please read the new documentation.
- Example n. 1 was updated.
5.8.001 (2010-08-12)
- Bug #3043650 "subsetchars incorrectly cached" was fixed.
5.8.000 (2010-08-11)
- A control to avoid bookmarking page 0 was added.
- addTOC() method now includes support for multicolumn mode.
- Support for tables in multicolumn mode was improved.
- Example n.10 was updated.
- All trimming functions were replaced with stringLeftTrim(), stringRightTrim() and stringTrim().
- HTML alignments were improved.
------------------------------------------------------------
5.7.003 (2010-08-08)
- Bug #3041263 "php source ending is bad" was fixed (all PHP files were updated, including fonts).
5.7.002 (2010-08-06)
- Methods copyPage(), movePage() and deletePage() were changed to account for internal markings.
5.7.001 (2010-08-05)
- Bug #3040105 "Broken PDF when using TOC (example 45)" was fixed.
5.7.000 (2010-08-03)
- CSS borders are now supported for HTML tables and other block tags (see example n. 61);
- Cell borders were improved (see example n. 57);
- Minor bugs were fixed.
------------------------------------------------------------
5.6.000 (2010-07-31)
- A bug with object IDs was fixes.
- Performances were improved.
------------------------------------------------------------
5.5.015 (2010-07-29)
- Automatic fix for unclosed self-closing tag.
- Support for deprecated 's' and 'strike' tags was added.
- Empty list items problem was fixed.
5.5.014 (2010-07-15)
- Support for external images was improved.
5.5.013 (2010-07-14)
- Bug #3029338 "FI and FO output destination filename bug" was fixed (previous fix was wrong).
5.5.012 (2010-07-14)
- Bug #3029310 "Font baseline inconsistencies with line-height and font-size" was fixed.
- Bug #3029338 "FI and FO output destination filename bug" was fixed.
5.5.011 (2010-07-09)
- Support for multiple CSS classes was added.
- The method getColumn() was added to return the current column number.
- Some regular Expressions were fixed to be more compatible with UTF-8.
5.5.010 (2010-07-06)
- Bug item #3025772 "Borders in all image functions are still flawed" was fixed.
5.5.009 (2010-07-05)
- A problem related to last page footer was fixed.
- Image alignments and fit-on-page features were improved.
5.5.008 (2010-07-02)
- A problem on table header alignment in booklet mode was fixed.
- Default graphic vars are now applied for setHeader();
5.5.007 (2010-07-02)
- Attribute "readonly" was added to input and textarea form fields.
- Vertical alignment feature was added on MultiCell() method only for simple text mode (see example n. 5).
- Text-Fit feature was added on MultiCell() method only for simple text mode (see example n. 5).
5.5.006 (2010-06-29)
- getStringHeight() and getNumLines() methods were fixed.
5.5.005 (2010-06-28)
- Bug #3022170 "getFontDescent() does not return correct descent value" was fixed.
- Some problems with multicolumn mode were fixed.
5.5.004 (2010-06-27)
- Bug #3021803 "SVG Border" was fixed.
5.5.003 (2010-06-26)
- On Write() method, blank lines at the beginning of a page or column are now automatically removed.
5.5.002 (2010-06-24)
- ToUnicode Identity-H name was replaced with a full CMap (to avoid preflight syntax error).
- Bug #3020638 "str_split() not available in php4" was fixed.
- Bug #3020665 "file_get_contents() too many parameters for php4" was fixed.
5.5.001 (2010-06-23)
- A problem on image streams was fixed.
5.5.000 (2010-06-22)
- Several PDF syntax errors (and related bugs) were fixed.
- Bug #3019090 "/Length values are wrong if AES encryption is used" was fixed.
------------------------------------------------------------
5.4.003 (2010-06-19)
- A problem related to page boxes was fixed.
- Bug #3016920 "Font subsetting issues when editing pdf" was partially fixed (Note that flattening transparency layers is currently incompatible with TrueTypeUnicode fonts).
5.4.002 (2010-06-18)
- A problem related with setProtection() method was fixed.
5.4.001 (2010-06-18)
- A problem related with setProtection() method was fixed.
5.4.000 (2010-06-18)
- The method setSignatureAppearance() was added, check the example n. 52.
- Several problems related to font subsetting were fixed.
------------------------------------------------------------
5.3.010 (2010-06-15)
- Previous release was corrupted.
5.3.009 (2010-06-15)
- Bug #3015934 "Bullets don't display correctly" was fixed.
5.3.008 (2010-06-13)
- This version fixes some problems of SVG rasterization.
5.3.007 (2010-06-13)
- This version improves SVG support.
5.3.006 (2010-06-10)
- This version includes a change in uniqid calls for backward compatibility with PHP4.
5.3.005 (2010-06-09)
- The method getPageSizeFromFormat() was changed to include all standard page formats (includes 281 page formats + variation).
5.3.004 (2010-06-08)
- Bug #3013291 "HTML table cell width" was fixed.
- Bug #3013294 "HTML table cell alignment" was fixed.
- The columns widths of HTML tables are now inherited from the first row.
5.3.003 (2010-06-08)
- Bug #3013102 "HTML table header misaligned after page break" was fixed.
5.3.002 (2010-06-07)
- The methods setFontSubsetting() and setFontSubsetting() were added to control the default font subsetting mode (see example n. 1).
- Bug #3012596 "Whitespace should not appeared after use Thai top characters" was fixed.

View File

@ -3,9 +3,11 @@
**********************************************************************
TCPDF is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version. Additionally,
YOU CAN'T REMOVE ANY TCPDF COPYRIGHT NOTICE OR LINK FROM THE
GENERATED PDF DOCUMENTS.
**********************************************************************
**********************************************************************

View File

@ -1,84 +1,90 @@
TCPDF - README
============================================================
I WISH TO IMPROVE AND EXPAND TCPDF BUT I NEED YOUR SUPPORT.
PLEASE MAKE A DONATION:
http: sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
Version: 5.3.002
Release date: 2010-06-07
Author: Nicola Asuni
Copyright (c) 2002-2010:
Nicola Asuni
Tecnick.com s.r.l.
Via Della Pace, 11
09044 Quartucciu (CA)
ITALY
www.tecnick.com
URLs:
http: www.tcpdf.org
http: www.sourceforge.net/projects/tcpdf
Description:
TCPDF is a PHP class for generating PDF files on-the-fly without requiring external extensions.
Main Features:
* no external libraries are required for the basic functions;
* all ISO page formats, custom page formats, custom margins and units of measure;
* UTF-8 Unicode and Right-To-Left languages;
* TrueTypeUnicode, OpenTypeUnicode, TrueType, OpenType, Type1 and CID-0 fonts;
* Font subsetting;
* methods to publish some XHTML + CSS code, Javascript and Forms;
* images, graphic (geometric figures) and transformation methods;
* supports JPEG, PNG and SVG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImagMagick (http: www.imagemagick.org/www/formats.html)
* 1D and 2D barcodes: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS, QR-Code, PDF417;
* Grayscale, RGB, CMYK, Spot Colors and Transparencies;
* automatic page header and footer management;
* document encryption and digital signature certifications;
* transactions to UNDO commands;
* PDF annotations, including links, text and file attachments;
* text rendering modes (fill, stroke and clipping);
* multiple columns mode;
* bookmarks and table of content;
* text hyphenation;
* automatic page break, line break and text alignments including justification;
* automatic page numbering and page groups;
* move and delete pages;
* page compression (requires php-zlib extension);
Installation (full instructions on http: www.tcpdf.org):
1. copy the folder on your Web server
2. set your installation path and other parameters on the config/tcpdf_config.php
3. call the examples/example_001.php page with your browser to see an example
Source Code Documentation:
doc/index.html
For Additional Documentation:
http: www.tcpdf.org
License
Copyright (C) 2002-2010 Nicola Asuni - Tecnick.com S.r.l.
TCPDF is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
TCPDF is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with TCPDF. If not, see <http: www.gnu.org/licenses/>.
See LICENSE.TXT file for more information.
============================================================
TCPDF - README
============================================================
I WISH TO IMPROVE AND EXPAND TCPDF BUT I NEED YOUR SUPPORT.
PLEASE MAKE A DONATION:
http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
Version: 5.9.056
Release date: 2011-02-22
Author: Nicola Asuni
Copyright (c) 2002-2011:
Nicola Asuni
Tecnick.com s.r.l.
Via Della Pace, 11
09044 Quartucciu (CA)
ITALY
www.tecnick.com
URLs:
http: www.tcpdf.org
http: www.sourceforge.net/projects/tcpdf
Description:
TCPDF is a PHP class for generating PDF files on-the-fly without requiring external extensions.
Main Features:
* no external libraries are required for the basic functions;
* all standard page formats, custom page formats, custom margins and units of measure;
* UTF-8 Unicode and Right-To-Left languages;
* TrueTypeUnicode, OpenTypeUnicode, TrueType, OpenType, Type1 and CID-0 fonts;
* font subsetting;
* methods to publish some XHTML + CSS code, Javascript and Forms;
* images, graphic (geometric figures) and transformation methods;
* supports JPEG, PNG and SVG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImagMagick (http: www.imagemagick.org/www/formats.html)
* 1D and 2D barcodes: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS, QR-Code, PDF417;
* Grayscale, RGB, CMYK, Spot Colors and Transparencies;
* automatic page header and footer management;
* document encryption up to 256 bit and digital signature certifications;
* transactions to UNDO commands;
* PDF annotations, including links, text and file attachments;
* text rendering modes (fill, stroke and clipping);
* multiple columns mode;
* no-write page regions;
* bookmarks and table of content;
* text hyphenation;
* text stretching and spacing (tracking/kerning);
* automatic page break, line break and text alignments including justification;
* automatic page numbering and page groups;
* move and delete pages;
* page compression (requires php-zlib extension);
* XOBject Templates;
Installation (full instructions on http: www.tcpdf.org):
1. copy the folder on your Web server
2. set your installation path and other parameters on the config/tcpdf_config.php
3. call the examples/example_001.php page with your browser to see an example
Source Code Documentation:
doc/index.html
http://www.tcpdf.org/doc/
For Additional Documentation:
http: www.tcpdf.org
License
Copyright (C) 2002-2011 Nicola Asuni - Tecnick.com S.r.l.
TCPDF is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version. Additionally,
YOU CAN'T REMOVE ANY TCPDF COPYRIGHT NOTICE OR LINK FROM THE
GENERATED PDF DOCUMENTS.
TCPDF is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the License
along with TCPDF. If not, see
<http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT>.
See LICENSE.TXT file for more information.
============================================================

View File

@ -1,9 +1,9 @@
<?php
//============================================================+
// File name : barcodes.php
// Version : 1.0.010
// Version : 1.0.012
// Begin : 2008-06-09
// Last Update : 2010-06-03
// Last Update : 2010-12-16
// Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -12,16 +12,16 @@
// This file is part of TCPDF software library.
//
// TCPDF is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// TCPDF is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// You should have received a copy of the GNU Lesser General Public License
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
//
// See LICENSE.TXT file for more information.
@ -33,30 +33,25 @@
//============================================================+
/**
* @file
* PHP class to creates array representations for common 1D barcodes to be used with TCPDF.
* @package com.tecnick.tcpdf
* @abstract Functions for generating string representation of common 1D barcodes.
* @author Nicola Asuni
* @copyright 2008-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @version 1.0.008
* @version 1.0.012
*/
/**
* PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br>
* @name TCPDFBarcode
* @package com.tecnick.tcpdf
* @version 1.0.008
* @author Nicola Asuni
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
/**
* @class TCPDFBarcode
* PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br>
* @package com.tecnick.tcpdf
* @version 1.0.012
* @author Nicola Asuni
*/
class TCPDFBarcode {
/**
* @var array representation of barcode.
* @access protected
* Array representation of barcode.
* @protected
*/
protected $barcode_array;
@ -71,8 +66,8 @@ class TCPDFBarcode {
* <li>$arrcode['bcode'][$k]['w'] bar width in units.</li>
* <li>$arrcode['bcode'][$k]['h'] bar height in units.</li>
* <li>$arrcode['bcode'][$k]['p'] bar top position (0 = top, 1 = middle)</li></ul>
* @param string $code code to print
* @param string $type type of barcode: <ul><li>C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.</li><li>C39+ : CODE 39 with checksum</li><li>C39E : CODE 39 EXTENDED</li><li>C39E+ : CODE 39 EXTENDED + CHECKSUM</li><li>C93 : CODE 93 - USS-93</li><li>S25 : Standard 2 of 5</li><li>S25+ : Standard 2 of 5 + CHECKSUM</li><li>I25 : Interleaved 2 of 5</li><li>I25+ : Interleaved 2 of 5 + CHECKSUM</li><li>C128A : CODE 128 A</li><li>C128B : CODE 128 B</li><li>C128C : CODE 128 C</li><li>EAN2 : 2-Digits UPC-Based Extention</li><li>EAN5 : 5-Digits UPC-Based Extention</li><li>EAN8 : EAN 8</li><li>EAN13 : EAN 13</li><li>UPCA : UPC-A</li><li>UPCE : UPC-E</li><li>MSI : MSI (Variation of Plessey code)</li><li>MSI+ : MSI + CHECKSUM (modulo 11)</li><li>POSTNET : POSTNET</li><li>PLANET : PLANET</li><li>RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)</li><li>KIX : KIX (Klant index - Customer index)</li><li>IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200</li><li>CODABAR : CODABAR</li><li>CODE11 : CODE 11</li><li>PHARMA : PHARMACODE</li><li>PHARMA2T : PHARMACODE TWO-TRACKS</li></ul>
* @param $code (string) code to print
* @param $type (string) type of barcode: <ul><li>C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.</li><li>C39+ : CODE 39 with checksum</li><li>C39E : CODE 39 EXTENDED</li><li>C39E+ : CODE 39 EXTENDED + CHECKSUM</li><li>C93 : CODE 93 - USS-93</li><li>S25 : Standard 2 of 5</li><li>S25+ : Standard 2 of 5 + CHECKSUM</li><li>I25 : Interleaved 2 of 5</li><li>I25+ : Interleaved 2 of 5 + CHECKSUM</li><li>C128A : CODE 128 A</li><li>C128B : CODE 128 B</li><li>C128C : CODE 128 C</li><li>EAN2 : 2-Digits UPC-Based Extention</li><li>EAN5 : 5-Digits UPC-Based Extention</li><li>EAN8 : EAN 8</li><li>EAN13 : EAN 13</li><li>UPCA : UPC-A</li><li>UPCE : UPC-E</li><li>MSI : MSI (Variation of Plessey code)</li><li>MSI+ : MSI + CHECKSUM (modulo 11)</li><li>POSTNET : POSTNET</li><li>PLANET : PLANET</li><li>RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)</li><li>KIX : KIX (Klant index - Customer index)</li><li>IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200</li><li>CODABAR : CODABAR</li><li>CODE11 : CODE 11</li><li>PHARMA : PHARMACODE</li><li>PHARMA2T : PHARMACODE TWO-TRACKS</li></ul>
*/
public function __construct($code, $type) {
$this->setBarcode($code, $type);
@ -88,8 +83,8 @@ class TCPDFBarcode {
/**
* Set the barcode.
* @param string $code code to print
* @param string $type type of barcode: <ul><li>C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.</li><li>C39+ : CODE 39 with checksum</li><li>C39E : CODE 39 EXTENDED</li><li>C39E+ : CODE 39 EXTENDED + CHECKSUM</li><li>C93 : CODE 93 - USS-93</li><li>S25 : Standard 2 of 5</li><li>S25+ : Standard 2 of 5 + CHECKSUM</li><li>I25 : Interleaved 2 of 5</li><li>I25+ : Interleaved 2 of 5 + CHECKSUM</li><li>C128A : CODE 128 A</li><li>C128B : CODE 128 B</li><li>C128C : CODE 128 C</li><li>EAN2 : 2-Digits UPC-Based Extention</li><li>EAN5 : 5-Digits UPC-Based Extention</li><li>EAN8 : EAN 8</li><li>EAN13 : EAN 13</li><li>UPCA : UPC-A</li><li>UPCE : UPC-E</li><li>MSI : MSI (Variation of Plessey code)</li><li>MSI+ : MSI + CHECKSUM (modulo 11)</li><li>POSTNET : POSTNET</li><li>PLANET : PLANET</li><li>RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)</li><li>KIX : KIX (Klant index - Customer index)</li><li>IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200</li><li>CODABAR : CODABAR</li><li>CODE11 : CODE 11</li><li>PHARMA : PHARMACODE</li><li>PHARMA2T : PHARMACODE TWO-TRACKS</li></ul>
* @param $code (string) code to print
* @param $type (string) type of barcode: <ul><li>C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.</li><li>C39+ : CODE 39 with checksum</li><li>C39E : CODE 39 EXTENDED</li><li>C39E+ : CODE 39 EXTENDED + CHECKSUM</li><li>C93 : CODE 93 - USS-93</li><li>S25 : Standard 2 of 5</li><li>S25+ : Standard 2 of 5 + CHECKSUM</li><li>I25 : Interleaved 2 of 5</li><li>I25+ : Interleaved 2 of 5 + CHECKSUM</li><li>C128A : CODE 128 A</li><li>C128B : CODE 128 B</li><li>C128C : CODE 128 C</li><li>EAN2 : 2-Digits UPC-Based Extention</li><li>EAN5 : 5-Digits UPC-Based Extention</li><li>EAN8 : EAN 8</li><li>EAN13 : EAN 13</li><li>UPCA : UPC-A</li><li>UPCE : UPC-E</li><li>MSI : MSI (Variation of Plessey code)</li><li>MSI+ : MSI + CHECKSUM (modulo 11)</li><li>POSTNET : POSTNET</li><li>PLANET : PLANET</li><li>RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)</li><li>KIX : KIX (Klant index - Customer index)</li><li>IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200</li><li>CODABAR : CODABAR</li><li>CODE11 : CODE 11</li><li>PHARMA : PHARMACODE</li><li>PHARMA2T : PHARMACODE TWO-TRACKS</li></ul>
* @return array
*/
public function setBarcode($code, $type) {
@ -222,10 +217,11 @@ class TCPDFBarcode {
/**
* CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.
* General-purpose code in very wide use world-wide
* @param string $code code to represent.
* @param boolean $checksum if true add a checksum to the code
* @param $code (string) code to represent.
* @param $extended (boolean) if true uses the extended mode.
* @param $checksum (boolean) if true add a checksum to the code.
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_code39($code, $extended=false, $checksum=false) {
$chr['0'] = '111221211';
@ -317,9 +313,9 @@ class TCPDFBarcode {
/**
* Encode a string to be used for CODE 39 Extended mode.
* @param string $code code to represent.
* @param $code (string) code to represent.
* @return encoded string.
* @access protected
* @protected
*/
protected function encode_code39_ext($code) {
$encode = array(
@ -368,9 +364,9 @@ class TCPDFBarcode {
/**
* Calculate CODE 39 checksum (modulo 43).
* @param string $code code to represent.
* @param $code (string) code to represent.
* @return char checksum.
* @access protected
* @protected
*/
protected function checksum_code39($code) {
$chars = array(
@ -391,10 +387,9 @@ class TCPDFBarcode {
/**
* CODE 93 - USS-93
* Compact code similar to Code 39
* @param string $code code to represent.
* @param boolean $checksum if true add a checksum to the code
* @param $code (string) code to represent.
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_code93($code) {
$chr['0'] = '131112';
@ -520,9 +515,9 @@ class TCPDFBarcode {
/**
* Calculate CODE 93 checksum (modulo 47).
* @param string $code code to represent.
* @param $code (string) code to represent.
* @return string checksum code.
* @access protected
* @protected
*/
protected function checksum_code93($code) {
$chars = array(
@ -565,9 +560,9 @@ class TCPDFBarcode {
/**
* Checksum for standard 2 of 5 barcodes.
* @param string $code code to process.
* @param $code (string) code to process.
* @return int checksum.
* @access protected
* @protected
*/
protected function checksum_s25($code) {
$len = strlen($code);
@ -590,10 +585,10 @@ class TCPDFBarcode {
* MSI.
* Variation of Plessey code, with similar applications
* Contains digits (0 to 9) and encodes the data only in the width of bars.
* @param string $code code to represent.
* @param boolean $checksum if true add a checksum to the code (modulo 11)
* @param $code (string) code to represent.
* @param $checksum (boolean) if true add a checksum to the code (modulo 11)
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_msi($code, $checksum=false) {
$chr['0'] = '100100100100';
@ -649,10 +644,10 @@ class TCPDFBarcode {
* Standard 2 of 5 barcodes.
* Used in airline ticket marking, photofinishing
* Contains digits (0 to 9) and encodes the data only in the width of bars.
* @param string $code code to represent.
* @param boolean $checksum if true add a checksum to the code
* @param $code (string) code to represent.
* @param $checksum (boolean) if true add a checksum to the code
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_s25($code, $checksum=false) {
$chr['0'] = '10101110111010';
@ -689,11 +684,12 @@ class TCPDFBarcode {
}
/**
* Convert binary barcode sequence to TCPDF barcode array
* @param string $seq barcode as binary sequence
* Convert binary barcode sequence to TCPDF barcode array.
* @param $seq (string) barcode as binary sequence.
* @param $bararray (array) barcode array.
* òparam array $bararray TCPDF barcode array to fill up
* @return array barcode representation.
* @access protected
* @protected
*/
protected function binseq_to_array($seq, $bararray) {
$len = strlen($seq);
@ -720,10 +716,10 @@ class TCPDFBarcode {
* Interleaved 2 of 5 barcodes.
* Compact numeric code, widely used in industry, air cargo
* Contains digits (0 to 9) and encodes the data in the width of both bars and spaces.
* @param string $code code to represent.
* @param boolean $checksum if true add a checksum to the code
* @param $code (string) code to represent.
* @param $checksum (boolean) if true add a checksum to the code
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_i25($code, $checksum=false) {
$chr['0'] = '11221';
@ -784,10 +780,10 @@ class TCPDFBarcode {
/**
* C128 barcodes.
* Very capable code, excellent density, high reliability; in very wide use world-wide
* @param string $code code to represent.
* @param string $type barcode type: A, B or C
* @param $code (string) code to represent.
* @param $type (string) barcode type: A, B or C
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_c128($code, $type='B') {
$chr = array(
@ -980,10 +976,10 @@ class TCPDFBarcode {
* EAN13: European Article Numbering international retail product code
* UPC-A: Universal product code seen on almost all retail products in the USA and Canada
* UPC-E: Short version of UPC symbol
* @param string $code code to represent.
* @param string $len barcode type: 6 = UPC-E, 8 = EAN8, 13 = EAN13, 12 = UPC-A
* @param $code (string) code to represent.
* @param $len (string) barcode type: 6 = UPC-E, 8 = EAN8, 13 = EAN13, 12 = UPC-A
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_eanupc($code, $len=13) {
$upce = false;
@ -1173,10 +1169,10 @@ class TCPDFBarcode {
* UPC-Based Extentions
* 2-Digit Ext.: Used to indicate magazines and newspaper issue numbers
* 5-Digit Ext.: Used to mark suggested retail price of books
* @param string $code code to represent.
* @param string $len barcode type: 2 = 2-Digit, 5 = 5-Digit
* @param $code (string) code to represent.
* @param $len (string) barcode type: 2 = 2-Digit, 5 = 5-Digit
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_eanext($code, $len=5) {
//Padding
@ -1248,10 +1244,10 @@ class TCPDFBarcode {
/**
* POSTNET and PLANET barcodes.
* Used by U.S. Postal Service for automated mail sorting
* @param string $code zip code to represent. Must be a string containing a zip code of the form DDDDD or DDDDD-DDDD.
* @param boolean $planet if true print the PLANET barcode, otherwise print POSTNET
* @param $code (string) zip code to represent. Must be a string containing a zip code of the form DDDDD or DDDDD-DDDD.
* @param $planet (boolean) if true print the PLANET barcode, otherwise print POSTNET
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_postnet($code, $planet=false) {
// bar lenght
@ -1321,10 +1317,10 @@ class TCPDFBarcode {
* RMS4CC - CBC - KIX
* RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) - KIX (Klant index - Customer index)
* RM4SCC is the name of the barcode symbology used by the Royal Mail for its Cleanmail service.
* @param string $code code to print
* @param boolean $kix if true prints the KIX variation (doesn't use the start and end symbols, and the checksum) - in this case the house number must be sufficed with an X and placed at the end of the code.
* @param $code (string) code to print
* @param $kix (boolean) if true prints the KIX variation (doesn't use the start and end symbols, and the checksum) - in this case the house number must be sufficed with an X and placed at the end of the code.
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_rms4cc($code, $kix=false) {
$notkix = !$kix;
@ -1473,9 +1469,9 @@ class TCPDFBarcode {
/**
* CODABAR barcodes.
* Older code often used in library systems, sometimes in blood banks
* @param string $code code to represent.
* @param $code (string) code to represent.
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_codabar($code) {
$chr = array(
@ -1529,9 +1525,9 @@ class TCPDFBarcode {
/**
* CODE11 barcodes.
* Used primarily for labeling telecommunications equipment
* @param string $code code to represent.
* @param $code (string) code to represent.
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_code11($code) {
$chr = array(
@ -1621,9 +1617,9 @@ class TCPDFBarcode {
/**
* Pharmacode
* Contains digits (0 to 9)
* @param string $code code to represent.
* @param $code (string) code to represent.
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_pharmacode($code) {
$seq = '';
@ -1647,9 +1643,9 @@ class TCPDFBarcode {
/**
* Pharmacode two-track
* Contains digits (0 to 9)
* @param string $code code to represent.
* @param $code (string) code to represent.
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_pharmacode2t($code) {
$seq = '';
@ -1710,9 +1706,9 @@ class TCPDFBarcode {
* (requires PHP bcmath extension)
* Intelligent Mail barcode is a 65-bar code for use on mail in the United States.
* The fields are described as follows:<ul><li>The Barcode Identifier shall be assigned by USPS to encode the presort identification that is currently printed in human readable form on the optional endorsement line (OEL) as well as for future USPS use. This shall be two digits, with the second digit in the range of 04. The allowable encoding ranges shall be 0004, 1014, 2024, 3034, 4044, 5054, 6064, 7074, 8084, and 9094.</li><li>The Service Type Identifier shall be assigned by USPS for any combination of services requested on the mailpiece. The allowable encoding range shall be 000http://it2.php.net/manual/en/function.dechex.php999. Each 3-digit value shall correspond to a particular mail class with a particular combination of service(s). Each service program, such as OneCode Confirm and OneCode ACS, shall provide the list of Service Type Identifier values.</li><li>The Mailer or Customer Identifier shall be assigned by USPS as a unique, 6 or 9 digit number that identifies a business entity. The allowable encoding range for the 6 digit Mailer ID shall be 000000- 899999, while the allowable encoding range for the 9 digit Mailer ID shall be 900000000-999999999.</li><li>The Serial or Sequence Number shall be assigned by the mailer for uniquely identifying and tracking mailpieces. The allowable encoding range shall be 000000000999999999 when used with a 6 digit Mailer ID and 000000-999999 when used with a 9 digit Mailer ID. e. The Delivery Point ZIP Code shall be assigned by the mailer for routing the mailpiece. This shall replace POSTNET for routing the mailpiece to its final delivery point. The length may be 0, 5, 9, or 11 digits. The allowable encoding ranges shall be no ZIP Code, 0000099999, 000000000999999999, and 0000000000099999999999.</li></ul>
* @param string $code code to print, separate the ZIP (routing code) from the rest using a minus char '-' (BarcodeID_ServiceTypeID_MailerID_SerialNumber-RoutingCode)
* @param $code (string) code to print, separate the ZIP (routing code) from the rest using a minus char '-' (BarcodeID_ServiceTypeID_MailerID_SerialNumber-RoutingCode)
* @return array barcode representation.
* @access protected
* @protected
*/
protected function barcode_imb($code) {
$asc_chr = array(4,0,2,6,3,5,1,9,8,7,1,2,0,6,4,8,2,9,5,3,0,1,3,7,4,6,8,9,2,0,5,1,9,4,3,8,6,7,1,2,4,3,9,5,7,8,3,0,2,1,4,0,9,1,7,0,2,4,6,3,7,1,9,5,8);
@ -1835,7 +1831,7 @@ class TCPDFBarcode {
/**
* Convert large integer number to hexadecimal representation.
* (requires PHP bcmath extension)
* @param string $number number to convert specified as a string
* @param $number (string) number to convert specified as a string
* @return string hexadecimal representation
*/
public function dec_to_hex($number) {
@ -1859,7 +1855,7 @@ class TCPDFBarcode {
/**
* Convert large hexadecimal number to decimal representation (string).
* (requires PHP bcmath extension)
* @param string $hex hexadecimal number to convert specified as a string
* @param $hex (string) hexadecimal number to convert specified as a string
* @return string hexadecimal representation
*/
public function hex_to_dec($hex) {
@ -1875,9 +1871,9 @@ class TCPDFBarcode {
/**
* Intelligent Mail Barcode calculation of Frame Check Sequence
* @param string $code_arr array of hexadecimal values (13 bytes holding 102 bits right justified).
* @param $code_arr (string) array of hexadecimal values (13 bytes holding 102 bits right justified).
* @return int 11 bit Frame Check Sequence as integer (decimal base)
* @access protected
* @protected
*/
protected function imb_crc11fcs($code_arr) {
$genpoly = 0x0F35; // generator polynomial
@ -1911,9 +1907,9 @@ class TCPDFBarcode {
/**
* Reverse unsigned short value
* @param int $num value to reversr
* @param $num (int) value to reversr
* @return int reversed value
* @access protected
* @protected
*/
protected function imb_reverse_us($num) {
$rev = 0;
@ -1927,10 +1923,10 @@ class TCPDFBarcode {
/**
* generate Nof13 tables used for Intelligent Mail Barcode
* @param int $n is the type of table: 2 for 2of13 table, 5 for 5of13table
* @param int $size size of table (78 for n=2 and 1287 for n=5)
* @param $n (int) is the type of table: 2 for 2of13 table, 5 for 5of13table
* @param $size (int) size of table (78 for n=2 and 1287 for n=5)
* @return array requested table
* @access protected
* @protected
*/
protected function imb_tables($n, $size) {
$table = array();
@ -1964,8 +1960,6 @@ class TCPDFBarcode {
}
} // end of class
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -94,8 +94,10 @@ Hebrew (iw)
Polish (pl)
-----------
Pchnąć w tę łódź jeża lub ośm skrzyń fig
Pchnąć w tę łódź jeża lub osiem skrzyń fig
(= To push a hedgehog or eight bins of figs in this boat)
Zażółć gęślą jaźń
Russian (ru)
------------

47
tcpdf/config/lang/afr.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : afr.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Afrikaans
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Afrikaans
* @author Nicola Asuni
* @since 2010-10-26
*/
// Afrikaans
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'af';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'bladsy';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/ara.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : ara.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Arabic
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Arabic
* @author Nicola Asuni
* @since 2010-10-26
*/
// Arabic
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'rtl';
$l['a_meta_language'] = 'ar';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'صفحة';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/aze.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : aze.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Azerbaijani
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Azerbaijani
* @author Nicola Asuni
* @since 2010-10-26
*/
// Azerbaijani
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'az';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'səhifə';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/bel.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : bel.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Basque
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Basque
* @author Nicola Asuni
* @since 2010-10-26
*/
// Basque
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'be';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'старонкі';
//============================================================+
// END OF FILE
//============================================================+

View File

@ -2,13 +2,14 @@
//============================================================+
// File name : eng.php
// Begin : 2004-03-03
// Last Update : 2010-02-17
//
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
//
// Brazilian
//
// Author: Nicola Asuni
//
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
@ -22,15 +23,12 @@
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @abstract TCPDF language file.
* @brief TCPDF language file: Brazilian
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.sourceforge.net
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2004-03-03
*/
// ENGLISH
// Brazilian
global $l;
$l = Array();
@ -45,6 +43,5 @@ $l['a_meta_language'] = 'pt';
$l['w_page'] = 'página';
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

47
tcpdf/config/lang/cat.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : cat.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Catalan
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Catalan
* @author Nicola Asuni
* @since 2010-10-26
*/
// Catalan
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'ca';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'pàgina';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/ces.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : ces.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Czech
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Czech
* @author Nicola Asuni
* @since 2010-10-26
*/
// Czech
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'cs';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'stránky';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/chi.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : chi.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Chinese (Simplified)
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Chinese (Simplified)
* @author Nicola Asuni
* @since 2010-10-26
*/
// Chinese (Simplified)
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'cn';
// TRANSLATIONS --------------------------------------
$l['w_page'] = '页面';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/cym.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : urd.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Welsh
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Welsh
* @author Nicola Asuni
* @since 2004-03-03
*/
// Welsh
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'cy';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'tudalen';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/dan.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : dan.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Danish
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Danish
* @author Nicola Asuni
* @since 2010-10-26
*/
// Danish
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'da';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'side';
//============================================================+
// END OF FILE
//============================================================+

View File

@ -2,13 +2,14 @@
//============================================================+
// File name : eng.php
// Begin : 2004-03-03
// Last Update : 2010-02-17
//
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
//
// English
//
// Author: Nicola Asuni
//
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
@ -22,15 +23,12 @@
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @abstract TCPDF language file.
* @brief TCPDF language file: English
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.sourceforge.net
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2004-03-03
*/
// ENGLISH
// English
global $l;
$l = Array();
@ -45,6 +43,5 @@ $l['a_meta_language'] = 'en';
$l['w_page'] = 'page';
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

47
tcpdf/config/lang/est.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : est.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Estonian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Estonian
* @author Nicola Asuni
* @since 2010-10-26
*/
// Estonian
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'et';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'lehekülg';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/eus.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : eus.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Basque
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Basque
* @author Nicola Asuni
* @since 2010-10-26
*/
// Basque
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'eu';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'Orrialdearen';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/fra.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : fra.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// French
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: French
* @author Nicola Asuni
* @since 2010-10-26
*/
// French
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'fr';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'page';
//============================================================+
// END OF FILE
//============================================================+

View File

@ -1,14 +1,15 @@
<?php
//============================================================+
// File name : eng.php
// File name : ger.php
// Begin : 2004-03-03
// Last Update : 2010-02-17
//
// Last Update : 2010-11-16
//
// Description : Language module for TCPDF
// (contains translated texts)
//
// German
//
// Author: Nicola Asuni
//
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
@ -22,15 +23,12 @@
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @abstract TCPDF language file.
* @brief TCPDF language file: German
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.sourceforge.net
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2004-03-03
*/
// ENGLISH
// German
global $l;
$l = Array();
@ -42,9 +40,8 @@ $l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'de';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'seite';
$l['w_page'] = 'Seite';
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

47
tcpdf/config/lang/gle.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : ind.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Irish
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Irish
* @author Nicola Asuni
* @since 2004-03-03
*/
// Irish
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'ga';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'leathanach';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/glg.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : glg.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Galician
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Galician
* @author Nicola Asuni
* @since 2010-10-26
*/
// Galician
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'gl';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'Páxina';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/hat.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : hat.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Haitian Creole
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Haitian Creole
* @author Nicola Asuni
* @since 2004-03-03
*/
// Haitian Creole
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'ht';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'paj';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/heb.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : heb.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Hebrew
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Hebrew
* @author Nicola Asuni
* @since 2004-03-03
*/
// Hebrew
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'rtl';
$l['a_meta_language'] = 'he';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'מקור:';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/hrv.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : hrv.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Croatian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Croatian
* @author Nicola Asuni
* @since 2010-10-26
*/
// Croatian
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'hr';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'stranica';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/hun.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : hun.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Hungarian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Hungarian
* @author Nicola Asuni
* @since 2004-03-03
*/
// Hungarian
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'hu';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'oldal';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/hye.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : hye.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Armenian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Armenian
* @author Nicola Asuni
* @since 2010-10-26
*/
// Armenian
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'hy';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'էջ';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/ind.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : ind.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Indonesian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Indonesian
* @author Nicola Asuni
* @since 2004-03-03
*/
// Indonesian
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'id';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'halaman';
//============================================================+
// END OF FILE
//============================================================+

View File

@ -2,13 +2,14 @@
//============================================================+
// File name : ita.php
// Begin : 2004-03-03
// Last Update : 2010-02-17
//
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
//
// Italian
//
// Author: Nicola Asuni
//
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
@ -22,15 +23,12 @@
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @abstract TCPDF language file.
* @brief TCPDF language file: Italian
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.sourceforge.net
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2004-03-03
*/
// ENGLISH
// Italian
global $l;
$l = Array();
@ -45,6 +43,5 @@ $l['a_meta_language'] = 'it';
$l['w_page'] = 'pagina';
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

47
tcpdf/config/lang/kat.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : kat.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Georgian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Georgian
* @author Nicola Asuni
* @since 2010-10-26
*/
// Georgian
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'ka';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'გვერდი';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/kor.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : kor.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Korean
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Korean
* @author Nicola Asuni
* @since 2004-03-03
*/
// Korean
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'ko';
// TRANSLATIONS --------------------------------------
$l['w_page'] = '페이지';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/mkd.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : mkd.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Macedonian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Macedonian
* @author Nicola Asuni
* @since 2004-03-03
*/
// Macedonian
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'mk';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'страница';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/mlt.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : mlt.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Maltese
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Maltese
* @author Nicola Asuni
* @since 2004-03-03
*/
// Maltese
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'mt';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'paġna';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/msa.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : msa.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Malay
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Malay
* @author Nicola Asuni
* @since 2004-03-03
*/
// Malay
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'ms';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'laman';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/nld.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : nld.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Dutch
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Dutch
* @author Nicola Asuni
* @since 2010-10-26
*/
// Dutch
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'nl';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'pagina';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/nob.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : nob.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Norwegian Bokmål
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Norwegian Bokmål
* @author Nicola Asuni
* @since 2004-03-03
*/
// Norwegian Bokmål
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'nb';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'side';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/pol.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : pol.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Polish
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Polish
* @author Nicola Asuni
* @since 2010-10-26
*/
// Polish
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'pl';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'strona';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/por.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : por.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Portuguese
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Portuguese
* @author Nicola Asuni
* @since 2004-03-03
*/
// Portuguese
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'pt';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'página';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/ron.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : ron.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Romanian, Moldavian, Moldovan
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Romanian, Moldavian, Moldovan
* @author Nicola Asuni
* @since 2004-03-03
*/
// Romanian, Moldavian, Moldovan
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'ro';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'pagina';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/rus.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : rus.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Russian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Russian
* @author Nicola Asuni
* @since 2004-03-03
*/
// Russian
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'ru';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'страницы';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/slv.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : slv.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Slovene
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Slovene
* @author Nicola Asuni
* @since 2004-03-03
*/
// Slovene
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'sl';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'stran';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/spa.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : spa.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Spanish; Castilian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Spanish; Castilian
* @author Nicola Asuni
* @since 2004-03-03
*/
// Spanish; Castilian
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'es';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'página';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/sqi.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : sqi.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Albanian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Albanian
* @author Nicola Asuni
* @since 2010-10-26
*/
// Albanian
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'sq';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'faqe';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/srp.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : srp.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Serbian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Serbian
* @author Nicola Asuni
* @since 2004-03-03
*/
// Serbian
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'sr';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'страна';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/swa.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : swa.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Swahili
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Swahili
* @author Nicola Asuni
* @since 2004-03-03
*/
// Swahili
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'sw';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'ukurasa';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/swe.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : swe.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Swedish
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Swedish
* @author Nicola Asuni
* @since 2004-03-03
*/
// Swedish
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'sv';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'sida';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/urd.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : urd.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Urdu
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Urdu
* @author Nicola Asuni
* @since 2004-03-03
*/
// Urdu
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'rtl';
$l['a_meta_language'] = 'ur';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'صفحہ';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/yid.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : yid.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Welsh
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Welsh
* @author Nicola Asuni
* @since 2004-03-03
*/
// Welsh
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'rtl';
$l['a_meta_language'] = 'yi';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'זייַט';
//============================================================+
// END OF FILE
//============================================================+

47
tcpdf/config/lang/zho.php Executable file
View File

@ -0,0 +1,47 @@
<?php
//============================================================+
// File name : zho.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Chinese
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Chinese
* @author Nicola Asuni
* @since 2010-10-26
*/
// Chinese
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'zh';
// TRANSLATIONS --------------------------------------
$l['w_page'] = '頁面';
//============================================================+
// END OF FILE
//============================================================+

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : tcpdf_config.php
// Begin : 2004-06-11
// Last Update : 2010-04-28
// Last Update : 2010-12-16
//
// Description : Configuration file for TCPDF.
//
@ -21,11 +21,8 @@
/**
* Configuration file for TCPDF.
* @author Nicola Asuni
* @copyright 2004-2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @package com.tecnick.tcpdf
* @version 4.9.005
* @link http://tcpdf.sourceforge.net
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2004-10-27
*/
@ -66,7 +63,7 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
$k_path_url = 'http://';
}
$k_path_url .= $_SERVER['HTTP_HOST'];
$k_path_url .= str_replace( '\\', '/', substr($_SERVER['PHP_SELF'], 0, -24));
$k_path_url .= str_replace( '\\', '/', substr(K_PATH_MAIN, (strlen($_SERVER['DOCUMENT_ROOT']) - 1)));
}
/**
@ -241,4 +238,3 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : tcpdf_config.php
// Begin : 2004-06-11
// Last Update : 2010-04-28
// Last Update : 2010-12-16
//
// Description : Alternative configuration file for TCPDF.
//
@ -21,11 +21,8 @@
/**
* Alternative configuration file for TCPDF.
* @author Nicola Asuni
* @copyright 2004-2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @package com.tecnick.tcpdf
* @version 4.9.005
* @link http://tcpdf.sourceforge.net
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2004-10-27
*/
@ -61,7 +58,7 @@ if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
$k_path_url = 'http://';
}
$k_path_url .= $_SERVER['HTTP_HOST'];
$k_path_url .= str_replace( '\\', '/', substr($_SERVER['PHP_SELF'], 0, -24));
$k_path_url .= str_replace( '\\', '/', substr(K_PATH_MAIN, (strlen($_SERVER['DOCUMENT_ROOT']) - 1)));
}
/**
@ -235,4 +232,3 @@ define('K_TCPDF_CALLS_IN_HTML', true);
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -1,78 +1,11 @@
<html>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>TCPDF Documentation</title>
<link rel="stylesheet" type="text/css" href="media/style.css">
<title>TCPDF DOCUMENTATION</title>
<meta http-equiv="refresh" content="1;url=http://www.tcpdf.org/doc/" />
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
<tr>
<td class="header_top">com-tecnick-tcpdf</td>
</tr>
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
<tr>
<td class="header_menu">
[ <a href="classtrees_com-tecnick-tcpdf.html" class="menu">class tree: com-tecnick-tcpdf</a> ]
[ <a href="elementindex_com-tecnick-tcpdf.html" class="menu">index: com-tecnick-tcpdf</a> ]
[ <a href="elementindex.html" class="menu">all elements</a> ]
</td>
</tr>
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="200" class="menu">
<b>Packages:</b><br />
<a href="li_com-tecnick-tcpdf.html">com-tecnick-tcpdf</a><br />
<br /><br />
<b>Files:</b><br />
<div class="package">
<a href="com-tecnick-tcpdf/_2dbarcodes.php.html"> 2dbarcodes.php
</a><br>
<a href="com-tecnick-tcpdf/_barcodes.php.html"> barcodes.php
</a><br>
<a href="com-tecnick-tcpdf/_htmlcolors.php.html"> htmlcolors.php
</a><br>
<a href="com-tecnick-tcpdf/_pdf417.php.html"> pdf417.php
</a><br>
<a href="com-tecnick-tcpdf/_qrcode.php.html"> qrcode.php
</a><br>
<a href="com-tecnick-tcpdf/_tcpdf.php.html"> tcpdf.php
</a><br>
<a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html"> tcpdf_config.php
</a><br>
<a href="com-tecnick-tcpdf/_unicode_data.php.html"> unicode_data.php
</a><br>
</div><br />
<b>Classes:</b><br />
<div class="package">
<a href="com-tecnick-tcpdf/PDF417.html">PDF417</a><br />
<a href="com-tecnick-tcpdf/QRcode.html">QRcode</a><br />
<a href="com-tecnick-tcpdf/TCPDF.html">TCPDF</a><br />
<a href="com-tecnick-tcpdf/TCPDF2DBarcode.html">TCPDF2DBarcode</a><br />
<a href="com-tecnick-tcpdf/TCPDFBarcode.html">TCPDFBarcode</a><br />
</div>
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<div align="center"><h1>TCPDF Documentation</h1></div>
<b>Welcome to com-tecnick-tcpdf!</b><br />
<br />
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br />
<div class="credit">
<hr />
Documentation generated on Mon, 07 Jun 2010 16:56:23 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
<a href="http://www.tcpdf.org/doc/">TCPDF Documentation</a>
</body>
</html>
</html>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_001.php
// Begin : 2008-03-04
// Last Update : 2010-06-07
// Last Update : 2010-08-14
//
// Description : Example 001 for TCPDF class
// Default Header and Footer
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Default Header and Footer
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -84,7 +81,7 @@ $pdf->AddPage();
// Set some content to print
$html = <<<EOD
<h1>Welcome to <a href="http://www.tcpdf.org" style="text-decoration:none;color:black;"><span style="background-color:#CC0000;"> TC<span style="color:white;">PDF</span> </span></a>!</h1>
<h1>Welcome to <a href="http://www.tcpdf.org" style="text-decoration:none;background-color:#CC0000;color:black;">&nbsp;<span style="color:black;">TC</span><span style="color:white;">PDF</span>&nbsp;</a>!</h1>
<i>This is the first example of TCPDF library.</i>
<p>This text is printed using the <i>writeHTMLCell()</i> method but you can also use: <i>Multicell(), writeHTML(), Write(), Cell() and Text()</i>.</p>
<p>Please check the source code documentation and other examples for further information.</p>
@ -103,4 +100,3 @@ $pdf->Output('example_001.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_002.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 002 for TCPDF class
// Removing Header and Footer
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Removing Header and Footer
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -88,4 +85,3 @@ $pdf->Output('example_002.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_003.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 003 for TCPDF class
// Custom Header and Footer
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Custom Header and Footer
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -119,4 +116,3 @@ $pdf->Output('example_003.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_004.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-10-08
//
// Description : Example 004 for TCPDF class
// Cell stretching
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Cell stretching
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -70,7 +67,7 @@ $pdf->setLanguageArray($l);
// ---------------------------------------------------------
// set font
$pdf->SetFont('times', 'B', 12);
$pdf->SetFont('times', '', 11);
// add a page
$pdf->AddPage();
@ -78,18 +75,41 @@ $pdf->AddPage();
//Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=0, $link='', $stretch=0, $ignore_min_height=false, $calign='T', $valign='M')
// test Cell stretching
$pdf->Cell(0, 10, 'TEST CELL STRETCH: no stretch', 1, 1, 'C', 0, '', 0);
$pdf->Cell(0, 10, 'TEST CELL STRETCH: scaling', 1, 1, 'C', 0, '', 1);
$pdf->Cell(0, 10, 'TEST CELL STRETCH: force scaling', 1, 1, 'C', 0, '', 2);
$pdf->Cell(0, 10, 'TEST CELL STRETCH: spacing', 1, 1, 'C', 0, '', 3);
$pdf->Cell(0, 10, 'TEST CELL STRETCH: force spacing', 1, 1, 'C', 0, '', 4);
$pdf->Cell(0, 0, 'TEST CELL STRETCH: no stretch', 1, 1, 'C', 0, '', 0);
$pdf->Cell(0, 0, 'TEST CELL STRETCH: scaling', 1, 1, 'C', 0, '', 1);
$pdf->Cell(0, 0, 'TEST CELL STRETCH: force scaling', 1, 1, 'C', 0, '', 2);
$pdf->Cell(0, 0, 'TEST CELL STRETCH: spacing', 1, 1, 'C', 0, '', 3);
$pdf->Cell(0, 0, 'TEST CELL STRETCH: force spacing', 1, 1, 'C', 0, '', 4);
$pdf->Ln(10);
$pdf->Ln(5);
$pdf->Cell(60, 10, 'TEST CELL STRETCH: scaling', 1, 1, 'C', 0, '', 1);
$pdf->Cell(60, 10, 'TEST CELL STRETCH: force scaling', 1, 1, 'C', 0, '', 2);
$pdf->Cell(60, 10, 'TEST CELL STRETCH: spacing', 1, 1, 'C', 0, '', 3);
$pdf->Cell(60, 10, 'TEST CELL STRETCH: force spacing', 1, 1, 'C', 0, '', 4);
$pdf->Cell(45, 0, 'TEST CELL STRETCH: scaling', 1, 1, 'C', 0, '', 1);
$pdf->Cell(45, 0, 'TEST CELL STRETCH: force scaling', 1, 1, 'C', 0, '', 2);
$pdf->Cell(45, 0, 'TEST CELL STRETCH: spacing', 1, 1, 'C', 0, '', 3);
$pdf->Cell(45, 0, 'TEST CELL STRETCH: force spacing', 1, 1, 'C', 0, '', 4);
$pdf->AddPage();
// example using general stretching and spacing
for ($stretching = 90; $stretching <= 110; $stretching += 10) {
for ($spacing = -0.254; $spacing <= 0.254; $spacing += 0.254) {
// set general stretching (scaling) value
$pdf->setFontStretching($stretching);
// set general spacing value
$pdf->setFontSpacing($spacing);
$pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, no stretch', 1, 1, 'C', 0, '', 0);
$pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, scaling', 1, 1, 'C', 0, '', 1);
$pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, force scaling', 1, 1, 'C', 0, '', 2);
$pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, spacing', 1, 1, 'C', 0, '', 3);
$pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, force spacing', 1, 1, 'C', 0, '', 4);
$pdf->Ln(2);
}
}
// ---------------------------------------------------------
@ -97,6 +117,5 @@ $pdf->Cell(60, 10, 'TEST CELL STRETCH: force spacing', 1, 1, 'C', 0, '', 4);
$pdf->Output('example_004.pdf', 'I');
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_005.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-10-04
//
// Description : Example 005 for TCPDF class
// Multicell
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Multicell
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -75,6 +72,12 @@ $pdf->SetFont('times', '', 10);
// add a page
$pdf->AddPage();
// set cell padding
$pdf->setCellPaddings(1, 1, 1, 1);
// set cell margins
$pdf->setCellMargins(1, 1, 1, 1);
// set color for background
$pdf->SetFillColor(255, 255, 127);
@ -90,6 +93,20 @@ $pdf->MultiCell(55, 5, '[CENTER] '.$txt, 1, 'C', 0, 0, '', '', true);
$pdf->MultiCell(55, 5, '[JUSTIFY] '.$txt."\n", 1, 'J', 1, 2, '' ,'', true);
$pdf->MultiCell(55, 5, '[DEFAULT] '.$txt, 1, '', 0, 1, '', '', true);
$pdf->Ln(4);
// set color for background
$pdf->SetFillColor(220, 255, 220);
// Vertical alignment
$pdf->MultiCell(55, 40, '[VERTICAL ALIGNMENT - TOP] '.$txt, 1, 'J', 1, 0, '', '', true, 0, false, true, 40, 'T');
$pdf->MultiCell(55, 40, '[VERTICAL ALIGNMENT - MIDDLE] '.$txt, 1, 'J', 1, 0, '', '', true, 0, false, true, 40, 'M');
$pdf->MultiCell(55, 40, '[VERTICAL ALIGNMENT - BOTTOM] '.$txt, 1, 'J', 1, 1, '', '', true, 0, false, true, 40, 'B');
$pdf->Ln(4);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// set color for background
$pdf->SetFillColor(215, 235, 255);
@ -101,6 +118,33 @@ Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi,
// print a blox of text using multicell()
$pdf->MultiCell(80, 5, $txt."\n", 1, 'J', 1, 1, '' ,'', true);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// AUTO-FITTING
// set color for background
$pdf->SetFillColor(255, 235, 235);
// Fit text on cell by reducing font size
$pdf->MultiCell(55, 60, '[FIT CELL] '.$txt."\n", 1, 'J', 1, 1, 125, 145, true, 0, false, true, 60, 'M', true);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// CUSTOM PADDING
// set color for background
$pdf->SetFillColor(255, 255, 215);
// set font
$pdf->SetFont('helvetica', '', 8);
// set cell padding
$pdf->setCellPaddings(2, 4, 6, 8);
$txt = "CUSTOM PADDING:\nLeft=2, Top=4, Right=6, Bottom=8\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue.\n";
$pdf->MultiCell(55, 5, $txt, 1, 'J', 1, 2, 125, 210, true);
// move pointer to last page
$pdf->lastPage();
@ -110,6 +154,5 @@ $pdf->lastPage();
$pdf->Output('example_005.pdf', 'I');
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_006.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-11-20
//
// Description : Example 006 for TCPDF class
// WriteHTML and RTL support
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: WriteHTML and RTL support
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -152,10 +149,10 @@ $pdf->lastPage();
$pdf->AddPage();
// create some HTML content
$subtable = '<table border="1" cellspacing="1" cellpadding="1"><tr><td>a</td><td>b</td></tr><tr><td>c</td><td>d</td></tr></table>';
$subtable = '<table border="1" cellspacing="6" cellpadding="4"><tr><td>a</td><td>b</td></tr><tr><td>c</td><td>d</td></tr></table>';
$html = '<h2>HTML TABLE:</h2>
<table border="1" cellspacing="2" cellpadding="2">
<table border="1" cellspacing="3" cellpadding="4">
<tr>
<th>#</th>
<th align="right">RIGHT align</th>
@ -236,7 +233,7 @@ $pdf->lastPage();
// add a page
$pdf->AddPage();
require_once('../htmlcolors.php');
require('../htmlcolors.php');
$textcolors = '<h1>HTML Text Colors</h1>';
$bgcolors = '<hr /><h1>HTML Background Colors</h1>';
@ -302,6 +299,26 @@ $pdf->writeHTML($html, true, false, true, false, '');
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// test custom bullet points for list
// add a page
$pdf->AddPage();
$html = <<<EOF
<h1>Test custom bullet image for list items</h1>
<ul style="font-size:14pt;list-style-type:img|png|4|4|../images/logo_example.png">
<li>test custom bullet image</li>
<li>test custom bullet image</li>
<li>test custom bullet image</li>
<li>test custom bullet image</li>
<ul>
EOF;
// output the HTML content
$pdf->writeHTML($html, true, false, true, false, '');
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// reset pointer to the last page
$pdf->lastPage();
@ -313,4 +330,3 @@ $pdf->Output('example_006.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_007.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 007 for TCPDF class
// Two independent columns with WriteHTMLCell()
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Two independent columns with WriteHTMLCell()
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -114,4 +111,3 @@ $pdf->Output('example_007.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_008.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 008 for TCPDF class
// Include external UTF-8 text file
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Include external UTF-8 text file
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -95,4 +92,3 @@ $pdf->Output('example_008.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_009.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-12-04
//
// Description : Example 009 for TCPDF class
// Test Image
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Test Image
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -67,7 +64,7 @@ $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
// -------------------------------------------------------------------
// add a page
$pdf->AddPage();
@ -75,17 +72,75 @@ $pdf->AddPage();
// set JPEG quality
$pdf->setJPEGQuality(75);
// Image method signature:
// Image($file, $x='', $y='', $w=0, $h=0, $type='', $link='', $align='', $resize=false, $dpi=300, $palign='', $ismask=false, $imgmask=false, $border=0, $fitbox=false, $hidden=false, $fitonpage=false)
// Image example
$pdf->Image('../images/image_demo.jpg', 50, 50, 100, 150, 'JPG', 'http://www.tcpdf.org', '', true, 150, '', false, false, 1, false, false, false);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// ---------------------------------------------------------
// Example of Image from data stream ('PHP rules')
$imgdata = base64_decode('iVBORw0KGgoAAAANSUhEUgAAABwAAAASCAMAAAB/2U7WAAAABlBMVEUAAAD///+l2Z/dAAAASUlEQVR4XqWQUQoAIAxC2/0vXZDrEX4IJTRkb7lobNUStXsB0jIXIAMSsQnWlsV+wULF4Avk9fLq2r8a5HSE35Q3eO2XP1A1wQkZSgETvDtKdQAAAABJRU5ErkJggg==');
// The '@' character is used to indicate that follows an image data stream and not an image file name
$pdf->Image('@'.$imgdata);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Image example with resizing
$pdf->Image('../images/image_demo.jpg', 15, 140, 75, 113, 'JPG', 'http://www.tcpdf.org', '', true, 150, '', false, false, 1, false, false, false);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// test fitbox with all alignment combinations
$horizontal_alignments = array('L', 'C', 'R');
$vertical_alignments = array('T', 'M', 'B');
$x = 15;
$y = 35;
$w = 30;
$h = 30;
// test all combinations of alignments
for ($i = 0; $i < 3; ++$i) {
$fitbox = $horizontal_alignments[$i].' ';
$x = 15;
for ($j = 0; $j < 3; ++$j) {
$fitbox{1} = $vertical_alignments[$j];
$pdf->Rect($x, $y, $w, $h, 'F', array(), array(128,255,128));
$pdf->Image('../images/image_demo.jpg', $x, $y, $w, $h, 'JPG', '', '', false, 300, '', false, false, 0, $fitbox, false, false);
$x += 32; // new column
}
$y += 32; // new row
}
$x = 115;
$y = 35;
$w = 25;
$h = 50;
for ($i = 0; $i < 3; ++$i) {
$fitbox = $horizontal_alignments[$i].' ';
$x = 115;
for ($j = 0; $j < 3; ++$j) {
$fitbox{1} = $vertical_alignments[$j];
$pdf->Rect($x, $y, $w, $h, 'F', array(), array(128,255,255));
$pdf->Image('../images/image_demo.jpg', $x, $y, $w, $h, 'JPG', '', '', false, 300, '', false, false, 0, $fitbox, false, false);
$x += 27; // new column
}
$y += 52; // new row
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Stretching, position and alignment example
$pdf->SetXY(110, 200);
$pdf->Image('../images/image_demo.jpg', '', '', 40, 40, '', '', 'T', false, 300, '', false, false, 1, false, false, false);
$pdf->Image('../images/image_demo.jpg', '', '', 40, 40, '', '', '', false, 300, '', false, false, 1, false, false, false);
// -------------------------------------------------------------------
//Close and output PDF document
$pdf->Output('example_009.pdf', 'I');
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_010.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-11
//
// Description : Example 010 for TCPDF class
// Text on multiple columns
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Text on multiple columns
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -41,11 +38,11 @@ class MC_TCPDF extends TCPDF {
/**
* Print chapter
* @param int $num chapter number
* @param string $title chapter title
* @param string $file name of the file containing the chapter body
* @param boolean $mode if true the chapter body is in HTML, otherwise in simple text.
* @access public
* @param $num (int) chapter number
* @param $title (string) chapter title
* @param $file (string) name of the file containing the chapter body
* @param $mode (boolean) if true the chapter body is in HTML, otherwise in simple text.
* @public
*/
public function PrintChapter($num, $title, $file, $mode=false) {
// disable existing columns
@ -64,22 +61,22 @@ class MC_TCPDF extends TCPDF {
/**
* Set chapter title
* @param int $num chapter number
* @param string $title chapter title
* @access public
* @param $num (int) chapter number
* @param $title (string) chapter title
* @public
*/
public function ChapterTitle($num, $title) {
$this->SetFont('helvetica', '', 14);
$this->SetFillColor(200, 220, 255);
$this->Cell(0, 6, 'Chapter '.$num.' : '.$title, 0, 1, '', 1);
$this->Cell(180, 6, 'Chapter '.$num.' : '.$title, 0, 1, '', 1);
$this->Ln(4);
}
/**
* Print chapter body
* @param string $file name of the file containing the chapter body
* @param boolean $mode if true the chapter body is in HTML, otherwise in simple text.
* @access public
* @param $file (string) name of the file containing the chapter body
* @param $mode (boolean) if true the chapter body is in HTML, otherwise in simple text.
* @public
*/
public function ChapterBody($file, $mode=false) {
$this->selectColumn();
@ -94,7 +91,7 @@ class MC_TCPDF extends TCPDF {
$this->writeHTML($content, true, false, true, false, 'J');
} else {
// ------ TEXT MODE ------
$this->Write(0, $content, '', 0, 'J', true, 0, false, false, 0);
$this->Write(0, $content, '', 0, 'J', true, 0, false, true, 0);
}
$this->Ln();
}
@ -153,4 +150,3 @@ $pdf->Output('example_010.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_011.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 011 for TCPDF class
// Colored Table
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Colored Table
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -139,4 +136,3 @@ $pdf->Output('example_011.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_012.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 012 for TCPDF class
// Graphic Functions
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Graphic Functions
* @author Nicola Asuni
* @copyright 2004-2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -206,4 +203,3 @@ $pdf->Output('example_012.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_013.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 013 for TCPDF class
// Graphic Transformations
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Graphic Transformations
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -230,4 +227,3 @@ $pdf->Output('example_013.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_014.php
// Begin : 2008-03-04
// Last Update : 2010-06-07
// Last Update : 2010-08-08
//
// Description : Example 014 for TCPDF class
// Javascript Form and user rights (only works on Adobe Acrobat)
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Javascript Form and user rights (only works on Adobe Acrobat)
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -191,4 +188,3 @@ $pdf->Output('example_014.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_015.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 015 for TCPDF class
// Bookmarks (Table of Content)
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Bookmarks (Table of Content)
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -122,4 +119,3 @@ $pdf->Output('example_015.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_016.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-10-19
//
// Description : Example 016 for TCPDF class
// Document Encryption / Security
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Document Encryption / Security
* @author Nicola Asuni
* @copyright 2004-2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -53,12 +50,13 @@ $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8',
If you don't set any password, the document will open as usual.
If you set a user password, the PDF viewer will ask for it before displaying the document.
The master (owner) password, if different from the user one, can be used to get full access.
The master (owner) password, if different from the user one, can be used to get full document access.
Possible encryption modes are:
- 0 = RSA 40 bit
- 1 = RSA 128 bit
- 2 = AES 128 bit
0 = RSA 40 bit
1 = RSA 128 bit
2 = AES 128 bit
3 = AES 256 bit
NOTES:
- To create self-signed signature: openssl req -x509 -nodes -days 365000 -newkey rsa:1024 -keyout tcpdf.crt -out tcpdf.crt
@ -134,4 +132,3 @@ $pdf->Output('example_016.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_017.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 017 for TCPDF class
// Two independent columns with MultiCell
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Two independent columns with MultiCell
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -118,4 +115,3 @@ $pdf->Output('example_017.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_018.php
// Begin : 2008-03-06
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 018 for TCPDF class
// RTL document with Persian language
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: RTL document with Persian language
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-06
*/
@ -133,4 +130,3 @@ $pdf->Output('example_018.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_019.php
// Begin : 2008-03-07
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 019 for TCPDF class
// Non unicode with alternative config file
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Non unicode with alternative config file
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -41,9 +38,12 @@ require_once('../tcpdf.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, false, 'ISO-8859-1', false);
// Set document information dictionary in unicode mode
$pdf->SetDocInfoUnicode(true);
// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Nicola Asuni');
$pdf->SetAuthor('Nicola Asuni [€]');
$pdf->SetTitle('TCPDF Example 019');
$pdf->SetSubject('TCPDF Tutorial');
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
@ -77,7 +77,7 @@ $lg['a_meta_language'] = 'en';
$lg['w_page'] = 'page';
//set some language-dependent strings
$pdf->setLanguageArray($lg);
$pdf->setLanguageArray($lg);
// ---------------------------------------------------------
@ -102,6 +102,5 @@ $pdf->MultiCell(0, 0, $txt."\n", 1, 'J', 1, 1, '', '', true, 0, false, true, 0);
$pdf->Output('example_019.pdf', 'I');
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_020.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 020 for TCPDF class
// Two columns composed by MultiCell of different
@ -25,9 +25,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Two columns composed by MultiCell of different heights
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -132,7 +129,7 @@ $text = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdi
Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa.';
// print some rows just as example
for ($i = 0; $i < 7; ++$i) {
for ($i = 0; $i < 10; ++$i) {
$pdf->MultiRow('Row '.($i+1), $text."\n");
}
@ -147,4 +144,3 @@ $pdf->Output('example_020.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_021.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 021 for TCPDF class
// WriteHTML text flow
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: WriteHTML text flow.
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -92,4 +89,3 @@ $pdf->Output('example_021.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_022.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 022 for TCPDF class
// CMYK colors
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: CMYK colors.
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -147,4 +144,3 @@ $pdf->Output('example_022.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_023.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 023 for TCPDF class
// Page Groups
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Page Groups.
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -114,4 +111,3 @@ $pdf->Output('example_023.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_024.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 024 for TCPDF class
// Object Visibility
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Object Visibility
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -119,4 +116,3 @@ $pdf->Output('example_024.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_025.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 025 for TCPDF class
// Object Transparency
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Object Transparency
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -119,4 +116,3 @@ $pdf->Output('example_025.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_026.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 026 for TCPDF class
// Text Rendering Modes and Text Clipping
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Text Rendering Modes and Text Clipping
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -146,4 +143,3 @@ $pdf->Output('example_026.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_027.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-10-21
//
// Description : Example 027 for TCPDF class
// 1D Barcodes
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: 1D Barcodes.
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -80,9 +77,14 @@ $pdf->AddPage();
// define barcode style
$style = array(
'position' => 'S',
'position' => '',
'align' => 'C',
'stretch' => false,
'fitwidth' => true,
'cellfitalign' => '',
'border' => true,
'padding' => 'auto',
'hpadding' => 'auto',
'vpadding' => 'auto',
'fgcolor' => array(0,0,0),
'bgcolor' => false, //array(255,255,255),
'text' => true,
@ -95,179 +97,179 @@ $style = array(
// CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.
$pdf->Cell(0, 0, 'CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9', 0, 1);
$pdf->write1DBarcode('CODE 39', 'C39', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('CODE 39', 'C39', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// CODE 39 + CHECKSUM
$pdf->Cell(0, 0, 'CODE 39 + CHECKSUM', 0, 1);
$pdf->write1DBarcode('CODE 39 +', 'C39+', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('CODE 39 +', 'C39+', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// CODE 39 EXTENDED
$pdf->Cell(0, 0, 'CODE 39 EXTENDED', 0, 1);
$pdf->write1DBarcode('CODE 39 E', 'C39E', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('CODE 39 E', 'C39E', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// CODE 39 EXTENDED + CHECKSUM
$pdf->Cell(0, 0, 'CODE 39 EXTENDED + CHECKSUM', 0, 1);
$pdf->write1DBarcode('CODE 39 E+', 'C39E+', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('CODE 39 E+', 'C39E+', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// CODE 93 - USS-93
$pdf->Cell(0, 0, 'CODE 93 - USS-93', 0, 1);
$pdf->write1DBarcode('TEST93', 'C93', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('TEST93', 'C93', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// Standard 2 of 5
$pdf->Cell(0, 0, 'Standard 2 of 5', 0, 1);
$pdf->write1DBarcode('1234567', 'S25', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('1234567', 'S25', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// Standard 2 of 5 + CHECKSUM
$pdf->Cell(0, 0, 'Standard 2 of 5 + CHECKSUM', 0, 1);
$pdf->write1DBarcode('1234567', 'S25+', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('1234567', 'S25+', '', '', '', 18, 0.4, $style, 'N');
// add a page ----------
$pdf->AddPage();
$pdf->Ln();
// Interleaved 2 of 5
$pdf->Cell(0, 0, 'Interleaved 2 of 5', 0, 1);
$pdf->write1DBarcode('1234567', 'I25', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('1234567', 'I25', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// Interleaved 2 of 5 + CHECKSUM
$pdf->Cell(0, 0, 'Interleaved 2 of 5 + CHECKSUM', 0, 1);
$pdf->write1DBarcode('1234567', 'I25+', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('1234567', 'I25+', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// add a page ----------
$pdf->AddPage();
// CODE 128 A
$pdf->Cell(0, 0, 'CODE 128 A', 0, 1);
$pdf->write1DBarcode('CODE 128 A', 'C128A', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('CODE 128 A', 'C128A', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// CODE 128 B
$pdf->Cell(0, 0, 'CODE 128 B', 0, 1);
$pdf->write1DBarcode('CODE 128 B', 'C128B', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('CODE 128 B', 'C128B', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// CODE 128 C
$pdf->Cell(0, 0, 'CODE 128 C', 0, 1);
$pdf->write1DBarcode('0123456789', 'C128C', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('0123456789', 'C128C', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// EAN 8
$pdf->Cell(0, 0, 'EAN 8', 0, 1);
$pdf->write1DBarcode('1234567', 'EAN8', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('1234567', 'EAN8', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// EAN 13
$pdf->Cell(0, 0, 'EAN 13', 0, 1);
$pdf->write1DBarcode('1234567890128', 'EAN13', '', '', 80, 15, 0.4, $style, 'N');
// add a page ----------
$pdf->AddPage();
// 2-Digits UPC-Based Extention
$pdf->Cell(0, 0, '2-Digits UPC-Based Extention', 0, 1);
$pdf->write1DBarcode('34', 'EAN2', '', '', 20, 15, 0.4, $style, 'N');
$pdf->Ln();
// 5-Digits UPC-Based Extention
$pdf->Cell(0, 0, '5-Digits UPC-Based Extention', 0, 1);
$pdf->write1DBarcode('51234', 'EAN5', '', '', 40, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('1234567890128', 'EAN13', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// UPC-A
$pdf->Cell(0, 0, 'UPC-A', 0, 1);
$pdf->write1DBarcode('12345678901', 'UPCA', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('12345678901', 'UPCA', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// UPC-E
$pdf->Cell(0, 0, 'UPC-E', 0, 1);
$pdf->write1DBarcode('04210000526', 'UPCE', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('04210000526', 'UPCE', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// 5-Digits UPC-Based Extention
$pdf->Cell(0, 0, '5-Digits UPC-Based Extention', 0, 1);
$pdf->write1DBarcode('51234', 'EAN5', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// 2-Digits UPC-Based Extention
$pdf->Cell(0, 0, '2-Digits UPC-Based Extention', 0, 1);
$pdf->write1DBarcode('34', 'EAN2', '', '', '', 18, 0.4, $style, 'N');
// add a page ----------
$pdf->AddPage();
// MSI
$pdf->Cell(0, 0, 'MSI', 0, 1);
$pdf->write1DBarcode('80523', 'MSI', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('80523', 'MSI', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// MSI + CHECKSUM (module 11)
$pdf->Cell(0, 0, 'MSI + CHECKSUM (module 11)', 0, 1);
$pdf->write1DBarcode('80523', 'MSI+', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('80523', 'MSI+', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// CODABAR
$pdf->Cell(0, 0, 'CODABAR', 0, 1);
$pdf->write1DBarcode('123456789', 'CODABAR', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// CODE 11
$pdf->Cell(0, 0, 'CODE 11', 0, 1);
$pdf->write1DBarcode('123-456-789', 'CODE11', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// PHARMACODE
$pdf->Cell(0, 0, 'PHARMACODE', 0, 1);
$pdf->write1DBarcode('789', 'PHARMA', '', '', '', 18, 0.4, $style, 'N');
$pdf->Ln();
// PHARMACODE TWO-TRACKS
$pdf->Cell(0, 0, 'PHARMACODE TWO-TRACKS', 0, 1);
$pdf->write1DBarcode('105', 'PHARMA2T', '', '', '', 18, 2, $style, 'N');
// add a page ----------
$pdf->AddPage();
// IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200
$pdf->Cell(0, 0, 'IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200', 0, 1);
$pdf->write1DBarcode('01234567094987654321-01234567891', 'IMB', '', '', 130, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('01234567094987654321-01234567891', 'IMB', '', '', '', 15, 0.6, $style, 'N');
$pdf->Ln();
// POSTNET
$pdf->Cell(0, 0, 'POSTNET', 0, 1);
$pdf->write1DBarcode('98000', 'POSTNET', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('98000', 'POSTNET', '', '', '', 15, 0.6, $style, 'N');
$pdf->Ln();
// PLANET
$pdf->Cell(0, 0, 'PLANET', 0, 1);
$pdf->write1DBarcode('98000', 'PLANET', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('98000', 'PLANET', '', '', '', 15, 0.6, $style, 'N');
$pdf->Ln();
// RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)
$pdf->Cell(0, 0, 'RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)', 0, 1);
$pdf->write1DBarcode('SN34RD1A', 'RMS4CC', '', '', 80, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('SN34RD1A', 'RMS4CC', '', '', '', 15, 0.6, $style, 'N');
$pdf->Ln();
// KIX (Klant index - Customer index)
$pdf->Cell(0, 0, 'KIX (Klant index - Customer index)', 0, 1);
$pdf->write1DBarcode('SN34RDX1A', 'KIX', '', '', 80, 15, 0.4, $style, 'N');
// add a page ----------
$pdf->AddPage();
// CODABAR
$pdf->Cell(0, 0, 'CODABAR', 0, 1);
$pdf->write1DBarcode('123456789', 'CODABAR', '', '', 80, 15, 0.4, $style, 'N');
$pdf->Ln();
// CODE 11
$pdf->Cell(0, 0, 'CODE 11', 0, 1);
$pdf->write1DBarcode('123-456-789', 'CODE11', '', '', 80, 15, 0.4, $style, 'N');
$pdf->Ln();
// PHARMACODE
$pdf->Cell(0, 0, 'PHARMACODE', 0, 1);
$pdf->write1DBarcode('789', 'PHARMA', '', '', 30, 15, 0.4, $style, 'N');
$pdf->Ln();
// PHARMACODE TWO-TRACKS
$pdf->Cell(0, 0, 'PHARMACODE TWO-TRACKS', 0, 1);
$pdf->write1DBarcode('105', 'PHARMA2T', '', '', 20, 15, 0.4, $style, 'N');
$pdf->write1DBarcode('SN34RDX1A', 'KIX', '', '', '', 15, 0.6, $style, 'N');
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// TEST BARCODE ALIGNMENTS
@ -275,36 +277,112 @@ $pdf->write1DBarcode('105', 'PHARMA2T', '', '', 20, 15, 0.4, $style, 'N');
// add a page
$pdf->AddPage();
// set a background color
$style['bgcolor'] = array(255,255,240);
$style['fgcolor'] = array(127,0,0);
// Left position
$style['position'] = 'L';
$pdf->write1DBarcode('LEFT', 'C128A', '', '', '', 15, 0.4, $style, 'N');
$pdf->Ln(2);
// Center position
$style['position'] = 'C';
$pdf->write1DBarcode('CENTER', 'C128A', '', '', '', 15, 0.4, $style, 'N');
$pdf->Ln(2);
// Right position
$style['position'] = 'R';
$pdf->write1DBarcode('RIGHT', 'C128A', '', '', '', 15, 0.4, $style, 'N');
$pdf->Ln(2);
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
$style['fgcolor'] = array(0,127,0);
$style['position'] = '';
$style['stretch'] = false; // disable stretch
$style['fitwidth'] = false; // disable fitwidth
// Left alignment
$style['align'] = 'L';
$pdf->write1DBarcode('LEFT', 'C128A', '', '', '', 15, 0.4, $style, 'N');
$pdf->Ln(2);
// Center alignment
$style['align'] = 'C';
$pdf->write1DBarcode('CENTER', 'C128A', '', '', '', 15, 0.4, $style, 'N');
$pdf->Ln(2);
// Right alignment
$style['align'] = 'R';
$pdf->write1DBarcode('RIGHT', 'C128A', '', '', '', 15, 0.4, $style, 'N');
$pdf->Ln(2);
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
$style['fgcolor'] = array(0,64,127);
$style['position'] = '';
$style['stretch'] = false; // disable stretch
$style['fitwidth'] = true; // disable fitwidth
// Left alignment
$style['cellfitalign'] = 'L';
$pdf->write1DBarcode('LEFT', 'C128A', 105, '', 90, 15, 0.4, $style, 'N');
$pdf->Ln(2);
// Center alignment
$style['cellfitalign'] = 'C';
$pdf->write1DBarcode('CENTER', 'C128A', 105, '', 90, 15, 0.4, $style, 'N');
$pdf->Ln(2);
// Right alignment
$style['cellfitalign'] = 'R';
$pdf->write1DBarcode('RIGHT', 'C128A', 105, '', 90, 15, 0.4, $style, 'N');
$pdf->Ln(2);
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
$style['fgcolor'] = array(127,0,127);
// Left alignment
$style['position'] = 'L';
$pdf->write1DBarcode('LEFT', 'C128A', '', '', 180, 30, 0.4, $style, 'N');
$pdf->write1DBarcode('LEFT', 'C128A', '', '', '', 15, 0.4, $style, 'N');
$pdf->Ln();
$pdf->Ln(2);
// Center alignment
$style['position'] = 'C';
$pdf->write1DBarcode('CENTER', 'C128A', '', '', 180, 30, 0.4, $style, 'N');
$pdf->write1DBarcode('CENTER', 'C128A', '', '', '', 15, 0.4, $style, 'N');
$pdf->Ln();
$pdf->Ln(2);
// Right alignment
$style['position'] = 'R';
$pdf->write1DBarcode('RIGHT', 'C128A', '', '', 180, 30, 0.4, $style, 'N');
$pdf->write1DBarcode('RIGHT', 'C128A', '', '', '', 15, 0.4, $style, 'N');
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// TEST BARCODE STYLES
// add a page
$pdf->AddPage();
// TEST BARCODE STYLE
// define barcode style
$style = array(
'position' => 'S',
'position' => '',
'align' => '',
'stretch' => true,
'fitwidth' => false,
'cellfitalign' => '',
'border' => true,
'padding' => 'auto',
'hpadding' => 'auto',
'vpadding' => 'auto',
'fgcolor' => array(0,0,128),
'bgcolor' => array(255,255,128),
'text' => true,
'label' => 'CUSTOM LABEL',
'font' => 'helvetica',
'fontsize' => 8,
'stretchtext' => 4
@ -312,7 +390,8 @@ $style = array(
// CODE 39 EXTENDED + CHECKSUM
$pdf->Cell(0, 0, 'CODE 39 EXTENDED + CHECKSUM', 0, 1);
$pdf->write1DBarcode('CODE 39 E+', 'C39E+', '', '', 100, 15, 0.4, $style, 'N');
$pdf->SetLineStyle(array('width' => 1, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 0, 0)));
$pdf->write1DBarcode('CODE 39 E+', 'C39E+', '', '', 120, 25, 0.4, $style, 'N');
// ---------------------------------------------------------
@ -322,4 +401,3 @@ $pdf->Output('example_027.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_028.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 028 for TCPDF class
// Changing page formats
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: changing page formats
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -139,4 +136,3 @@ $pdf->Output('example_028.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_029.php
// Begin : 2008-06-09
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 029 for TCPDF class
// Set PDF viewer display preferences.
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Set PDF viewer display preferences.
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-06-09
*/
@ -125,4 +122,3 @@ $pdf->Output('example_029.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_030.php
// Begin : 2008-06-09
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 030 for TCPDF class
// Colour gradients
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Colour gradients
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-06-09
*/
@ -189,4 +186,3 @@ $pdf->Output('example_030.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_031.php
// Begin : 2008-06-09
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 031 for TCPDF class
// Pie Chart
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Pie Chart
* @author Nicola Asuni
* @copyright 2004-2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-06-09
*/
@ -104,4 +101,3 @@ $pdf->Output('example_031.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_032.php
// Begin : 2008-06-09
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 032 for TCPDF class
// EPS/AI image
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: EPS/AI image
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-06-09
*/
@ -94,4 +91,3 @@ $pdf->Output('example_032.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_033.php
// Begin : 2008-06-24
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 033 for TCPDF class
// Mixed font types
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Mixed font types
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-06-24
*/
@ -103,4 +100,3 @@ $pdf->Output('example_033.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_034.php
// Begin : 2008-07-18
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 034 for TCPDF class
// Clipping
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Clipping
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -97,4 +94,3 @@ $pdf->Output('example_034.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_035.php
// Begin : 2008-07-22
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 035 for TCPDF class
// Line styles with cells and multicells
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Line styles with cells and multicells
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -112,4 +109,3 @@ $pdf->Output('example_035.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_036.php
// Begin : 2008-08-08
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 036 for TCPDF class
// Annotations
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Annotations
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-08-08
*/
@ -90,4 +87,3 @@ $pdf->Output('example_036.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_037.php
// Begin : 2008-09-12
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 037 for TCPDF class
// Spot colors
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Spot colors.
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-09-12
*/
@ -203,4 +200,3 @@ $pdf->Output('example_037.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_038.php
// Begin : 2008-09-15
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 038 for TCPDF class
// CID-0 CJK unembedded font
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: CID-0 CJK unembedded font
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-09-15
*/
@ -88,4 +85,3 @@ $pdf->Output('example_038.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_039.php
// Begin : 2008-10-16
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 039 for TCPDF class
// HTML justification
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: HTML justification
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-10-18
*/
@ -105,4 +102,3 @@ $pdf->Output('example_039.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_040.php
// Begin : 2008-10-28
// Last Update : 2010-05-20
// Last Update : 2010-08-31
//
// Description : Example 040 for TCPDF class
// Booklet mode (double-sided pages)
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Booklet mode (double-sided pages)
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-10-28
*/
@ -87,27 +84,27 @@ $pdf->AddPage();
$pdf->Write(0, 'Example of booklet mode', '', 0, 'L', true, 0, false, false, 0);
// print a line using Cell()
$pdf->Cell(0, 0, 'LEFT PAGE 1', 1, 1, 'C');
$pdf->Cell(0, 0, 'PAGE 1', 1, 1, 'C');
// add a page (right page)
$pdf->AddPage();
// print a line using Cell()
$pdf->Cell(0, 0, 'RIGHT PAGE 2', 1, 1, 'C');
$pdf->Cell(0, 0, 'PAGE 2', 1, 1, 'C');
// add a page (left page)
$pdf->AddPage();
// print a line using Cell()
$pdf->Cell(0, 0, 'LEFT PAGE 3', 1, 1, 'C');
$pdf->Cell(0, 0, 'PAGE 3', 1, 1, 'C');
// add a page (right page)
$pdf->AddPage();
// print a line using Cell()
$pdf->Cell(0, 0, 'RIGHT PAGE 4', 1, 1, 'C');
$pdf->Cell(0, 0, 'PAGE 4', 1, 1, 'C');
// ---------------------------------------------------------
@ -117,4 +114,3 @@ $pdf->Output('example_040.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_041.php
// Begin : 2008-12-07
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 041 for TCPDF class
// Annotation - FileAttachment
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Annotation - FileAttachment
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-12-07
*/
@ -91,4 +88,3 @@ $pdf->Output('example_041.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_042.php
// Begin : 2008-12-23
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 042 for TCPDF class
// Test Image with alpha channel
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Test Image with alpha channel
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-12-23
*/
@ -103,4 +100,3 @@ $pdf->Output('example_042.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_043.php
// Begin : 2009-01-02
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 043 for TCPDF class
// Disk caching
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Disk caching
* @author Nicola Asuni
* @copyright 2004-2008 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2009-01-02
*/
@ -86,4 +83,3 @@ $pdf->Output('example_043.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_044.php
// Begin : 2009-01-02
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 044 for TCPDF class
// Move, copy and delete pages
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Move, copy and delete pages
* @author Nicola Asuni
* @copyright 2004-2008 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2009-01-02
*/
@ -129,4 +126,3 @@ $pdf->Output('example_044.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_045.php
// Begin : 2008-03-04
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 045 for TCPDF class
// Bookmarks and Table of Content
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Bookmarks and Table of Content
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2008-03-04
*/
@ -131,4 +128,3 @@ $pdf->Output('example_045.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_046.php
// Begin : 2009-02-28
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 046 for TCPDF class
// Text Hyphenation
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: text Hyphenation
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2009-02-28
*/
@ -124,4 +121,3 @@ $pdf->Output('example_046.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_047.php
// Begin : 2009-03-19
// Last Update : 2010-05-20
// Last Update : 2010-08-08
//
// Description : Example 047 for TCPDF class
// Transactions
@ -24,9 +24,6 @@
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: Transactions
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2009-03-19
*/
@ -118,4 +115,3 @@ $pdf->Output('example_047.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
?>

Some files were not shown because too many files have changed in this diff Show More