forked from science-ation/science-ation
Upgrade TCPDF 4.8.039 to 5.9.059
This commit is contained in:
parent
d1b7fb2306
commit
2fd5ab6a47
@ -1,71 +1,59 @@
|
||||
<?php
|
||||
//============================================================+
|
||||
// File name : 2dbarcodes.php
|
||||
// Version : 1.0.007
|
||||
// Begin : 2009-04-07
|
||||
// Last Update : 2009-12-15
|
||||
// Version : 1.0.001
|
||||
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
|
||||
// ----------------------------------------------------------------------------
|
||||
// Copyright (C) 2008-2009 Nicola Asuni - Tecnick.com S.r.l.
|
||||
// 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)
|
||||
// -------------------------------------------------------------------
|
||||
// Copyright (C) 2009-2010 Nicola Asuni - Tecnick.com S.r.l.
|
||||
//
|
||||
// This program 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 2.1 of the License, or
|
||||
// (at your option) any later version.
|
||||
// This file is part of TCPDF software library.
|
||||
//
|
||||
// This program 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.
|
||||
// TCPDF is free software: you can redistribute it and/or modify it
|
||||
// under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of the
|
||||
// License, or (at your option) any later version.
|
||||
//
|
||||
// TCPDF is distributed in the hope that it will be useful, but
|
||||
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
// See the GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// See LICENSE.TXT file for more information.
|
||||
// ----------------------------------------------------------------------------
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// Description : PHP class to creates array representations for
|
||||
// 2D barcodes to be used with TCPDF.
|
||||
//
|
||||
// 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
|
||||
//============================================================+
|
||||
|
||||
/**
|
||||
* @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 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.001
|
||||
* @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
|
||||
* @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.001
|
||||
* @version 1.0.007
|
||||
* @author Nicola Asuni
|
||||
* @link http://www.tcpdf.org
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL
|
||||
*/
|
||||
class TCPDF2DBarcode {
|
||||
|
||||
/**
|
||||
* @var array representation of barcode.
|
||||
* @access protected
|
||||
* Array representation of barcode.
|
||||
* @protected
|
||||
*/
|
||||
protected $barcode_array;
|
||||
protected $barcode_array = false;
|
||||
|
||||
/**
|
||||
* This is the class constructor.
|
||||
@ -74,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>TEST</li><li>...TO BE IMPLEMENTED</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);
|
||||
@ -91,13 +79,76 @@ class TCPDF2DBarcode {
|
||||
|
||||
/**
|
||||
* Set the barcode.
|
||||
* @param string $code code to print
|
||||
* @param string $type type of barcode: <ul><li>TEST</li><li>...TO BE IMPLEMENTED</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) {
|
||||
$mode = explode(',', $type);
|
||||
switch (strtoupper($mode[0])) {
|
||||
$qrtype = strtoupper($mode[0]);
|
||||
switch ($qrtype) {
|
||||
case 'QRCODE': { // QR-CODE
|
||||
require_once(dirname(__FILE__).'/qrcode.php');
|
||||
if (!isset($mode[1]) OR (!in_array($mode[1],array('L','M','Q','H')))) {
|
||||
$mode[1] = 'L'; // Ddefault: Low error correction
|
||||
}
|
||||
$qrcode = new QRcode($code, strtoupper($mode[1]));
|
||||
$this->barcode_array = $qrcode->getBarcodeArray();
|
||||
break;
|
||||
}
|
||||
case 'PDF417': { // PDF417 (ISO/IEC 15438:2006)
|
||||
require_once(dirname(__FILE__).'/pdf417.php');
|
||||
if (!isset($mode[1]) OR ($mode[1] === '')) {
|
||||
$aspectratio = 2; // default aspect ratio (width / height)
|
||||
} else {
|
||||
$aspectratio = floatval($mode[1]);
|
||||
}
|
||||
if (!isset($mode[2]) OR ($mode[2] === '')) {
|
||||
$ecl = -1; // default error correction level (auto)
|
||||
} else {
|
||||
$ecl = intval($mode[2]);
|
||||
}
|
||||
// set macro block
|
||||
$macro = array();
|
||||
if (isset($mode[3]) AND ($mode[3] !== '') AND isset($mode[4]) AND ($mode[4] !== '') AND isset($mode[5]) AND ($mode[5] !== '')) {
|
||||
$macro['segment_total'] = intval($mode[3]);
|
||||
$macro['segment_index'] = intval($mode[4]);
|
||||
$macro['file_id'] = strtr($mode[5], "\xff", ',');
|
||||
for ($i = 0; $i < 7; ++$i) {
|
||||
$o = $i + 6;
|
||||
if (isset($mode[$o]) AND ($mode[$o] !== '')) {
|
||||
// add option
|
||||
$macro['option_'.$i] = strtr($mode[$o], "\xff", ',');
|
||||
}
|
||||
}
|
||||
}
|
||||
$qrcode = new PDF417($code, $ecl, $aspectratio, $macro);
|
||||
$this->barcode_array = $qrcode->getBarcodeArray();
|
||||
break;
|
||||
}
|
||||
case 'RAW':
|
||||
case 'RAW2': { // RAW MODE
|
||||
// remove spaces
|
||||
$code = preg_replace('/[\s]*/si', '', $code);
|
||||
if (strlen($code) < 3) {
|
||||
break;
|
||||
}
|
||||
if ($qrtype == 'RAW') {
|
||||
// comma-separated rows
|
||||
$rows = explode(',', $code);
|
||||
} else { // RAW2
|
||||
// rows enclosed in square parentheses
|
||||
$code = substr($code, 1, -1);
|
||||
$rows = explode('][', $code);
|
||||
}
|
||||
$this->barcode_array['num_rows'] = count($rows);
|
||||
$this->barcode_array['num_cols'] = strlen($rows[0]);
|
||||
$this->barcode_array['bcode'] = array();
|
||||
foreach ($rows as $r) {
|
||||
$this->barcode_array['bcode'][] = str_split($r, 1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'TEST': { // TEST MODE
|
||||
$this->barcode_array['num_rows'] = 5;
|
||||
$this->barcode_array['num_cols'] = 15;
|
||||
@ -106,8 +157,7 @@ class TCPDF2DBarcode {
|
||||
array(0,1,0,0,1,0,0,0,1,0,0,0,0,1,0),
|
||||
array(0,1,0,0,1,1,0,0,1,1,1,0,0,1,0),
|
||||
array(0,1,0,0,1,0,0,0,0,0,1,0,0,1,0),
|
||||
array(0,1,0,0,1,1,1,0,1,1,1,0,0,1,0)
|
||||
);
|
||||
array(0,1,0,0,1,1,1,0,1,1,1,0,0,1,0));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@ -120,4 +170,3 @@ class TCPDF2DBarcode {
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -1,3 +1,696 @@
|
||||
5.9.059 (2011-02-27)
|
||||
- Default Header() method was improved to reduce document size.
|
||||
|
||||
5.9.058 (2011-02-25)
|
||||
- Image() method was improved to cache images with transparency layers (thanks to Korneliusz Jarzębski for reporting this problem).
|
||||
|
||||
5.9.057 (2011-02-24)
|
||||
- A problem with image caching system was fixed (thanks to Korneliusz Jarzębski for reporting this problem).
|
||||
|
||||
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.
|
||||
- Examples n. 1, 14, and 54 were updated.
|
||||
|
||||
5.3.001 (2010-06-06)
|
||||
- Barcode PDF417 was improved to support Macro Code Blocks (see example n. 50).
|
||||
|
||||
5.3.000 (2010-06-05)
|
||||
- License was changed to GNU-LGPLv3 (see the updated LICENSE.TXT file).
|
||||
- PDF417 barcode support was added (check the example n. 50).
|
||||
- The method write2DBarcode() was improved (some parameters were added and other changed - check example n. 50).
|
||||
|
||||
------------------------------------------------------------
|
||||
|
||||
5.2.000 (2010-06-02)
|
||||
- IMPORTANT: Support for font subsetting was added by default to reduce the size of documents using large unicode font files.
|
||||
If you embed the whole font in the PDF, the person on the other end can make changes to it even if he didn't have your font.
|
||||
If you subset the font, file size of the PDF will be smaller but the person who receives your PDF would need to have your same font in order to make changes to your PDF.
|
||||
- The signature of the SetFont() and AddFont() methods were changed to include the font subsetting option (subsetting is applied by default).
|
||||
- Examples 14 and 54 were updated.
|
||||
|
||||
------------------------------------------------------------
|
||||
|
||||
5.1.002 (2010-05-27)
|
||||
- Bug #3007818 "SetAutoPageBreak fails with MultiCell" was fixed.
|
||||
- A bug related to MultiCell() minimun height was fixed.
|
||||
|
||||
5.1.001 (2010-05-26)
|
||||
- The problem of blank page after table was fixed.
|
||||
|
||||
5.1.000 (2010-05-25)
|
||||
- This version includes support for CSS (Cascading Style Sheets) (see example n. 61).
|
||||
- The convertHTMLColorToDec() method was improved.
|
||||
|
||||
------------------------------------------------------------
|
||||
|
||||
5.0.014 (2010-05-21)
|
||||
- A problem on color and style of HTML links was fixed.
|
||||
- A bug relative to gradients was fixed.
|
||||
- The getStringHeight() method was added and getNumLines() method was improved.
|
||||
- All examples were updated.
|
||||
|
||||
5.0.013 (2010-05-19)
|
||||
- A bug related to page-breaks and table cells was fixed.
|
||||
|
||||
5.0.012 (2010-05-19)
|
||||
- Page orientation bug was fixed.
|
||||
- The access to method setPageFormat() was changed to 'protected' because it is not intended to be directly called.
|
||||
|
||||
5.0.011 (2010-05-19)
|
||||
- Page orientation bug was fixed.
|
||||
- Bug #3003966 "Multiple columns and nested lists" was fixed.
|
||||
|
||||
5.0.010 (2010-05-17)
|
||||
- The methods setPageFormat(), setPageOrientation() and related methods were extended to include page boxes, page rotations and page transitions.
|
||||
- The method setPageBoxes() was added to set page boundaries (MediaBox, CropBox, BleedBox, TrimBox, ArtBox);
|
||||
- A bug relative to underline, overline and linethrough was fixed.
|
||||
|
||||
5.0.009 (2010-05-16)
|
||||
- Bug #3002381 "Multiple columns and nested lists" was fixed.
|
||||
|
||||
5.0.008 (2010-05-15)
|
||||
- Bug "Columns WriteHTML and Justification" was fixed.
|
||||
|
||||
5.0.007 (2010-05-14)
|
||||
- Bug #3001347 "Bug when using WriteHTML with setEqualColumns()" was fixed.
|
||||
- Bug #3001505 "problem with sup and sub tags at the beginning of a line" was fixed.
|
||||
|
||||
5.0.006 (2010-05-13)
|
||||
- Length of hr tag was fixed.
|
||||
- An error on 2d barcode method was fixed.
|
||||
|
||||
5.0.005 (2010-05-12)
|
||||
- WARNING: The logic of permissions on the SetProtection() method has been inverted and extended (see example 16). Now you have to specify the features you want to block.
|
||||
- SetProtection() method was extended to support RSA and AES 128 encryption and public-keys (see example 16).
|
||||
- Bug #2999489 "setEqualColumns() and TOC uses wrong columns" was fixed (see the example 10).
|
||||
|
||||
5.0.004 (2010-05-10)
|
||||
- HTML line alignment when using sub and sup tags was fixed.
|
||||
|
||||
5.0.003 (2010-05-07)
|
||||
- Horizontal alignment was fixed for images and barcodes. Now the X coordinate is always relative to the left margin. Use GetAbsX() instead of GetX() to get the X relative to left margin.
|
||||
- Header() method was changed to account for new image alignment rules.
|
||||
|
||||
5.0.002 (2010-05-06)
|
||||
- Bookmark() and related methods were fixed to accept HTML code.
|
||||
- A problem on HTML links was fixed.
|
||||
|
||||
5.0.001 (2010-05-06)
|
||||
- Protected method _putstream was re-added for backward compatibility.
|
||||
- The following method were added to display HTML Table Of Content (see example n. 59):
|
||||
addTOCPage(), endTOCPage(), addHTMLTOC().
|
||||
|
||||
5.0.000 (2010-05-05)
|
||||
- Method ImageSVG() was added to embedd SVG images (see example n. 58). Note that not all SVG images are supported.
|
||||
- Method setRasterizeVectorImages() was added to enable/disable rasterization for vector images via ImageMagick library.
|
||||
- Method RoundedRectXY() was added.
|
||||
- Method PieSectorXY() was added.
|
||||
- Gradient() method is now public and support new features.
|
||||
- Shading to transparency is now supported.
|
||||
- Image alignments were fixed.
|
||||
- Support for dynamic images were improved.
|
||||
- PDF_IMAGE_SCALE_RATIO has been changed to 1.25 for better compatibility with SVG.
|
||||
- RAW and RAW2 modes were added to 2D Barcodes (see example n. 50).
|
||||
- Automatic padding feature was added on barcodes (see examples n. 27 and 50).
|
||||
- Bug #2995003 "Reproduced thead bug" was fixed.
|
||||
- The Output() method now accepts FI and FD destinations to save the document on server before sending it to the client.
|
||||
- Ellipse() method was improved and fixed (see page 2 of example n. 12).
|
||||
|
||||
------------------------------------------------------------
|
||||
|
||||
4.9.018 (2010-04-21)
|
||||
- Bug item #2990356 "Current font size not respected with more than two HTML <p>" was fixed.
|
||||
|
||||
4.9.017 (2010-04-21)
|
||||
- Bug item #2990224 "Different behaviour for equivalent HTML strings" was fixed.
|
||||
- Bug item #2990314 "Dash is not appearing with SHY character" was fixed.
|
||||
|
||||
4.9.016 (2010-04-20)
|
||||
- An error on htmlcolors.php was fixed.
|
||||
- getImageFileType() method was improved.
|
||||
- GIF images with transparency are now better supported.
|
||||
- Automatic page orientation was improved.
|
||||
|
||||
4.9.015 (2010-04-20)
|
||||
- A new method copyPage() was added to clone pages (see example n. 44).
|
||||
- Support for text overline was added.
|
||||
- Underline and linethrough methods were fixed.
|
||||
- Bug #2989058 "SHY character causes unnecessary word-wrapping" was fixed.
|
||||
|
||||
4.9.014 (2010-04-18)
|
||||
- Bug item #2988845 was fixed.
|
||||
|
||||
4.9.013 (2010-04-15)
|
||||
- Image() and ImageEPS() methods were fixed and improved; $fitonpage parameter was added.
|
||||
|
||||
4.9.012 (2010-04-12)
|
||||
- The hyphenateText() method was added to automatically hyphenate text (see example n. 46).
|
||||
|
||||
4.9.011 (2010-04-07)
|
||||
- Vertical alignments for Cell() method were improved (see example n. 57).
|
||||
|
||||
4.9.010 (2010-04-06)
|
||||
- Signature of Cell() method now includes new parameters for vertical alignment (see example n. 57).
|
||||
- Text() method was extended to include all Cell() parameters.
|
||||
- HTML line alignment procedure was changed to fix some bugs.
|
||||
|
||||
4.9.009 (2010-04-05)
|
||||
- Text() method was fixed for backward compatibility.
|
||||
|
||||
4.9.008 (2010-04-03)
|
||||
- Additional line space after table header was removed.
|
||||
- Support for HTML lists in multicolumn mode was added.
|
||||
- The method setTextRenderingMode() was added to set text rendering modes (see the example n. 26).
|
||||
- The following HTML attributes were added to set text rendering modes (see the example n. 26): stroke, strokecolor, fill.
|
||||
|
||||
4.9.007 (2010-04-03)
|
||||
- Font Descent computation was fixed (patch #2981441).
|
||||
|
||||
4.9.006 (2010-04-02)
|
||||
- The constant K_TCPDF_CALLS_IN_HTML was added on configuration file to enable/disable the ability to call TCPDF methods in HTML.
|
||||
- The usage of tcpdf tag in HTML mode was changed to remove the possible security flaw offered by the eval() function (thanks to Matthias Hecker for spotting this security problem). See the new example n. 49 for further information.
|
||||
|
||||
4.9.005 (2010-04-01)
|
||||
- Bug# 2980354 "Wrong File attachment description with security" was fixed.
|
||||
- Several problems with HTML line alignment were fixed.
|
||||
- The constant K_THAI_TOPCHAR was added on configuration file to enable/disable the special procedure used to avoid the overlappind of symbols on Thai language.
|
||||
- A problem with font name directory was fixed.
|
||||
- A bug on _destroy() method was fixed.
|
||||
|
||||
4.9.004 (2010-03-31)
|
||||
- Patch #979681 "GetCharWidth - default character width" was applied (bugfix).
|
||||
|
||||
4.9.003 (2010-03-30)
|
||||
- Problem of first <br /> on multiple columns was fixed.
|
||||
- HTML line alignment was fixed.
|
||||
- A QR-code bug was fixed.
|
||||
|
||||
4.9.002 (2010-03-29)
|
||||
- Patch #2978349 "$ignore_min_height is ignored in function Cell()" was applied.
|
||||
- Bug #2978607 "2D Barcodes are wrong" was fixed.
|
||||
- A problem with HTML block tags was fixed.
|
||||
- Artificial italic for CID-0 fonts was added.
|
||||
- Several multicolumn bugs were fixed.
|
||||
- Support for HTML tables on multicolumn was added.
|
||||
|
||||
4.9.001 (2010-03-28)
|
||||
- QR Code minor bug was fixed.
|
||||
- Multicolumn mode was added (see the new example n. 10).
|
||||
- The following methods were added: setEqualColumns(), setColumnsArray(), selectColumn().
|
||||
- Thai diacritics support were changed (note that this is incompatible with html justification).
|
||||
|
||||
4.9.000 (2010-03-27)
|
||||
- QR Code (2D barcode) support was added (see example n. 50).
|
||||
- The following methods were added to print crop and registration marks (see example n. 56): colorRegistrationBar(), cropMark(), registrationMark().
|
||||
- Limited support for CSS line-height property was added.
|
||||
- Gradient method now supports Gray, RGB and CMYK space color.
|
||||
- Example n. 51 was updated.
|
||||
- Vertical alignment of font inside cell was fixed.
|
||||
- Support for multiple Thai diacritics was added.
|
||||
- Bug item #2974929 "Duplicate case values" was fixed.
|
||||
- Bug item #2976729 "File attachment not working with security" was fixed.
|
||||
|
||||
------------------------------------------------------------
|
||||
|
||||
4.8.039 (2010-03-20)
|
||||
- Problems related to custom locale settings were fixed.
|
||||
- Problems related to HTML on Header and Footer were fixed.
|
||||
@ -167,7 +860,7 @@
|
||||
- Signature of Image() method was changed.
|
||||
- htmlcolors.php file was updated.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
------------------------------------------------------------
|
||||
|
||||
4.7.003 (2009-09-03)
|
||||
- Support for TCPDF methods on HTML was improved (see example n. 49).
|
||||
@ -1260,4 +1953,4 @@
|
||||
- Bitstream Vera Fonts were added (http://www.bitstream.com/font_rendering/products/dev_fonts/vera.html).
|
||||
- Now the AddFont and SetFont functions returns the basic font if the styled version do not exist.
|
||||
|
||||
EOF ----------------------------------------------------------------------------
|
||||
EOF --------------------------------------------------------
|
||||
|
1198
tcpdf/LICENSE.TXT
1198
tcpdf/LICENSE.TXT
File diff suppressed because it is too large
Load Diff
@ -1,18 +1,18 @@
|
||||
TCPDF - README
|
||||
============================================================
|
||||
|
||||
IF YOU'D LIKE TO SUPPORT TCPDF, PLEASE CONSIDER MAKING A
|
||||
DONATION:
|
||||
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: 4.8.039
|
||||
Release date: 2010-03-20
|
||||
Version: 5.9.059
|
||||
Release date: 2011-02-27
|
||||
Author: Nicola Asuni
|
||||
|
||||
Copyright (c) 2001-2010:
|
||||
Copyright (c) 2002-2011:
|
||||
Nicola Asuni
|
||||
Tecnick.com s.r.l.
|
||||
Via Della Pace, 11
|
||||
@ -21,66 +21,69 @@ Copyright (c) 2001-2010:
|
||||
www.tecnick.com
|
||||
|
||||
URLs:
|
||||
http://www.tcpdf.org
|
||||
http://www.sourceforge.net/projects/tcpdf
|
||||
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.
|
||||
TCPDF has been originally derived from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org).
|
||||
|
||||
Main Features:
|
||||
// * no external libraries are required for the basic functions;
|
||||
// * supports all ISO page formats;
|
||||
// * supports custom page formats, margins and units of measure;
|
||||
// * supports UTF-8 Unicode and Right-To-Left languages;
|
||||
// * supports TrueTypeUnicode, OpenTypeUnicode, TrueType, OpenType, Type1 and CID-0 fonts;
|
||||
// * supports document encryption;
|
||||
// * includes methods to publish some XHTML code, including forms;
|
||||
// * includes graphic (geometric) and transformation methods;
|
||||
// * includes Javascript and Forms support;
|
||||
// * includes a method to print various barcode formats: 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;
|
||||
// * includes methods to set Bookmarks and print a Table of Content;
|
||||
// * includes methods to move and delete pages;
|
||||
// * includes methods for automatic page header and footer management;
|
||||
// * supports automatic page break;
|
||||
// * supports automatic page numbering and page groups;
|
||||
// * supports automatic line break and text justification;
|
||||
// * supports JPEG and PNG 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)
|
||||
// * supports stroke and clipping mode for text;
|
||||
// * supports clipping masks;
|
||||
// * supports Grayscale, RGB, CMYK, Spot Colors and Transparencies;
|
||||
// * supports several annotations, including links, text and file attachments;
|
||||
// * supports page compression (requires zlib extension);
|
||||
// * supports text hyphenation.
|
||||
// * supports transactions to UNDO commands.
|
||||
// * supports signature certifications.
|
||||
* 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):
|
||||
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
|
||||
http: www.tcpdf.org
|
||||
|
||||
License
|
||||
Copyright (C) 2002-2010 Nicola Asuni - Tecnick.com S.r.l.
|
||||
Copyright (C) 2002-2011 Nicola Asuni - Tecnick.com S.r.l.
|
||||
|
||||
This program 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 2.1 of the License, or
|
||||
(at your option) any later version.
|
||||
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.
|
||||
|
||||
This program 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.
|
||||
TCPDF is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
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.
|
||||
|
||||
|
@ -1,69 +1,57 @@
|
||||
<?php
|
||||
//============================================================+
|
||||
// File name : barcodes.php
|
||||
// Version : 1.0.012
|
||||
// Begin : 2008-06-09
|
||||
// Last Update : 2009-08-26
|
||||
// Version : 1.0.009
|
||||
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
|
||||
// ----------------------------------------------------------------------------
|
||||
// Copyright (C) 2008-2009 Nicola Asuni - Tecnick.com S.r.l.
|
||||
// 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)
|
||||
// -------------------------------------------------------------------
|
||||
// Copyright (C) 2008-2010 Nicola Asuni - Tecnick.com S.r.l.
|
||||
//
|
||||
// This program 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 2.1 of the License, or
|
||||
// (at your option) any later version.
|
||||
// This file is part of TCPDF software library.
|
||||
//
|
||||
// This program 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.
|
||||
// TCPDF is free software: you can redistribute it and/or modify it
|
||||
// under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of the
|
||||
// License, or (at your option) any later version.
|
||||
//
|
||||
// TCPDF is distributed in the hope that it will be useful, but
|
||||
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
// See the GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// See LICENSE.TXT file for more information.
|
||||
// ----------------------------------------------------------------------------
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// Description : PHP class to creates array representations for
|
||||
// common 1D barcodes to be used with TCPDF.
|
||||
//
|
||||
// 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
|
||||
//============================================================+
|
||||
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
/**
|
||||
* @class TCPDFBarcode
|
||||
* 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
|
||||
* @version 1.0.012
|
||||
* @author Nicola Asuni
|
||||
* @link http://www.tcpdf.org
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL
|
||||
*/
|
||||
class TCPDFBarcode {
|
||||
|
||||
/**
|
||||
* @var array representation of barcode.
|
||||
* @access protected
|
||||
* Array representation of barcode.
|
||||
* @protected
|
||||
*/
|
||||
protected $barcode_array;
|
||||
|
||||
@ -78,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);
|
||||
@ -95,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) {
|
||||
@ -229,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';
|
||||
@ -324,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(
|
||||
@ -375,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(
|
||||
@ -398,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';
|
||||
@ -527,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(
|
||||
@ -572,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);
|
||||
@ -597,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';
|
||||
@ -656,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';
|
||||
@ -696,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);
|
||||
@ -727,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';
|
||||
@ -791,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(
|
||||
@ -987,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;
|
||||
@ -1180,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
|
||||
@ -1255,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
|
||||
@ -1328,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;
|
||||
@ -1480,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(
|
||||
@ -1536,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(
|
||||
@ -1628,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 = '';
|
||||
@ -1654,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 = '';
|
||||
@ -1717,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 0–4. The allowable encoding ranges shall be 00–04, 10–14, 20–24, 30–34, 40–44, 50–54, 60–64, 70–74, 80–84, and 90–94.</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.php–999. Each 3-digit value shall correspond to a particular mail class with a particular combination of service(s). Each service program, such as OneCode Confirm and OneCode ACS, shall provide the list of Service Type Identifier values.</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 000000000–999999999 when used with a 6 digit Mailer ID and 000000-999999 when used with a 9 digit Mailer ID. e. The Delivery Point ZIP Code shall be assigned by the mailer for routing the mailpiece. This shall replace POSTNET for routing the mailpiece to its final delivery point. The length may be 0, 5, 9, or 11 digits. The allowable encoding ranges shall be no ZIP Code, 00000–99999, 000000000–999999999, and 00000000000–99999999999.</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);
|
||||
@ -1842,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) {
|
||||
@ -1866,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) {
|
||||
@ -1882,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
|
||||
@ -1918,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;
|
||||
@ -1934,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();
|
||||
@ -1971,8 +1960,6 @@ class TCPDFBarcode {
|
||||
}
|
||||
|
||||
} // end of class
|
||||
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
29
tcpdf/cache/chapter_demo_1.txt
vendored
29
tcpdf/cache/chapter_demo_1.txt
vendored
@ -1,10 +1,19 @@
|
||||
The year 1866 was marked by a bizarre development, an unexplained and downright inexplicable phenomenon that surely no one has forgotten. Without getting into those rumors that upset civilians in the seaports and deranged the public mind even far inland, it must be said that professional seamen were especially alarmed. Traders, shipowners, captains of vessels, skippers, and master mariners from Europe and America, naval officers from every country, and at their heels the various national governments on these two continents, were all extremely disturbed by the business.
|
||||
In essence, over a period of time several ships had encountered "an enormous thing" at sea, a long spindle-shaped object, sometimes giving off a phosphorescent glow, infinitely bigger and faster than any whale.
|
||||
The relevant data on this apparition, as recorded in various logbooks, agreed pretty closely as to the structure of the object or creature in question, its unprecedented speed of movement, its startling locomotive power, and the unique vitality with which it seemed to be gifted. If it was a cetacean, it exceeded in bulk any whale previously classified by science. No naturalist, neither Cuvier nor Lacépède, neither Professor Dumeril nor Professor de Quatrefages, would have accepted the existence of such a monster sight unseen -- specifically, unseen by their own scientific eyes.
|
||||
Striking an average of observations taken at different times -- rejecting those timid estimates that gave the object a length of 200 feet, and ignoring those exaggerated views that saw it as a mile wide and three long--you could still assert that this phenomenal creature greatly exceeded the dimensions of anything then known to ichthyologists, if it existed at all.
|
||||
Now then, it did exist, this was an undeniable fact; and since the human mind dotes on objects of wonder, you can understand the worldwide excitement caused by this unearthly apparition. As for relegating it to the realm of fiction, that charge had to be dropped.
|
||||
In essence, on July 20, 1866, the steamer Governor Higginson, from the Calcutta & Burnach Steam Navigation Co., encountered this moving mass five miles off the eastern shores of Australia. Captain Baker at first thought he was in the presence of an unknown reef; he was even about to fix its exact position when two waterspouts shot out of this inexplicable object and sprang hissing into the air some 150 feet. So, unless this reef was subject to the intermittent eruptions of a geyser, the Governor Higginson had fair and honest dealings with some aquatic mammal, until then unknown, that could spurt from its blowholes waterspouts mixed with air and steam.
|
||||
Similar events were likewise observed in Pacific seas, on July 23 of the same year, by the Christopher Columbus from the West India & Pacific Steam Navigation Co. Consequently, this extraordinary cetacean could transfer itself from one locality to another with startling swiftness, since within an interval of just three days, the Governor Higginson and the Christopher Columbus had observed it at two positions on the charts separated by a distance of more than 700 nautical leagues.
|
||||
Fifteen days later and 2,000 leagues farther, the Helvetia from the Compagnie Nationale and the Shannon from the Royal Mail line, running on opposite tacks in that part of the Atlantic lying between the United States and Europe, respectively signaled each other that the monster had been sighted in latitude 42 degrees 15' north and longitude 60 degrees 35' west of the meridian of Greenwich. From their simultaneous observations, they were able to estimate the mammal's minimum length at more than 350 English feet; this was because both the Shannon and the Helvetia were of smaller dimensions, although each measured 100 meters stem to stern. Now then, the biggest whales, those rorqual whales that frequent the waterways of the Aleutian Islands, have never exceeded a length of 56 meters--if they reach even that.
|
||||
One after another, reports arrived that would profoundly affect public opinion: new observations taken by the transatlantic liner Pereire, the Inman line's Etna running afoul of the monster, an official report drawn up by officers on the French frigate Normandy, dead-earnest reckonings obtained by the general staff of Commodore Fitz-James aboard the Lord Clyde. In lighthearted countries, people joked about this phenomenon, but such serious, practical countries as England, America, and Germany were deeply concerned.
|
||||
In every big city the monster was the latest rage; they sang about it in the coffee houses, they ridiculed it in the newspapers, they dramatized it in the theaters. The tabloids found it a fine opportunity for hatching all sorts of hoaxes. In those newspapers short of copy, you saw the reappearance of every gigantic imaginary creature, from "Moby Dick," that dreadful white whale from the High Arctic regions, to the stupendous kraken whose tentacles could entwine a 500-ton craft and drag it into the ocean depths. They even reprinted reports from ancient times: the views of Aristotle and Pliny accepting the existence of such monsters, then the Norwegian stories of Bishop Pontoppidan, the narratives of Paul Egede, and finally the reports of Captain Harrington -- whose good faith is above suspicion--in which he claims he saw, while aboard the Castilian in 1857, one of those enormous serpents that, until then, had frequented only the seas of France's old extremist newspaper, The Constitutionalist.
|
||||
Lorem 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. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc.
|
||||
|
||||
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.
|
||||
|
||||
Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu.
|
||||
|
||||
Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra.
|
||||
|
||||
Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat.
|
||||
|
||||
Lorem 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. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc.
|
||||
|
||||
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.
|
||||
|
||||
Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu.
|
||||
|
||||
Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra.
|
||||
|
||||
Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat.
|
||||
|
44
tcpdf/cache/chapter_demo_2.txt
vendored
44
tcpdf/cache/chapter_demo_2.txt
vendored
@ -1,23 +1,23 @@
|
||||
During the period in which these developments were occurring, I had returned from a scientific undertaking organized to explore the Nebraska badlands in the United States. In my capacity as Assistant Professor at the Paris Museum of Natural History, I had been attached to this expedition by the French government. After spending six months in Nebraska, I arrived in New York laden with valuable collections near the end of March. My departure for France was set for early May. In the meantime, then, I was busy classifying my mineralogical, botanical, and zoological treasures when that incident took place with the Scotia.
|
||||
I was perfectly abreast of this question, which was the big news of the day, and how could I not have been? I had read and reread every American and European newspaper without being any farther along. This mystery puzzled me. Finding it impossible to form any views, I drifted from one extreme to the other. Something was out there, that much was certain, and any doubting Thomas was invited to place his finger on the Scotia's wound.
|
||||
When I arrived in New York, the question was at the boiling point. The hypothesis of a drifting islet or an elusive reef, put forward by people not quite in their right minds, was completely eliminated. And indeed, unless this reef had an engine in its belly, how could it move about with such prodigious speed?
|
||||
Also discredited was the idea of a floating hull or some other enormous wreckage, and again because of this speed of movement.
|
||||
So only two possible solutions to the question were left, creating two very distinct groups of supporters: on one side, those favoring a monster of colossal strength; on the other, those favoring an "underwater boat" of tremendous motor power.
|
||||
Now then, although the latter hypothesis was completely admissible, it couldn't stand up to inquiries conducted in both the New World and the Old. That a private individual had such a mechanism at his disposal was less than probable. Where and when had he built it, and how could he have built it in secret?
|
||||
Only some government could own such an engine of destruction, and in these disaster-filled times, when men tax their ingenuity to build increasingly powerful aggressive weapons, it was possible that, unknown to the rest of the world, some nation could have been testing such a fearsome machine. The Chassepot rifle led to the torpedo, and the torpedo has led to this underwater battering ram, which in turn will lead to the world putting its foot down. At least I hope it will.
|
||||
But this hypothesis of a war machine collapsed in the face of formal denials from the various governments. Since the public interest was at stake and transoceanic travel was suffering, the sincerity of these governments could not be doubted. Besides, how could the assembly of this underwater boat have escaped public notice? Keeping a secret under such circumstances would be difficult enough for an individual, and certainly impossible for a nation whose every move is under constant surveillance by rival powers.
|
||||
So, after inquiries conducted in England, France, Russia, Prussia, Spain, Italy, America, and even Turkey, the hypothesis of an underwater Monitor was ultimately rejected.
|
||||
After I arrived in New York, several people did me the honor of consulting me on the phenomenon in question. In France I had published a two-volume work, in quarto, entitled The Mysteries of the Great Ocean Depths. Well received in scholarly circles, this book had established me as a specialist in this pretty obscure field of natural history. My views were in demand. As long as I could deny the reality of the business, I confined myself to a flat "no comment." But soon, pinned to the wall, I had to explain myself straight out. And in this vein, "the honorable Pierre Aronnax, Professor at the Paris Museum," was summoned by The New York Herald to formulate his views no matter what.
|
||||
I complied. Since I could no longer hold my tongue, I let it wag. I discussed the question in its every aspect, both political and scientific, and this is an excerpt from the well-padded article I published in the issue of April 30.
|
||||
<p><strong>Lorem ipsum</strong> 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. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc.</p>
|
||||
|
||||
"Therefore," I wrote, "after examining these different hypotheses one by one, we are forced, every other supposition having been refuted, to accept the existence of an extremely powerful marine animal.
|
||||
"The deepest parts of the ocean are totally unknown to us. No soundings have been able to reach them. What goes on in those distant depths? What creatures inhabit, or could inhabit, those regions twelve or fifteen miles beneath the surface of the water? What is the constitution of these animals? It's almost beyond conjecture.
|
||||
"However, the solution to this problem submitted to me can take the form of a choice between two alternatives.
|
||||
"Either we know every variety of creature populating our planet, or we do not.
|
||||
"If we do not know every one of them, if nature still keeps ichthyological secrets from us, nothing is more admissible than to accept the existence of fish or cetaceans of new species or even new genera, animals with a basically 'cast-iron' constitution that inhabit strata beyond the reach of our soundings, and which some development or other, an urge or a whim if you prefer, can bring to the upper level of the ocean for long intervals.
|
||||
"If, on the other hand, we do know every living species, we must look for the animal in question among those marine creatures already cataloged, and in this event I would be inclined to accept the existence of a giant narwhale.
|
||||
"The common narwhale, or sea unicorn, often reaches a length of sixty feet. Increase its dimensions fivefold or even tenfold, then give this cetacean a strength in proportion to its size while enlarging its offensive weapons, and you have the animal we're looking for. It would have the proportions determined by the officers of the Shannon, the instrument needed to perforate the Scotia, and the power to pierce a steamer's hull.
|
||||
"In essence, the narwhale is armed with a sort of ivory sword, or lance, as certain naturalists have expressed it. It's a king-sized tooth as hard as steel. Some of these teeth have been found buried in the bodies of baleen whales, which the narwhale attacks with invariable success. Others have been wrenched, not without difficulty, from the undersides of vessels that narwhales have pierced clean through, as a gimlet pierces a wine barrel. The museum at the Faculty of Medicine in Paris owns one of these tusks with a length of 2.25 meters and a width at its base of forty-eight centimeters!
|
||||
"All right then! Imagine this weapon to be ten times stronger and the animal ten times more powerful, launch it at a speed of twenty miles per hour, multiply its mass times its velocity, and you get just the collision we need to cause the specified catastrophe.
|
||||
"So, until information becomes more abundant, I plump for a sea unicorn of colossal dimensions, no longer armed with a mere lance but with an actual spur, like ironclad frigates or those warships called 'rams,' whose mass and motor power it would possess simultaneously.
|
||||
"This inexplicable phenomenon is thus explained away unless it's something else entirely, which, despite everything that has been sighted, studied, explored and experienced, is still possible!"
|
||||
<img src="../images/image_demo.jpg" width="54mm" height="80mm" />
|
||||
|
||||
<p style="background-color:yellow;"><i>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.</i></p>
|
||||
|
||||
<p>Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu.</p>
|
||||
|
||||
<p style="color:navy;">Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra.</p>
|
||||
|
||||
<p>Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat.</p>
|
||||
|
||||
<p><strong>Lorem ipsum</strong> 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. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc.</p>
|
||||
|
||||
<img src="../images/image_demo.jpg" width="54mm" height="80mm" />
|
||||
|
||||
<p style="background-color:yellow;"><i>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.</i></p>
|
||||
|
||||
<p>Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu.</p>
|
||||
|
||||
<p style="color:navy;">Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra.</p>
|
||||
|
||||
<p>Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat.</p>
|
||||
|
4
tcpdf/cache/utf8test.txt
vendored
4
tcpdf/cache/utf8test.txt
vendored
@ -94,9 +94,11 @@ 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
47
tcpdf/config/lang/afr.php
Executable 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
47
tcpdf/config/lang/ara.php
Executable 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
47
tcpdf/config/lang/aze.php
Executable 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
47
tcpdf/config/lang/bel.php
Executable 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
|
||||
//============================================================+
|
@ -2,10 +2,11 @@
|
||||
//============================================================+
|
||||
// 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
|
||||
//
|
||||
@ -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();
|
||||
@ -47,4 +45,3 @@ $l['w_page'] = 'página';
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
47
tcpdf/config/lang/cat.php
Executable file
47
tcpdf/config/lang/cat.php
Executable 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
47
tcpdf/config/lang/ces.php
Executable 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
47
tcpdf/config/lang/chi.php
Executable 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
47
tcpdf/config/lang/cym.php
Executable 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
47
tcpdf/config/lang/dan.php
Executable 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
|
||||
//============================================================+
|
@ -2,10 +2,11 @@
|
||||
//============================================================+
|
||||
// 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
|
||||
//
|
||||
@ -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();
|
||||
@ -47,4 +45,3 @@ $l['w_page'] = 'page';
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
47
tcpdf/config/lang/est.php
Executable file
47
tcpdf/config/lang/est.php
Executable 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
47
tcpdf/config/lang/eus.php
Executable 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
47
tcpdf/config/lang/fra.php
Executable 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
|
||||
//============================================================+
|
@ -1,11 +1,12 @@
|
||||
<?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
|
||||
//
|
||||
@ -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
|
||||
//============================================================+
|
||||
?>
|
||||
|
47
tcpdf/config/lang/gle.php
Executable file
47
tcpdf/config/lang/gle.php
Executable 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
47
tcpdf/config/lang/glg.php
Executable 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
47
tcpdf/config/lang/hat.php
Executable 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
47
tcpdf/config/lang/heb.php
Executable 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
47
tcpdf/config/lang/hrv.php
Executable 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
47
tcpdf/config/lang/hun.php
Executable 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
47
tcpdf/config/lang/hye.php
Executable 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
47
tcpdf/config/lang/ind.php
Executable 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
|
||||
//============================================================+
|
@ -2,10 +2,11 @@
|
||||
//============================================================+
|
||||
// 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
|
||||
//
|
||||
@ -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();
|
||||
@ -47,4 +45,3 @@ $l['w_page'] = 'pagina';
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
47
tcpdf/config/lang/kat.php
Executable file
47
tcpdf/config/lang/kat.php
Executable 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
47
tcpdf/config/lang/kor.php
Executable 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
47
tcpdf/config/lang/mkd.php
Executable 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
47
tcpdf/config/lang/mlt.php
Executable 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
47
tcpdf/config/lang/msa.php
Executable 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
47
tcpdf/config/lang/nld.php
Executable 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
47
tcpdf/config/lang/nob.php
Executable 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
47
tcpdf/config/lang/pol.php
Executable 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
47
tcpdf/config/lang/por.php
Executable 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
47
tcpdf/config/lang/ron.php
Executable 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
47
tcpdf/config/lang/rus.php
Executable 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
47
tcpdf/config/lang/slv.php
Executable 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
47
tcpdf/config/lang/spa.php
Executable 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
47
tcpdf/config/lang/sqi.php
Executable 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
47
tcpdf/config/lang/srp.php
Executable 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
47
tcpdf/config/lang/swa.php
Executable 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
47
tcpdf/config/lang/swe.php
Executable 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
47
tcpdf/config/lang/urd.php
Executable 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
47
tcpdf/config/lang/yid.php
Executable 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
47
tcpdf/config/lang/zho.php
Executable 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
|
||||
//============================================================+
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : tcpdf_config.php
|
||||
// Begin : 2004-06-11
|
||||
// Last Update : 2009-09-30
|
||||
// Last Update : 2010-12-16
|
||||
//
|
||||
// Description : Configuration file for TCPDF.
|
||||
//
|
||||
@ -21,11 +21,8 @@
|
||||
/**
|
||||
* Configuration file for TCPDF.
|
||||
* @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
|
||||
* @package com.tecnick.tcpdf
|
||||
* @version 4.0.014
|
||||
* @link http://tcpdf.sourceforge.net
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL
|
||||
* @version 4.9.005
|
||||
* @since 2004-10-27
|
||||
*/
|
||||
|
||||
@ -58,6 +55,7 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
|
||||
define ('K_PATH_MAIN', $k_path_main);
|
||||
|
||||
// Automatic calculation for the following K_PATH_URL constant
|
||||
$k_path_url = $k_path_main; // default value for console mode
|
||||
if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
|
||||
if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') {
|
||||
$k_path_url = 'https://';
|
||||
@ -65,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)));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -203,7 +201,7 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
|
||||
/**
|
||||
* ratio used to adjust the conversion of pixels to user units
|
||||
*/
|
||||
define ('PDF_IMAGE_SCALE_RATIO', 1);
|
||||
define ('PDF_IMAGE_SCALE_RATIO', 1.25);
|
||||
|
||||
/**
|
||||
* magnification factor for titles
|
||||
@ -224,9 +222,19 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
|
||||
* reduction factor for small font
|
||||
*/
|
||||
define('K_SMALL_RATIO', 2/3);
|
||||
|
||||
/**
|
||||
* set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language
|
||||
*/
|
||||
define('K_THAI_TOPCHARS', true);
|
||||
|
||||
/**
|
||||
* if true allows to call TCPDF methods using HTML syntax
|
||||
* IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
|
||||
*/
|
||||
define('K_TCPDF_CALLS_IN_HTML', true);
|
||||
}
|
||||
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : tcpdf_config.php
|
||||
// Begin : 2004-06-11
|
||||
// Last Update : 2009-09-30
|
||||
// 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-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
|
||||
* @package com.tecnick.tcpdf
|
||||
* @version 4.0.014
|
||||
* @link http://tcpdf.sourceforge.net
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL
|
||||
* @version 4.9.005
|
||||
* @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)));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -199,7 +196,7 @@ define ('PDF_FONT_MONOSPACED', 'courier');
|
||||
/**
|
||||
* ratio used to adjust the conversion of pixels to user units
|
||||
*/
|
||||
define ('PDF_IMAGE_SCALE_RATIO', 1);
|
||||
define ('PDF_IMAGE_SCALE_RATIO', 1.25);
|
||||
|
||||
/**
|
||||
* magnification factor for titles
|
||||
@ -221,7 +218,17 @@ define('K_TITLE_MAGNIFICATION', 1.3);
|
||||
*/
|
||||
define('K_SMALL_RATIO', 2/3);
|
||||
|
||||
/**
|
||||
* set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language
|
||||
*/
|
||||
define('K_THAI_TOPCHARS', true);
|
||||
|
||||
/**
|
||||
* if true allows to call TCPDF methods using HTML syntax
|
||||
* IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
|
||||
*/
|
||||
define('K_TCPDF_CALLS_IN_HTML', true);
|
||||
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -1,69 +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/_barcodes.php.html"> barcodes.php
|
||||
</a><br>
|
||||
<a href="com-tecnick-tcpdf/_htmlcolors.php.html"> htmlcolors.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/TCPDF.html">TCPDF</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 Sat, 20 Mar 2010 14:26:41 +0100 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>
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_001.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 001', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -69,21 +66,37 @@ $pdf->setLanguageArray($l);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('times', 'BI', 16);
|
||||
// set default font subsetting mode
|
||||
$pdf->setFontSubsetting(true);
|
||||
|
||||
// add a page
|
||||
// Set font
|
||||
// dejavusans is a UTF-8 Unicode font, if you only need to
|
||||
// print standard ASCII chars, you can use core fonts like
|
||||
// helvetica or times to reduce file size.
|
||||
$pdf->SetFont('dejavusans', '', 14, '', true);
|
||||
|
||||
// Add a page
|
||||
// This method has several options, check the source code documentation for more information.
|
||||
$pdf->AddPage();
|
||||
|
||||
// print a line using Cell()
|
||||
$pdf->Cell(0, 12, 'Example 001 - €àèéìòù', 1, 1, 'C');
|
||||
// Set some content to print
|
||||
$html = <<<EOD
|
||||
<h1>Welcome to <a href="http://www.tcpdf.org" style="text-decoration:none;background-color:#CC0000;color:black;"> <span style="color:black;">TC</span><span style="color:white;">PDF</span> </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>
|
||||
<p style="color:#CC0000;">TO IMPROVE AND EXPAND TCPDF I NEED YOUR SUPPORT, PLEASE <a href="http://sourceforge.net/donate/index.php?group_id=128076">MAKE A DONATION!</a></p>
|
||||
EOD;
|
||||
|
||||
// Print text using writeHTMLCell()
|
||||
$pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// Close and output PDF document
|
||||
// This method has several options, check the source code documentation for more information.
|
||||
$pdf->Output('example_001.pdf', 'I');
|
||||
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_002.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -70,8 +67,15 @@ $pdf->SetFont('times', 'BI', 20);
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// print a line using Cell()
|
||||
$pdf->Cell(0, 10, 'Example 002', 1, 1, 'C');
|
||||
// set some text to print
|
||||
$txt = <<<EOD
|
||||
TCPDF Example 002
|
||||
|
||||
Default page header and footer are disabled using setPrintHeader() and setPrintFooter() methods.
|
||||
EOD;
|
||||
|
||||
// print a block of text using Write()
|
||||
$pdf->Write($h=0, $txt, $link='', $fill=0, $align='C', $ln=true, $stretch=0, $firstline=false, $firstblock=false, $maxh=0);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -81,4 +85,3 @@ $pdf->Output('example_002.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_003.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -36,28 +33,26 @@ require_once('../tcpdf.php');
|
||||
|
||||
// Extend the TCPDF class to create custom Header and Footer
|
||||
class MYPDF extends TCPDF {
|
||||
|
||||
//Page header
|
||||
public function Header() {
|
||||
// Logo
|
||||
$this->Image(K_PATH_IMAGES.'logo_example.jpg', 10, 8, 15);
|
||||
$image_file = K_PATH_IMAGES.'logo_example.jpg';
|
||||
$this->Image($image_file, 10, 10, 15, '', 'JPG', '', 'T', false, 300, '', false, false, 0, false, false, false);
|
||||
// Set font
|
||||
$this->SetFont('helvetica', 'B', 20);
|
||||
// Move to the right
|
||||
$this->Cell(80);
|
||||
// Title
|
||||
$this->Cell(30, 10, 'Title', 0, 0, 'C');
|
||||
// Line break
|
||||
$this->Ln(20);
|
||||
$this->Cell(0, 15, '<< TCPDF Example 003 >>', 0, false, 'C', 0, '', 0, false, 'M', 'M');
|
||||
}
|
||||
|
||||
// Page footer
|
||||
public function Footer() {
|
||||
// Position at 1.5 cm from bottom
|
||||
// Position at 15 mm from bottom
|
||||
$this->SetY(-15);
|
||||
// Set font
|
||||
$this->SetFont('helvetica', 'I', 8);
|
||||
// Page number
|
||||
$this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, 0, 'C');
|
||||
$this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
|
||||
}
|
||||
}
|
||||
|
||||
@ -103,8 +98,15 @@ $pdf->SetFont('times', 'BI', 12);
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// print a line using Cell()
|
||||
$pdf->Cell(0, 10, 'Example 003', 0, 1, 'C');
|
||||
// set some text to print
|
||||
$txt = <<<EOD
|
||||
TCPDF Example 003
|
||||
|
||||
Custom page header and footer are defined by extending the TCPDF class and overriding the Header() and Footer() methods.
|
||||
EOD;
|
||||
|
||||
// print a block of text using Write()
|
||||
$pdf->Write($h=0, $txt, $link='', $fill=0, $align='C', $ln=true, $stretch=0, $firstline=false, $firstblock=false, $maxh=0);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -114,4 +116,3 @@ $pdf->Output('example_003.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_004.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 004', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -70,17 +67,49 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('times', 'B', 12);
|
||||
$pdf->SetFont('times', '', 11);
|
||||
|
||||
// add a page
|
||||
$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(5);
|
||||
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -90,4 +119,3 @@ $pdf->Output('example_004.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_005.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 005', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -75,21 +72,80 @@ $pdf->SetFont('times', '', 10);
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// set color for filler
|
||||
$pdf->SetFillColor(255, 255, 0);
|
||||
// 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);
|
||||
|
||||
// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)
|
||||
|
||||
// set some text for example
|
||||
$txt = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
|
||||
|
||||
// Multicell test
|
||||
$pdf->MultiCell(40, 5, 'A test multicell line 1 test multicell line 2 test multicell line 3', 1, 'L', 1, 0, '', '', true);
|
||||
$pdf->MultiCell(40, 5, 'B test multicell line 1 test multicell line 2 test multicell line 3', 1, 'R', 0, 1, '', '', true);
|
||||
$pdf->MultiCell(40, 5, 'C test multicell line 1 test multicell line 2 test multicell line 3', 1, 'C', 0, 0, '', '', true);
|
||||
$pdf->MultiCell(40, 5, 'D test multicell line 1 test multicell line 2 test multicell line 3'."\n", 1, 'J', 1, 2, '' ,'', true);
|
||||
$pdf->MultiCell(40, 5, 'E test multicell line 1 test multicell line 2 test multicell line 3', 1, 'L', 0, 1, '', '', true);
|
||||
$pdf->MultiCell(55, 5, '[LEFT] '.$txt, 1, 'L', 1, 0, '', '', true);
|
||||
$pdf->MultiCell(55, 5, '[RIGHT] '.$txt, 1, 'R', 0, 1, '', '', true);
|
||||
$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->SetFillColor(255, 200, 200);
|
||||
$pdf->Ln(4);
|
||||
|
||||
$pdf->MultiCell(40, 5, 'F test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line test multicell line'."\n", 1, 'J', 1, 1, '' ,'', true);
|
||||
// set color for background
|
||||
$pdf->SetFillColor(220, 255, 220);
|
||||
|
||||
// reset pointer to the last page
|
||||
// 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);
|
||||
|
||||
// set some text for example
|
||||
$txt = 'Lorem 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. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc.
|
||||
|
||||
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 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();
|
||||
|
||||
// ---------------------------------------------------------
|
||||
@ -100,4 +156,3 @@ $pdf->Output('example_005.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_006.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 006', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -75,17 +72,56 @@ $pdf->SetFont('dejavusans', '', 10);
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// writeHTML($html, $ln=true, $fill=false, $reseth=false, $cell=false, $align='')
|
||||
// writeHTMLCell($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=0, $reseth=true, $align='', $autopadding=true)
|
||||
|
||||
// create some HTML content
|
||||
$htmlcontent = '<h1>HTML Example</h1>< € € € & è è © > \\slash \\\\double-slash \\\\\\triple-slash<h2>List</h2>List example:<ol><li><img src="../images/logo_example.png" alt="test alt attribute" width="30" height="30" border="0" /> test image</li><li><b>bold text</b></li><li><i>italic text</i></li><li><u>underlined text</u></li><li><b>b<i>bi<u>biu</u>bi</i>b</b></li><li><a href="http://www.tecnick.com" dir="ltr">link to http://www.tecnick.com</a></li><li>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.<br />Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</li><li>SUBLIST<ol><li>row one<ul><li>sublist</li></ul></li><li>row two</li></ol></li><li><b>T</b>E<i>S</i><u>T</u> <del>line through</del></li><li><font size="+3">font + 3</font></li><li><small>small text</small> normal <small>small text</small> normal <sub>subscript</sub> normal <sup>superscript</sup> normal</li></ol><dl><dt>Coffee</dt><dd>Black hot drink</dd><dt>Milk</dt><dd>White cold drink</dd></dl><div style="text-align:center">IMAGES<br /><img src="../images/logo_example.png" alt="test alt attribute" width="100" height="100" border="0" /><img src="../images/tiger.ai" alt="test alt attribute" width="100" height="100" border="0" /><img src="../images/logo_example.jpg" alt="test alt attribute" width="100" height="100" border="0" /></div>';
|
||||
$html = '<h1>HTML Example</h1>
|
||||
Some special characters: < € € € & è è © > \\slash \\\\double-slash \\\\\\triple-slash
|
||||
<h2>List</h2>
|
||||
List example:
|
||||
<ol>
|
||||
<li><img src="../images/logo_example.png" alt="test alt attribute" width="30" height="30" border="0" /> test image</li>
|
||||
<li><b>bold text</b></li>
|
||||
<li><i>italic text</i></li>
|
||||
<li><u>underlined text</u></li>
|
||||
<li><b>b<i>bi<u>biu</u>bi</i>b</b></li>
|
||||
<li><a href="http://www.tecnick.com" dir="ltr">link to http://www.tecnick.com</a></li>
|
||||
<li>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.<br />Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</li>
|
||||
<li>SUBLIST
|
||||
<ol>
|
||||
<li>row one
|
||||
<ul>
|
||||
<li>sublist</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>row two</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><b>T</b>E<i>S</i><u>T</u> <del>line through</del></li>
|
||||
<li><font size="+3">font + 3</font></li>
|
||||
<li><small>small text</small> normal <small>small text</small> normal <sub>subscript</sub> normal <sup>superscript</sup> normal</li>
|
||||
</ol>
|
||||
<dl>
|
||||
<dt>Coffee</dt>
|
||||
<dd>Black hot drink</dd>
|
||||
<dt>Milk</dt>
|
||||
<dd>White cold drink</dd>
|
||||
</dl>
|
||||
<div style="text-align:center">IMAGES<br />
|
||||
<img src="../images/logo_example.png" alt="test alt attribute" width="100" height="100" border="0" /><img src="../images/tiger.ai" alt="test alt attribute" width="100" height="100" border="0" /><img src="../images/logo_example.jpg" alt="test alt attribute" width="100" height="100" border="0" />
|
||||
</div>';
|
||||
|
||||
// output the HTML content
|
||||
$pdf->writeHTML($htmlcontent, true, 0, true, 0);
|
||||
$pdf->writeHTML($html, true, false, true, false, '');
|
||||
|
||||
|
||||
// output some RTL HTML content
|
||||
$pdf->writeHTML('<div style="text-align:center">The words “<span dir="rtl">מזל [mazel] טוב [tov]</span>” mean “Congratulations!”</div>', true, 0, true, 0);
|
||||
$html = '<div style="text-align:center">The words “<span dir="rtl">מזל [mazel] טוב [tov]</span>” mean “Congratulations!”</div>';
|
||||
$pdf->writeHTML($html, true, false, true, false, '');
|
||||
|
||||
// test some inline CSS
|
||||
$inlinecss = '<p>This is just an example of html code to demonstrate some supported CSS inline styles.
|
||||
$html = '<p>This is just an example of html code to demonstrate some supported CSS inline styles.
|
||||
<span style="font-weight: bold;">bold text</span>
|
||||
<span style="text-decoration: line-through;">line-trough</span>
|
||||
<span style="text-decoration: underline line-through;">underline and line-trough</span>
|
||||
@ -101,7 +137,7 @@ $inlinecss = '<p>This is just an example of html code to demonstrate some suppor
|
||||
<span style="font-size: xx-large;">xx-large</span>
|
||||
</p>';
|
||||
|
||||
$pdf->writeHTML($inlinecss, true, 0, true, 0);
|
||||
$pdf->writeHTML($html, true, false, true, false, '');
|
||||
|
||||
// reset pointer to the last page
|
||||
$pdf->lastPage();
|
||||
@ -113,22 +149,56 @@ $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>';
|
||||
|
||||
$htmltable = '<h2>HTML TABLE:</h2><table border="1" cellspacing="2" cellpadding="2"><tr><th>#</th><th align="right">RIGHT align</th><th align="left">LEFT align</th><th>4A</th></tr><tr><td>1</td><td bgcolor="#cccccc" align="center" colspan="2">A1 ex<i>amp</i>le <a href="http://www.tcpdf.org">link</a> column span. One two tree four five six seven eight nine ten.<br />line after br<br /><small>small text</small> normal <sub>subscript</sub> normal <sup>superscript</sup> normal bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla<ol><li>first<ol><li>sublist</li><li>sublist</li></ol></li><li>second</li></ol><small color="#FF0000" bgcolor="#FFFF00">small small small small small small small small small small small small small small small small small small small small</small></td><td>4B</td></tr><tr><td>'.$subtable.'</td><td bgcolor="#0000FF" color="yellow" align="center">A2 € € € & è è<br/>A2 € € € & è è</td><td bgcolor="#FFFF00" align="left"><font color="#FF0000">Red</font> Yellow BG</td><td>4C</td></tr><tr><td>1A</td><td rowspan="2" colspan="2" bgcolor="#FFFFCC">2AA<br />2AB<br />2AC</td><td bgcolor="#FF0000">4D</td></tr><tr><td>1B</td><td>4E</td></tr><tr><td>1C</td><td>2C</td><td>3C</td><td>4F</td></tr></table>';
|
||||
$html = '<h2>HTML TABLE:</h2>
|
||||
<table border="1" cellspacing="3" cellpadding="4">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th align="right">RIGHT align</th>
|
||||
<th align="left">LEFT align</th>
|
||||
<th>4A</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td bgcolor="#cccccc" align="center" colspan="2">A1 ex<i>amp</i>le <a href="http://www.tcpdf.org">link</a> column span. One two tree four five six seven eight nine ten.<br />line after br<br /><small>small text</small> normal <sub>subscript</sub> normal <sup>superscript</sup> normal bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla<ol><li>first<ol><li>sublist</li><li>sublist</li></ol></li><li>second</li></ol><small color="#FF0000" bgcolor="#FFFF00">small small small small small small small small small small small small small small small small small small small small</small></td>
|
||||
<td>4B</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>'.$subtable.'</td>
|
||||
<td bgcolor="#0000FF" color="yellow" align="center">A2 € € € & è è<br/>A2 € € € & è è</td>
|
||||
<td bgcolor="#FFFF00" align="left"><font color="#FF0000">Red</font> Yellow BG</td>
|
||||
<td>4C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1A</td>
|
||||
<td rowspan="2" colspan="2" bgcolor="#FFFFCC">2AA<br />2AB<br />2AC</td>
|
||||
<td bgcolor="#FF0000">4D</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1B</td>
|
||||
<td>4E</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1C</td>
|
||||
<td>2C</td>
|
||||
<td>3C</td>
|
||||
<td>4F</td>
|
||||
</tr>
|
||||
</table>';
|
||||
|
||||
// output the HTML content
|
||||
$pdf->writeHTML($htmltable, true, 0, true, 0);
|
||||
$pdf->writeHTML($html, true, false, true, false, '');
|
||||
|
||||
// Print some HTML Cells
|
||||
|
||||
$cellcontent = '<span color="red">red</span> <span color="green">green</span> <span color="blue">blue</span><br /><span color="red">red</span> <span color="green">green</span> <span color="blue">blue</span>';
|
||||
$html = '<span color="red">red</span> <span color="green">green</span> <span color="blue">blue</span><br /><span color="red">red</span> <span color="green">green</span> <span color="blue">blue</span>';
|
||||
|
||||
$pdf->SetFillColor(255,255,0);
|
||||
|
||||
$pdf->writeHTMLCell(0, 0, '', '', $cellcontent, 'LRTB', 1, 0, true, 'L');
|
||||
$pdf->writeHTMLCell(0, 0, '', '', $cellcontent, 'LRTB', 1, 1, true, 'C');
|
||||
$pdf->writeHTMLCell(0, 0, '', '', $cellcontent, 'LRTB', 1, 0, true, 'R');
|
||||
$pdf->writeHTMLCell(0, 0, '', '', $html, 'LRTB', 1, 0, true, 'L', true);
|
||||
$pdf->writeHTMLCell(0, 0, '', '', $html, 'LRTB', 1, 1, true, 'C', true);
|
||||
$pdf->writeHTMLCell(0, 0, '', '', $html, 'LRTB', 1, 0, true, 'R', true);
|
||||
|
||||
// reset pointer to the last page
|
||||
$pdf->lastPage();
|
||||
@ -140,8 +210,8 @@ $pdf->lastPage();
|
||||
$pdf->AddPage();
|
||||
|
||||
// create some HTML content
|
||||
|
||||
$tablealign = '<h1>Image alignments on HTML table</h1><table cellpadding="1" cellspacing="1" border="1" style="text-align:center;">
|
||||
$html = '<h1>Image alignments on HTML table</h1>
|
||||
<table cellpadding="1" cellspacing="1" border="1" style="text-align:center;">
|
||||
<tr><td><img src="../images/logo_example.png" border="0" height="41" width="41" /></td></tr>
|
||||
<tr style="text-align:left;"><td><img src="../images/logo_example.png" border="0" height="41" width="41" align="top" /></td></tr>
|
||||
<tr style="text-align:center;"><td><img src="../images/logo_example.png" border="0" height="41" width="41" align="middle" /></td></tr>
|
||||
@ -152,7 +222,7 @@ $tablealign = '<h1>Image alignments on HTML table</h1><table cellpadding="1" cel
|
||||
</table>';
|
||||
|
||||
// output the HTML content
|
||||
$pdf->writeHTML($tablealign, true, 0, true, 0);
|
||||
$pdf->writeHTML($html, true, false, true, false, '');
|
||||
|
||||
// reset pointer to the last page
|
||||
$pdf->lastPage();
|
||||
@ -163,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>';
|
||||
@ -174,31 +244,31 @@ foreach($webcolor as $k => $v) {
|
||||
}
|
||||
|
||||
// output the HTML content
|
||||
$pdf->writeHTML($textcolors, true, 0, true, 0);
|
||||
$pdf->writeHTML($bgcolors, true, 0, true, 0);
|
||||
$pdf->writeHTML($textcolors, true, false, true, false, '');
|
||||
$pdf->writeHTML($bgcolors, true, false, true, false, '');
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
// Test word-wrap
|
||||
|
||||
// create some HTML content
|
||||
$htmltxt = '<hr /><h1>Various tests</h1><a href="#2">link to page 2</a><br /><font face="courier"><b>thisisaverylongword</b></font> <font face="helvetica"><i>thisisanotherverylongword</i></font> <font face="times"><b>thisisaverylongword</b></font> thisisanotherverylongword <font face="times">thisisaverylongword</font> <font face="courier"><b>thisisaverylongword</b></font> <font face="helvetica"><i>thisisanotherverylongword</i></font> <font face="times"><b>thisisaverylongword</b></font> thisisanotherverylongword <font face="times">thisisaverylongword</font> <font face="courier"><b>thisisaverylongword</b></font> <font face="helvetica"><i>thisisanotherverylongword</i></font> <font face="times"><b>thisisaverylongword</b></font> thisisanotherverylongword <font face="times">thisisaverylongword</font> <font face="courier"><b>thisisaverylongword</b></font> <font face="helvetica"><i>thisisanotherverylongword</i></font> <font face="times"><b>thisisaverylongword</b></font> thisisanotherverylongword <font face="times">thisisaverylongword</font> <font face="courier"><b>thisisaverylongword</b></font> <font face="helvetica"><i>thisisanotherverylongword</i></font> <font face="times"><b>thisisaverylongword</b></font> thisisanotherverylongword <font face="times">thisisaverylongword</font>';
|
||||
$html = '<hr />
|
||||
<h1>Various tests</h1>
|
||||
<a href="#2">link to page 2</a><br />
|
||||
<font face="courier"><b>thisisaverylongword</b></font> <font face="helvetica"><i>thisisanotherverylongword</i></font> <font face="times"><b>thisisaverylongword</b></font> thisisanotherverylongword <font face="times">thisisaverylongword</font> <font face="courier"><b>thisisaverylongword</b></font> <font face="helvetica"><i>thisisanotherverylongword</i></font> <font face="times"><b>thisisaverylongword</b></font> thisisanotherverylongword <font face="times">thisisaverylongword</font> <font face="courier"><b>thisisaverylongword</b></font> <font face="helvetica"><i>thisisanotherverylongword</i></font> <font face="times"><b>thisisaverylongword</b></font> thisisanotherverylongword <font face="times">thisisaverylongword</font> <font face="courier"><b>thisisaverylongword</b></font> <font face="helvetica"><i>thisisanotherverylongword</i></font> <font face="times"><b>thisisaverylongword</b></font> thisisanotherverylongword <font face="times">thisisaverylongword</font> <font face="courier"><b>thisisaverylongword</b></font> <font face="helvetica"><i>thisisanotherverylongword</i></font> <font face="times"><b>thisisaverylongword</b></font> thisisanotherverylongword <font face="times">thisisaverylongword</font>';
|
||||
|
||||
// output the HTML content
|
||||
$pdf->writeHTML($htmltxt, true, 0, true, 0);
|
||||
$pdf->writeHTML($html, true, false, true, false, '');
|
||||
|
||||
// Test fonts nesting
|
||||
$html1 = 'Default <font face="courier">Courier <font face="helvetica">Helvetica <font face="times">Times <font face="dejavusans">dejavusans </font>Times </font>Helvetica </font>Courier </font>Default';
|
||||
$html2 = '<small>small text</small> normal <small>small text</small> normal <sub>subscript</sub> normal <sup>superscript</sup> normal';
|
||||
$html3 = '<font size="10" color="#ff7f50">The</font> <font size="10" color="#6495ed">quick</font> <font size="14" color="#dc143c">brown</font> <font size="18" color="#008000">fox</font> <font size="22"><a href="http://www.tcpdf.org">jumps</a></font> <font size="22" color="#a0522d">over</font> <font size="18" color="#da70d6">the</font> <font size="14" color="#9400d3">lazy</font> <font size="10" color="#4169el">dog</font>.';
|
||||
|
||||
$teststr1 = 'Default <font face="courier">Courier <font face="helvetica">Helvetica <font face="times">Times <font face="dejavusans">dejavusans </font>Times </font>Helvetica </font>Courier </font>Default';
|
||||
|
||||
$teststr2 = '<small>small text</small> normal <small>small text</small> normal <sub>subscript</sub> normal <sup>superscript</sup> normal';
|
||||
|
||||
$teststr3 = '<font size="10" color="#ff7f50">The</font> <font size="10" color="#6495ed">quick</font> <font size="14" color="#dc143c">brown</font> <font size="18" color="#008000">fox</font> <font size="22"><a href="http://www.tcpdf.org">jumps</a></font> <font size="22" color="#a0522d">over</font> <font size="18" color="#da70d6">the</font> <font size="14" color="#9400d3">lazy</font> <font size="10" color="#4169el">dog</font>.';
|
||||
|
||||
$html = $teststr1.'<br />'.$teststr2.'<br />'.$teststr3.'<br />'.$teststr3.'<br />'.$teststr2;
|
||||
$html = $html1.'<br />'.$html2.'<br />'.$html3.'<br />'.$html3.'<br />'.$html2;
|
||||
|
||||
// output the HTML content
|
||||
$pdf->writeHTML($html, true, 0, true, 0);
|
||||
$pdf->writeHTML($html, true, false, true, false, '');
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
// test pre tag
|
||||
@ -206,7 +276,7 @@ $pdf->writeHTML($html, true, 0, true, 0);
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
$htmlcontent = <<<EOF
|
||||
$html = <<<EOF
|
||||
<div style="background-color:#880000;color:white;">
|
||||
Hello World!<br />
|
||||
Hello
|
||||
@ -225,7 +295,27 @@ int main() {
|
||||
EOF;
|
||||
|
||||
// output the HTML content
|
||||
$pdf->writeHTML($htmlcontent, true, 0, true, 0);
|
||||
$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, '');
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
@ -240,4 +330,3 @@ $pdf->Output('example_006.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,10 +2,10 @@
|
||||
//============================================================+
|
||||
// File name : example_007.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// Last Update : 2010-08-08
|
||||
//
|
||||
// Description : Example 007 for TCPDF class
|
||||
// Two independent columns with WriteHTMLCell
|
||||
// Two independent columns with WriteHTMLCell()
|
||||
//
|
||||
// Author: Nicola Asuni
|
||||
//
|
||||
@ -22,11 +22,8 @@
|
||||
/**
|
||||
* Creates an example PDF TEST document using TCPDF
|
||||
* @package com.tecnick.tcpdf
|
||||
* @abstract TCPDF - Example: Two independent columns with WriteHTMLCell
|
||||
* @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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 007', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -76,22 +73,32 @@ $pdf->SetFont('times', '', 12);
|
||||
$pdf->AddPage();
|
||||
|
||||
// create columns content
|
||||
$left_column = '<b>left column</b> left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column';
|
||||
$left_column = '<b>LEFT COLUMN</b> left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column';
|
||||
|
||||
$right_column = '<b>right column</b> right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column';
|
||||
$right_column = '<b>RIGHT COLUMN</b> right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column';
|
||||
|
||||
// set columns width
|
||||
$first_column_width = 80;
|
||||
$second_column_width = 80;
|
||||
// writeHTMLCell($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=0, $reseth=true, $align='', $autopadding=true)
|
||||
|
||||
// get current vertical position
|
||||
$current_y_position = $pdf->getY();
|
||||
$y = $pdf->getY();
|
||||
|
||||
// set color for background
|
||||
$pdf->SetFillColor(255, 255, 200);
|
||||
|
||||
// set color for text
|
||||
$pdf->SetTextColor(0, 63, 127);
|
||||
|
||||
// write the first column
|
||||
$pdf->writeHTMLCell($first_column_width, '', '', $current_y_position, $left_column, 1, 0, 0, true);
|
||||
$pdf->writeHTMLCell(80, '', '', $y, $left_column, 1, 0, 1, true, 'J', true);
|
||||
|
||||
// set color for background
|
||||
$pdf->SetFillColor(215, 235, 255);
|
||||
|
||||
// set color for text
|
||||
$pdf->SetTextColor(127, 31, 0);
|
||||
|
||||
// write the second column
|
||||
$pdf->writeHTMLCell($second_column_width, '', '', '', $right_column, 1, 1, 0, true);
|
||||
$pdf->writeHTMLCell(80, '', '', '', $right_column, 1, 1, 1, true, 'J', true);
|
||||
|
||||
// reset pointer to the last page
|
||||
$pdf->lastPage();
|
||||
@ -104,4 +111,3 @@ $pdf->Output('example_007.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_008.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2010-02-24
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 008', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -78,11 +75,14 @@ $pdf->AddPage();
|
||||
// get esternal file content
|
||||
$utf8text = file_get_contents('../cache/utf8test.txt', false);
|
||||
|
||||
// set a background color
|
||||
$pdf->SetFillColor(230, 240, 255, true);
|
||||
// set color for text
|
||||
$pdf->SetTextColor(0, 63, 127);
|
||||
|
||||
//Write($h, $txt, $link='', $fill=0, $align='', $ln=false, $stretch=0, $firstline=false, $firstblock=false, $maxh=0)
|
||||
|
||||
// write the text
|
||||
$pdf->Write(5, $utf8text, '', 1);
|
||||
$pdf->Write(5, $utf8text, '', 0, '', false, 0, false, false, 0);
|
||||
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -92,4 +92,3 @@ $pdf->Output('example_008.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_009.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 009', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -67,7 +64,7 @@ $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
//set some language-dependent strings
|
||||
$pdf->setLanguageArray($l);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
@ -75,10 +72,71 @@ $pdf->AddPage();
|
||||
// set JPEG quality
|
||||
$pdf->setJPEGQuality(75);
|
||||
|
||||
// Image example
|
||||
$pdf->Image('../images/image_demo.jpg', 50, 50, 100, 150, '', 'http://www.tcpdf.org', '', true, 150);
|
||||
// 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)
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
// 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');
|
||||
@ -86,4 +144,3 @@ $pdf->Output('example_009.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_010.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2010-02-24
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -40,139 +37,65 @@ require_once('../tcpdf.php');
|
||||
class MC_TCPDF extends TCPDF {
|
||||
|
||||
/**
|
||||
* @var number of colums
|
||||
* @access protected
|
||||
* Print chapter
|
||||
* @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
|
||||
*/
|
||||
protected $ncols = 3;
|
||||
|
||||
/**
|
||||
* @var columns width
|
||||
* @access protected
|
||||
*/
|
||||
protected $colwidth = 57;
|
||||
|
||||
/**
|
||||
* @var current column
|
||||
* @access protected
|
||||
*/
|
||||
protected $col = 0;
|
||||
|
||||
/**
|
||||
* @var y position of the beginning of column
|
||||
* @access protected
|
||||
*/
|
||||
protected $col_start_y;
|
||||
|
||||
/**
|
||||
* Set position at a given column
|
||||
* @param $col column number (from 0 to $ncols-1)
|
||||
* @access public
|
||||
*/
|
||||
public function SetCol($col) {
|
||||
$this->col = $col;
|
||||
// set space between columns
|
||||
if ($this->ncols > 1) {
|
||||
$column_space = round((float)($this->w - $this->original_lMargin - $this->original_rMargin - ($this->ncols * $this->colwidth)) / ($this->ncols - 1));
|
||||
} else {
|
||||
$column_space = 0;
|
||||
}
|
||||
// set X position of the current column by case
|
||||
if ($this->rtl) {
|
||||
$x = $this->w - $this->original_rMargin - ($col * ($this->colwidth + $column_space));
|
||||
$this->SetRightMargin($this->w - $x);
|
||||
$this->SetLeftMargin($x - $this->colwidth);
|
||||
} else {
|
||||
$x = $this->original_lMargin + ($col * ($this->colwidth + $column_space));
|
||||
$this->SetLeftMargin($x);
|
||||
$this->SetRightMargin($this->w - $x - $this->colwidth);
|
||||
}
|
||||
$this->x = $x;
|
||||
if ($col > 0) {
|
||||
// set Y position for the column
|
||||
$this->y = $this->col_start_y;
|
||||
}
|
||||
// fix for HTML mode
|
||||
$this->newline = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overwrites the AcceptPageBreak() method to switch between columns
|
||||
* @return boolean false
|
||||
* @access public
|
||||
*/
|
||||
public function AcceptPageBreak() {
|
||||
if($this->col < ($this->ncols - 1)) {
|
||||
// go to next column
|
||||
$this->SetCol($this->col + 1);
|
||||
} else {
|
||||
// go back to first column on the new page
|
||||
public function PrintChapter($num, $title, $file, $mode=false) {
|
||||
// disable existing columns
|
||||
$this->setEqualColumns();
|
||||
// add a new page
|
||||
$this->AddPage();
|
||||
$this->SetCol(0);
|
||||
}
|
||||
// avoid page breaking from checkPageBreak()
|
||||
return false;
|
||||
// reset margins
|
||||
$this->selectColumn();
|
||||
// print chapter title
|
||||
$this->ChapterTitle($num, $title);
|
||||
// set columns
|
||||
$this->setEqualColumns(3, 57);
|
||||
// print chapter body
|
||||
$this->ChapterBody($file, $mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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);
|
||||
// save current Y position
|
||||
$this->col_start_y = $this->GetY();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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) {
|
||||
// store current margin values
|
||||
$lMargin = $this->lMargin;
|
||||
$rMargin = $this->rMargin;
|
||||
$this->selectColumn();
|
||||
// get esternal file content
|
||||
$txt = file_get_contents($file, false);
|
||||
$content = file_get_contents($file, false);
|
||||
// set font
|
||||
$this->SetFont('times', '', 9);
|
||||
// set first column
|
||||
$this->SetCol(0);
|
||||
$this->SetTextColor(50, 50, 50);
|
||||
// print content
|
||||
if ($mode) {
|
||||
// ------ HTML MODE ------
|
||||
$this->writeHTML($txt, true, false, true, false, 'J');
|
||||
$this->writeHTML($content, true, false, true, false, 'J');
|
||||
} else {
|
||||
// ------ TEXT MODE ------
|
||||
$this->Write(0, $txt, '', 0, 'J', true, 0, false, false, 0);
|
||||
$this->Write(0, $content, '', 0, 'J', true, 0, false, true, 0);
|
||||
}
|
||||
$this->Ln();
|
||||
// Go back to first column
|
||||
$this->SetCol(0);
|
||||
// restore previous margin values
|
||||
$this->SetLeftMargin($lMargin);
|
||||
$this->SetRightMargin($rMargin);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
public function PrintChapter($num, $title, $file, $mode=false) {
|
||||
$this->AddPage();
|
||||
$this->ChapterTitle($num, $title);
|
||||
$this->ChapterBody($file, $mode);
|
||||
}
|
||||
}
|
||||
} // end of extended class
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXAMPLE
|
||||
@ -188,7 +111,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 010', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -213,11 +136,11 @@ $pdf->setLanguageArray($l);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// print a text
|
||||
$pdf->PrintChapter(1, 'A RUNAWAY REEF', '../cache/chapter_demo_1.txt', false);
|
||||
// print TEXT
|
||||
$pdf->PrintChapter(1, 'LOREM IPSUM [TEXT]', '../cache/chapter_demo_1.txt', false);
|
||||
|
||||
// print an html text
|
||||
$pdf->PrintChapter(2, 'THE PROS AND CONS', '../cache/chapter_demo_2.txt', true);
|
||||
// print HTML
|
||||
$pdf->PrintChapter(2, 'LOREM IPSUM [HTML]', '../cache/chapter_demo_2.txt', true);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -227,4 +150,3 @@ $pdf->Output('example_010.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_011.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -57,8 +54,10 @@ class MYPDF extends TCPDF {
|
||||
$this->SetFont('', 'B');
|
||||
// Header
|
||||
$w = array(40, 35, 40, 45);
|
||||
for($i = 0; $i < count($header); $i++)
|
||||
$num_headers = count($header);
|
||||
for($i = 0; $i < $num_headers; ++$i) {
|
||||
$this->Cell($w[$i], 7, $header[$i], 1, 0, 'C', 1);
|
||||
}
|
||||
$this->Ln();
|
||||
// Color and font restoration
|
||||
$this->SetFillColor(224, 235, 255);
|
||||
@ -89,7 +88,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 011', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -137,4 +136,3 @@ $pdf->Output('example_011.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_012.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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-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
|
||||
*/
|
||||
|
||||
@ -82,24 +79,24 @@ $style6 = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => '1
|
||||
$style7 = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 128, 0));
|
||||
|
||||
// Line
|
||||
$pdf->Text(5, 7, 'Line examples');
|
||||
$pdf->Text(5, 4, 'Line examples');
|
||||
$pdf->Line(5, 10, 80, 30, $style);
|
||||
$pdf->Line(5, 10, 5, 30, $style2);
|
||||
$pdf->Line(5, 10, 80, 10, $style3);
|
||||
|
||||
// Rect
|
||||
$pdf->Text(100, 7, 'Rectangle examples');
|
||||
$pdf->Text(100, 4, 'Rectangle examples');
|
||||
$pdf->Rect(100, 10, 40, 20, 'DF', $style4, array(220, 220, 200));
|
||||
$pdf->Rect(145, 10, 40, 20, 'D', array('all' => $style3));
|
||||
|
||||
// Curve
|
||||
$pdf->Text(5, 37, 'Curve examples');
|
||||
$pdf->Text(5, 34, 'Curve examples');
|
||||
$pdf->Curve(5, 40, 30, 55, 70, 45, 60, 75, null, $style6);
|
||||
$pdf->Curve(80, 40, 70, 75, 150, 45, 100, 75, 'F', $style6);
|
||||
$pdf->Curve(140, 40, 150, 55, 180, 45, 200, 75, 'DF', $style6, array(200, 220, 200));
|
||||
|
||||
// Circle and ellipse
|
||||
$pdf->Text(5, 82, 'Circle and ellipse examples');
|
||||
$pdf->Text(5, 79, 'Circle and ellipse examples');
|
||||
$pdf->SetLineStyle($style5);
|
||||
$pdf->Circle(25,105,20);
|
||||
$pdf->Circle(25,105,10, 90, 180, null, $style6);
|
||||
@ -107,17 +104,17 @@ $pdf->Circle(25,105,10, 270, 360, 'F');
|
||||
$pdf->Circle(25,105,10, 270, 360, 'C', $style6);
|
||||
|
||||
$pdf->SetLineStyle($style5);
|
||||
$pdf->Ellipse(100,105,40,20);
|
||||
$pdf->Ellipse(100,103,40,20);
|
||||
$pdf->Ellipse(100,105,20,10, 0, 90, 180, null, $style6);
|
||||
$pdf->Ellipse(100,105,20,10, 0, 270, 360, 'DF', $style6);
|
||||
|
||||
$pdf->SetLineStyle($style5);
|
||||
$pdf->Ellipse(175,105,30,15,45);
|
||||
$pdf->Ellipse(175,103,30,15,45);
|
||||
$pdf->Ellipse(175,105,15,7.50, 45, 90, 180, null, $style6);
|
||||
$pdf->Ellipse(175,105,15,7.50, 45, 270, 360, 'F', $style6, array(220, 200, 200));
|
||||
|
||||
// Polygon
|
||||
$pdf->Text(5, 132, 'Polygon examples');
|
||||
$pdf->Text(5, 129, 'Polygon examples');
|
||||
$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));
|
||||
$pdf->Polygon(array(5,135,45,135,15,165));
|
||||
$pdf->Polygon(array(60,135,80,135,80,155,70,165,50,155), 'DF', array($style6, $style7, $style7, 0, $style6), array(220, 200, 200));
|
||||
@ -129,7 +126,7 @@ $pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'da
|
||||
$pdf->PolyLine(array(80,165,90,160,100,165,110,160,120,165,130,160,140,165), 'D', array(), array());
|
||||
|
||||
// Regular polygon
|
||||
$pdf->Text(5, 172, 'Regular polygon examples');
|
||||
$pdf->Text(5, 169, 'Regular polygon examples');
|
||||
$pdf->SetLineStyle($style5);
|
||||
$pdf->RegularPolygon(20, 190, 15, 6, 0, 1, 'F');
|
||||
$pdf->RegularPolygon(55, 190, 15, 6);
|
||||
@ -139,7 +136,7 @@ $pdf->RegularPolygon(125, 190, 15, 4, 30, 1, null, array('all' => $style5), null
|
||||
$pdf->RegularPolygon(160, 190, 15, 10);
|
||||
|
||||
// Star polygon
|
||||
$pdf->Text(5, 212, 'Star polygon examples');
|
||||
$pdf->Text(5, 209, 'Star polygon examples');
|
||||
$pdf->SetLineStyle($style5);
|
||||
$pdf->StarPolygon(20, 230, 15, 20, 3, 0, 1, 'F');
|
||||
$pdf->StarPolygon(55, 230, 15, 12, 5);
|
||||
@ -150,7 +147,7 @@ $pdf->StarPolygon(160, 230, 15, 10, 3);
|
||||
$pdf->StarPolygon(160, 230, 7, 50, 26);
|
||||
|
||||
// Rounded rectangle
|
||||
$pdf->Text(5, 252, 'Rounded rectangle examples');
|
||||
$pdf->Text(5, 249, 'Rounded rectangle examples');
|
||||
$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));
|
||||
$pdf->RoundedRect(5, 255, 40, 30, 3.50, '1111', 'DF');
|
||||
$pdf->RoundedRect(50, 255, 40, 30, 6.50, '1000');
|
||||
@ -158,7 +155,7 @@ $pdf->RoundedRect(95, 255, 40, 30, 10.0, '1111', null, $style6);
|
||||
$pdf->RoundedRect(140, 255, 40, 30, 8.0, '0101', 'DF', $style6, array(200, 200, 200));
|
||||
|
||||
// Arrows
|
||||
$pdf->Text(190, 252, 'Arrows');
|
||||
$pdf->Text(185, 249, 'Arrows');
|
||||
$pdf->SetLineStyle($style5);
|
||||
$pdf->SetFillColor(255, 0, 0);
|
||||
$pdf->Arrow($x0=200, $y0=280, $x1=185, $y1=266, $head_style=0, $arm_size=5, $arm_angle=15);
|
||||
@ -166,6 +163,38 @@ $pdf->Arrow($x0=200, $y0=280, $x1=190, $y1=263, $head_style=1, $arm_size=5, $arm
|
||||
$pdf->Arrow($x0=200, $y0=280, $x1=195, $y1=261, $head_style=2, $arm_size=5, $arm_angle=15);
|
||||
$pdf->Arrow($x0=200, $y0=280, $x1=200, $y1=260, $head_style=3, $arm_size=5, $arm_angle=15);
|
||||
|
||||
// - . - . - . - . - . - . - . - . - . - . - . - . - . - . -
|
||||
|
||||
// ellipse
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
$pdf->Cell(0, 0, 'Arc of Ellipse');
|
||||
|
||||
// center of ellipse
|
||||
$xc=100;
|
||||
$yc=100;
|
||||
|
||||
// X Y axis
|
||||
$pdf->SetDrawColor(200, 200, 200);
|
||||
$pdf->Line($xc-50, $yc, $xc+50, $yc);
|
||||
$pdf->Line($xc, $yc-50, $xc, $yc+50);
|
||||
|
||||
// ellipse axis
|
||||
$pdf->SetDrawColor(200, 220, 255);
|
||||
$pdf->Line($xc-50, $yc-50, $xc+50, $yc+50);
|
||||
$pdf->Line($xc-50, $yc+50, $xc+50, $yc-50);
|
||||
|
||||
// ellipse
|
||||
$pdf->SetDrawColor(200, 255, 200);
|
||||
$pdf->Ellipse($xc, $yc, $rx=30, $ry=15, $angle=45, $astart=0, $afinish=360, $style='D', $line_style=array(), $fill_color=array(), $nc=2);
|
||||
|
||||
// ellipse arc
|
||||
$pdf->SetDrawColor(255, 0, 0);
|
||||
$pdf->Ellipse($xc, $yc, $rx=30, $ry=15, $angle=45, $astart=45, $afinish=90, $style='D', $line_style=array(), $fill_color=array(), $nc=2);
|
||||
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
//Close and output PDF document
|
||||
@ -174,4 +203,3 @@ $pdf->Output('example_012.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_013.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -43,15 +40,20 @@ $pdf->SetTitle('TCPDF Example 013');
|
||||
$pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// disable header and footer
|
||||
$pdf->setPrintHeader(false);
|
||||
$pdf->setPrintFooter(false);
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 013', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
|
||||
|
||||
// set default monospaced font
|
||||
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
|
||||
|
||||
//set margins
|
||||
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
|
||||
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
|
||||
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
|
||||
|
||||
//set auto page breaks
|
||||
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
@ -65,129 +67,134 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', '', 10);
|
||||
$pdf->SetFont('helvetica', 'B', 20);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
//Scaling
|
||||
$pdf->Write(0, 'Graphic Transformations', '', 0, 'C', 1, 0, false, false, 0);
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', '', 10);
|
||||
|
||||
// --- Scaling ---------------------------------------------
|
||||
$pdf->SetDrawColor(200);
|
||||
$pdf->SetTextColor(200);
|
||||
$pdf->Rect(50, 20, 40, 10, 'D');
|
||||
$pdf->Text(50, 19, 'Scale');
|
||||
$pdf->Rect(50, 70, 40, 10, 'D');
|
||||
$pdf->Text(50, 66, 'Scale');
|
||||
$pdf->SetDrawColor(0);
|
||||
$pdf->SetTextColor(0);
|
||||
// Start Transformation
|
||||
$pdf->StartTransform();
|
||||
//Scale by 150% centered by (50,30) which is the lower left corner of the rectangle
|
||||
$pdf->ScaleXY(150, 50, 30);
|
||||
$pdf->Rect(50, 20, 40, 10, 'D');
|
||||
$pdf->Text(50, 19, 'Scale');
|
||||
// Scale by 150% centered by (50,80) which is the lower left corner of the rectangle
|
||||
$pdf->ScaleXY(150, 50, 80);
|
||||
$pdf->Rect(50, 70, 40, 10, 'D');
|
||||
$pdf->Text(50, 66, 'Scale');
|
||||
// Stop Transformation
|
||||
$pdf->StopTransform();
|
||||
|
||||
//Translation
|
||||
// --- Translation -----------------------------------------
|
||||
$pdf->SetDrawColor(200);
|
||||
$pdf->SetTextColor(200);
|
||||
$pdf->Rect(125, 20, 40, 10, 'D');
|
||||
$pdf->Text(125, 19, 'Translate');
|
||||
$pdf->Rect(125, 70, 40, 10, 'D');
|
||||
$pdf->Text(125, 66, 'Translate');
|
||||
$pdf->SetDrawColor(0);
|
||||
$pdf->SetTextColor(0);
|
||||
// Start Transformation
|
||||
$pdf->StartTransform();
|
||||
// Translate 7 to the right, 5 to the bottom
|
||||
$pdf->Translate(7, 5);
|
||||
$pdf->Rect(125, 20, 40, 10, 'D');
|
||||
$pdf->Text(125, 19, 'Translate');
|
||||
$pdf->Rect(125, 70, 40, 10, 'D');
|
||||
$pdf->Text(125, 66, 'Translate');
|
||||
// Stop Transformation
|
||||
$pdf->StopTransform();
|
||||
|
||||
//Rotation
|
||||
// --- Rotation --------------------------------------------
|
||||
$pdf->SetDrawColor(200);
|
||||
$pdf->SetTextColor(200);
|
||||
$pdf->Rect(50, 50, 40, 10, 'D');
|
||||
$pdf->Text(50, 49, 'Rotate');
|
||||
$pdf->Rect(70, 100, 40, 10, 'D');
|
||||
$pdf->Text(70, 96, 'Rotate');
|
||||
$pdf->SetDrawColor(0);
|
||||
$pdf->SetTextColor(0);
|
||||
// Start Transformation
|
||||
$pdf->StartTransform();
|
||||
//Rotate 20 degrees counter-clockwise centered by (50,60) which is the lower left corner of the rectangle
|
||||
$pdf->Rotate(20, 50, 60);
|
||||
$pdf->Rect(50, 50, 40, 10, 'D');
|
||||
$pdf->Text(50, 49, 'Rotate');
|
||||
// Rotate 20 degrees counter-clockwise centered by (70,110) which is the lower left corner of the rectangle
|
||||
$pdf->Rotate(20, 70, 110);
|
||||
$pdf->Rect(70, 100, 40, 10, 'D');
|
||||
$pdf->Text(70, 96, 'Rotate');
|
||||
// Stop Transformation
|
||||
$pdf->StopTransform();
|
||||
|
||||
//Skewing
|
||||
// --- Skewing ---------------------------------------------
|
||||
$pdf->SetDrawColor(200);
|
||||
$pdf->SetTextColor(200);
|
||||
$pdf->Rect(125, 50, 40, 10, 'D');
|
||||
$pdf->Text(125, 49, 'Skew');
|
||||
$pdf->Rect(125, 100, 40, 10, 'D');
|
||||
$pdf->Text(125, 96, 'Skew');
|
||||
$pdf->SetDrawColor(0);
|
||||
$pdf->SetTextColor(0);
|
||||
// Start Transformation
|
||||
$pdf->StartTransform();
|
||||
//skew 30 degrees along the x-axis centered by (125,60) which is the lower left corner of the rectangle
|
||||
$pdf->SkewX(30, 125, 60);
|
||||
$pdf->Rect(125, 50, 40, 10, 'D');
|
||||
$pdf->Text(125, 49, 'Skew');
|
||||
// skew 30 degrees along the x-axis centered by (125,110) which is the lower left corner of the rectangle
|
||||
$pdf->SkewX(30, 125, 110);
|
||||
$pdf->Rect(125, 100, 40, 10, 'D');
|
||||
$pdf->Text(125, 96, 'Skew');
|
||||
// Stop Transformation
|
||||
$pdf->StopTransform();
|
||||
|
||||
//Mirroring horizontally
|
||||
// --- Mirroring horizontally ------------------------------
|
||||
$pdf->SetDrawColor(200);
|
||||
$pdf->SetTextColor(200);
|
||||
$pdf->Rect(50, 80, 40, 10, 'D');
|
||||
$pdf->Text(50, 79, 'MirrorH');
|
||||
$pdf->Rect(70, 130, 40, 10, 'D');
|
||||
$pdf->Text(70, 126, 'MirrorH');
|
||||
$pdf->SetDrawColor(0);
|
||||
$pdf->SetTextColor(0);
|
||||
// Start Transformation
|
||||
$pdf->StartTransform();
|
||||
//mirror horizontally with axis of reflection at x-position 50 (left side of the rectangle)
|
||||
$pdf->MirrorH(50);
|
||||
$pdf->Rect(50, 80, 40, 10, 'D');
|
||||
$pdf->Text(50, 79, 'MirrorH');
|
||||
// mirror horizontally with axis of reflection at x-position 70 (left side of the rectangle)
|
||||
$pdf->MirrorH(70);
|
||||
$pdf->Rect(70, 130, 40, 10, 'D');
|
||||
$pdf->Text(70, 126, 'MirrorH');
|
||||
// Stop Transformation
|
||||
$pdf->StopTransform();
|
||||
|
||||
//Mirroring vertically
|
||||
// --- Mirroring vertically --------------------------------
|
||||
$pdf->SetDrawColor(200);
|
||||
$pdf->SetTextColor(200);
|
||||
$pdf->Rect(125, 80, 40, 10, 'D');
|
||||
$pdf->Text(125, 79, 'MirrorV');
|
||||
$pdf->Rect(125, 130, 40, 10, 'D');
|
||||
$pdf->Text(125, 126, 'MirrorV');
|
||||
$pdf->SetDrawColor(0);
|
||||
$pdf->SetTextColor(0);
|
||||
// Start Transformation
|
||||
$pdf->StartTransform();
|
||||
//mirror vertically with axis of reflection at y-position 90 (bottom side of the rectangle)
|
||||
$pdf->MirrorV(90);
|
||||
$pdf->Rect(125, 80, 40, 10, 'D');
|
||||
$pdf->Text(125, 79, 'MirrorV');
|
||||
// mirror vertically with axis of reflection at y-position 140 (bottom side of the rectangle)
|
||||
$pdf->MirrorV(140);
|
||||
$pdf->Rect(125, 130, 40, 10, 'D');
|
||||
$pdf->Text(125, 126, 'MirrorV');
|
||||
// Stop Transformation
|
||||
$pdf->StopTransform();
|
||||
|
||||
//Point reflection
|
||||
// --- Point reflection ------------------------------------
|
||||
$pdf->SetDrawColor(200);
|
||||
$pdf->SetTextColor(200);
|
||||
$pdf->Rect(50, 110, 40, 10, 'D');
|
||||
$pdf->Text(50, 109, 'MirrorP');
|
||||
$pdf->Rect(70, 160, 40, 10, 'D');
|
||||
$pdf->Text(70, 156, 'MirrorP');
|
||||
$pdf->SetDrawColor(0);
|
||||
$pdf->SetTextColor(0);
|
||||
// Start Transformation
|
||||
$pdf->StartTransform();
|
||||
// point reflection at the lower left point of rectangle
|
||||
$pdf->MirrorP(50,120);
|
||||
$pdf->Rect(50, 110, 40, 10, 'D');
|
||||
$pdf->Text(50, 109, 'MirrorP');
|
||||
$pdf->MirrorP(70,170);
|
||||
$pdf->Rect(70, 160, 40, 10, 'D');
|
||||
$pdf->Text(70, 156, 'MirrorP');
|
||||
// Stop Transformation
|
||||
$pdf->StopTransform();
|
||||
|
||||
//Mirroring against a straigth line described by a point (120, 120) and an angle -20°
|
||||
// --- Mirroring against a straigth line described by a point (120, 120) and an angle -20°
|
||||
$angle=-20;
|
||||
$px=120;
|
||||
$py=120;
|
||||
$py=170;
|
||||
|
||||
//just vor visualisation: the straight line to mirror against
|
||||
// just for visualisation: the straight line to mirror against
|
||||
|
||||
$pdf->SetDrawColor(200);
|
||||
$pdf->Line($px-1,$py-1,$px+1,$py+1);
|
||||
@ -199,16 +206,16 @@ $pdf->StopTransform();
|
||||
|
||||
$pdf->SetDrawColor(200);
|
||||
$pdf->SetTextColor(200);
|
||||
$pdf->Rect(125, 110, 40, 10, 'D');
|
||||
$pdf->Text(125, 109, 'MirrorL');
|
||||
$pdf->Rect(125, 160, 40, 10, 'D');
|
||||
$pdf->Text(125, 156, 'MirrorL');
|
||||
$pdf->SetDrawColor(0);
|
||||
$pdf->SetTextColor(0);
|
||||
//Start Transformation
|
||||
$pdf->StartTransform();
|
||||
//mirror against the straight line
|
||||
$pdf->MirrorL($angle, $px, $py);
|
||||
$pdf->Rect(125, 110, 40, 10, 'D');
|
||||
$pdf->Text(125, 109, 'MirrorL');
|
||||
$pdf->Rect(125, 160, 40, 10, 'D');
|
||||
$pdf->Text(125, 156, 'MirrorL');
|
||||
//Stop Transformation
|
||||
$pdf->StopTransform();
|
||||
|
||||
@ -220,4 +227,3 @@ $pdf->Output('example_013.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_014.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 014', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -69,8 +66,11 @@ $pdf->setLanguageArray($l);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// IMPORTANT: disable font subsetting to allow users editing the document
|
||||
$pdf->setFontSubsetting(false);
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', '', 10);
|
||||
$pdf->SetFont('helvetica', '', 10, '', false);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
@ -85,7 +85,7 @@ This name allows to manipulate them via JavaScript in order to perform some vali
|
||||
$pdf->setFormDefaultProp(array('lineWidth'=>1, 'borderStyle'=>'solid', 'fillColor'=>array(255, 255, 200), 'strokeColor'=>array(255, 128, 128)));
|
||||
|
||||
$pdf->SetFont('helvetica', 'BI', 18);
|
||||
$pdf->Cell(0, 5, 'Subscription form', 0, 1, 'C');
|
||||
$pdf->Cell(0, 5, 'Example of Form', 0, 1, 'C');
|
||||
$pdf->Ln(10);
|
||||
|
||||
$pdf->SetFont('helvetica', '', 12);
|
||||
@ -188,4 +188,3 @@ $pdf->Output('example_014.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_015.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 015', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -69,6 +66,8 @@ $pdf->setLanguageArray($l);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// Bookmark($txt, $level=0, $y=-1, $page='')
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('times', 'B', 20);
|
||||
|
||||
@ -81,6 +80,13 @@ $pdf->Bookmark('Chapter 1', 0, 0);
|
||||
// print a line using Cell()
|
||||
$pdf->Cell(0, 10, 'Chapter 1', 0, 1, 'L');
|
||||
|
||||
$pdf->SetFont('times', 'I', 14);
|
||||
$pdf->Write(0, 'You can set PDF Bookmarks using the Bookmark() method.');
|
||||
|
||||
$pdf->SetFont('times', 'B', 20);
|
||||
|
||||
// add other pages and bookmarks
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Bookmark('Paragraph 1.1', 1, 0);
|
||||
$pdf->Cell(0, 10, 'Paragraph 1.1', 0, 1, 'L');
|
||||
@ -113,4 +119,3 @@ $pdf->Output('example_015.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_016.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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-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
|
||||
*/
|
||||
|
||||
@ -36,22 +33,46 @@ require_once('../tcpdf.php');
|
||||
// create new PDF document
|
||||
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
|
||||
|
||||
// Set PDF protection (RSA 40bit encryption)
|
||||
|
||||
// *** Set PDF protection (encryption) *********************
|
||||
|
||||
/*
|
||||
* The permission array is composed of values taken from the following ones:
|
||||
* - copy: copy text and images to the clipboard
|
||||
* - print: print the document
|
||||
* - modify: modify it (except for annotations and forms)
|
||||
* - annot-forms: add annotations and forms
|
||||
* If you don't set any password, the document will open as usual.
|
||||
* If you set a user password, the PDF viewer will ask for it before
|
||||
* displaying the document. The master password, if different from
|
||||
* the user one, can be used to get full access.
|
||||
* Note: protecting a document requires to encrypt it, which increases the
|
||||
* processing time a lot. This can cause a PHP time-out in some cases,
|
||||
* especially if the document contains images or fonts.
|
||||
The permission array is composed of values taken from the following ones (specify the ones you want to block):
|
||||
- print : Print the document;
|
||||
- modify : Modify the contents of the document by operations other than those controlled by 'fill-forms', 'extract' and 'assemble';
|
||||
- copy : Copy or otherwise extract text and graphics from the document;
|
||||
- annot-forms : Add or modify text annotations, fill in interactive form fields, and, if 'modify' is also set, create or modify interactive form fields (including signature fields);
|
||||
- fill-forms : Fill in existing interactive form fields (including signature fields), even if 'annot-forms' is not specified;
|
||||
- extract : Extract text and graphics (in support of accessibility to users with disabilities or for other purposes);
|
||||
- assemble : Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if 'modify' is not set;
|
||||
- print-high : Print the document to a representation from which a faithful digital copy of the PDF content could be generated. When this is not set, printing is limited to a low-level representation of the appearance, possibly of degraded quality.
|
||||
- owner : (inverted logic - only for public-key) when set permits change of encryption and enables all other permissions.
|
||||
|
||||
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 document access.
|
||||
|
||||
Possible encryption modes are:
|
||||
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
|
||||
- To export crt to p12: openssl pkcs12 -export -in tcpdf.crt -out tcpdf.p12
|
||||
- To convert pfx certificate to pem: openssl pkcs12 -in tcpdf.pfx -out tcpdf.crt -nodes
|
||||
|
||||
*/
|
||||
$pdf->SetProtection(array('print'));
|
||||
|
||||
$pdf->SetProtection($permissions=array('print', 'copy'), $user_pass='', $owner_pass=null, $mode=0, $pubkeys=null);
|
||||
|
||||
// Example with public-key
|
||||
// To open the document you need to install the private key (tcpdf.p12) on the Acrobat Reader. The password is: 1234
|
||||
//$pdf->SetProtection($permissions=array('print', 'copy'), $user_pass='', $owner_pass=null, $mode=1, $pubkeys=array(array('c' => 'file://../tcpdf.crt', 'p' => array('print'))));
|
||||
|
||||
// *********************************************************
|
||||
|
||||
|
||||
// set document information
|
||||
$pdf->SetCreator(PDF_CREATOR);
|
||||
@ -61,7 +82,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 016', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array('helvetica', '', PDF_FONT_SIZE_MAIN));
|
||||
@ -87,13 +108,21 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('times', '', 20);
|
||||
$pdf->SetFont('times', '', 16);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// print a line using Cell()
|
||||
$pdf->Cell(0, 10, 'Encryption Example', 1, 1, 'C');
|
||||
// set some text to print
|
||||
$txt = <<<EOD
|
||||
Encryption Example
|
||||
|
||||
Consult the source code documentation for the SetProtection() method.
|
||||
EOD;
|
||||
|
||||
// print a block of text using Write()
|
||||
$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -103,4 +132,3 @@ $pdf->Output('example_016.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_017.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 017', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -70,28 +67,42 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('times', '', 12);
|
||||
$pdf->SetFont('helvetica', '', 20);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
$pdf->Write(0, 'Example of independent Multicell() columns', '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->SetFont('times', '', 12);
|
||||
|
||||
// create columns content
|
||||
$left_column = 'START left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column END'."\n";
|
||||
// create columns content
|
||||
$left_column = '[LEFT COLUMN] left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column'."\n";
|
||||
|
||||
$right_column = 'START right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column END'."\n";
|
||||
$right_column = '[RIGHT COLUMN] right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column'."\n";
|
||||
|
||||
// set columns width
|
||||
$first_column_width = 80;
|
||||
$second_column_width = 80;
|
||||
// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)
|
||||
|
||||
// get current vertical position
|
||||
$current_y_position = $pdf->getY();
|
||||
// set color for background
|
||||
$pdf->SetFillColor(255, 255, 200);
|
||||
|
||||
// set color for text
|
||||
$pdf->SetTextColor(0, 63, 127);
|
||||
|
||||
// write the first column
|
||||
$pdf->MultiCell($first_column_width, 0, $left_column, 1, 'J', 0, 0, '', '', true, 0);
|
||||
$pdf->MultiCell(80, 0, $left_column, 1, 'J', 1, 0, '', '', true, 0, false, true, 0);
|
||||
|
||||
// set color for background
|
||||
$pdf->SetFillColor(215, 235, 255);
|
||||
|
||||
// set color for text
|
||||
$pdf->SetTextColor(127, 31, 0);
|
||||
|
||||
// write the second column
|
||||
$pdf->MultiCell($second_column_width, 0, $right_column, 1, 'J', 0, 1, '', '', true, 0);
|
||||
$pdf->MultiCell(80, 0, $right_column, 1, 'J', 1, 1, '', '', true, 0, false, true, 0);
|
||||
|
||||
// reset pointer to the last page
|
||||
$pdf->lastPage();
|
||||
@ -104,4 +115,3 @@ $pdf->Output('example_017.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_018.php
|
||||
// Begin : 2008-03-06
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 018', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -91,6 +88,9 @@ $pdf->setRTL(false);
|
||||
|
||||
$pdf->SetFontSize(10);
|
||||
|
||||
// print newline
|
||||
$pdf->Ln();
|
||||
|
||||
// Persian and English content
|
||||
$htmlpersiantranslation = '<span color="#0000ff">Hi, At last Problem of Persian PDF Solved completely. This is a example for it.<br />Problem of "jeh" letter in some word like "ویژه" (=special) fix too.<br />The joining of laa and alf letter fix now.<br />Special thanks to "Nicola Asuni" and "Mohamad Ali Golkar" for Persian support.</span>';
|
||||
$pdf->WriteHTML($htmlpersiantranslation, true, 0, true, 0);
|
||||
@ -98,22 +98,26 @@ $pdf->WriteHTML($htmlpersiantranslation, true, 0, true, 0);
|
||||
// Restore RTL direction
|
||||
$pdf->setRTL(true);
|
||||
|
||||
$pdf->Ln(10);
|
||||
|
||||
// set font size
|
||||
$pdf->SetFont('almohanad', '', 18);
|
||||
|
||||
// print newline
|
||||
$pdf->Ln();
|
||||
|
||||
// Arabic and English content
|
||||
$pdf->Cell(0, 12, 'بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِ',0,1,'C');
|
||||
$htmlcontent = 'تمَّ بِحمد الله حلّ مشكلة الكتابة باللغة العربية في ملفات الـ<span color="#FF0000">PDF</span> مع دعم الكتابة <span color="#0000FF">من اليمين إلى اليسار</span> و<span color="#009900">الحركَات</span> .<br />تم الحل بواسطة <span color="#993399">صالح المطرفي و Asuni Nicola</span> . ';
|
||||
$pdf->WriteHTML($htmlcontent, true, 0, true, 0);
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
// set LTR direction for english translation
|
||||
$pdf->setRTL(false);
|
||||
|
||||
// set font size
|
||||
$pdf->SetFontSize(18);
|
||||
|
||||
// print newline
|
||||
$pdf->Ln();
|
||||
|
||||
// Arabic and English content
|
||||
$htmlcontent2 = '<span color="#0000ff">This is Arabic "العربية" Example With TCPDF.</span>';
|
||||
$pdf->WriteHTML($htmlcontent2, true, 0, true, 0);
|
||||
@ -126,4 +130,3 @@ $pdf->Output('example_018.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_019.php
|
||||
// Begin : 2008-03-07
|
||||
// Last Update : 2009-09-30
|
||||
// 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,15 +38,18 @@ 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');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 019', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -82,18 +82,19 @@ $pdf->setLanguageArray($lg);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', 'BIU', 20);
|
||||
$pdf->SetFont('helvetica', '', 12);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// print a line using Cell()
|
||||
$pdf->Cell(0, 10, 'Example 019', 1, 1, 'C');
|
||||
// set color for background
|
||||
$pdf->SetFillColor(200, 255, 200);
|
||||
|
||||
$pdf->Ln();
|
||||
$txt = 'An alternative configuration file is used on this example.
|
||||
Check the definition of the K_TCPDF_EXTERNAL_CONFIG constant on the source code.';
|
||||
|
||||
$pdf->SetFont('times', '', 10);
|
||||
$pdf->MultiCell(80, 0, 'Cras eros leo, porttitor porta, accumsan fermentum, ornare ac, est. Praesent dui lorem, imperdiet at, cursus sed, facilisis aliquam, nibh. Nulla accumsan nonummy diam. Donec tempus. Etiam posuere. Proin lectus. Donec purus. Duis in sem pretium urna feugiat vehicula. Ut suscipit velit eget massa. Nam nonummy, enim commodo euismod placerat, tortor elit tempus lectus, quis suscipit metus lorem blandit turpis.'."\n", 1, 'J', 0, 1, '', '', true, 0);
|
||||
// print some text
|
||||
$pdf->MultiCell(0, 0, $txt."\n", 1, 'J', 1, 1, '', '', true, 0, false, true, 0);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -103,4 +104,3 @@ $pdf->Output('example_019.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_020.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -36,6 +33,7 @@ require_once('../tcpdf.php');
|
||||
|
||||
// extend TCPF with custom functions
|
||||
class MYPDF extends TCPDF {
|
||||
|
||||
public function MultiRow($left, $right) {
|
||||
// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0)
|
||||
|
||||
@ -43,7 +41,7 @@ class MYPDF extends TCPDF {
|
||||
$y_start = $this->GetY();
|
||||
|
||||
// write the left cell
|
||||
$this->MultiCell(40, 0, $left, 1, 'R', 0, 2, '', '', true, 0);
|
||||
$this->MultiCell(40, 0, $left, 1, 'R', 1, 2, '', '', true, 0);
|
||||
|
||||
$page_end_1 = $this->getPage();
|
||||
$y_end_1 = $this->GetY();
|
||||
@ -84,7 +82,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 020', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -110,17 +108,28 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('times', '', 9);
|
||||
$pdf->SetFont('helvetica', '', 20);
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
$pdf->Write(0, 'Example of text layout using Multicell()', '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->SetFont('times', '', 9);
|
||||
|
||||
//$pdf->SetCellPadding(0);
|
||||
//$pdf->SetLineWidth(2);
|
||||
|
||||
$text = 'Cras eros leo, porttitor porta, accumsan fermentum, ornare ac, est. Praesent dui lorem, imperdiet at, cursus sed, facilisis aliquam, nibh. Nulla accumsan nonummy diam. Donec tempus. Etiam posuere. Proin lectus. Donec purus. Duis in sem pretium urna feugiat vehicula. Ut suscipit velit eget massa. Nam nonummy, enim commodo euismod placerat, tortor elit tempus lectus, quis suscipit metus lorem blandit turpis. Cras nulla nulla, hendrerit et, porttitor eu, adipiscing et, lorem. Pellentesque sit amet augue. Nam lobortis sollicitudin turpis. Sed velit est, mollis non, elementum ac, tempor quis, arcu. Aliquam a pede. Quisque arcu magna, nonummy eget, hendrerit a, lacinia egestas, enim. Donec bibendum. In a ipsum. Sed gravida facilisis sem. Nam tempus, tellus ut tincidunt elementum, augue tellus fermentum quam, sit amet lobortis sem ipsum sed elit.In accumsan ligula nonummy libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed vel risus. Vestibulum ut lacus. Proin fermentum, erat a commodo lacinia, lacus dui hendrerit nulla, et pellentesque neque diam at elit. Fusce blandit, dolor pharetra bibendum lacinia, augue sem scelerisque sem, bibendum sodales orci justo et sapien. Etiam nec eros ac turpis lobortis interdum. Integer volutpat nibh a lacus. Duis erat est, rhoncus nec, rhoncus viverra, pulvinar sit amet, leo. Duis blandit. Nunc convallis nisi ac ante. Cras nunc massa, molestie quis, porttitor a, volutpat accumsan, quam. Nullam a erat vitae orci bibendum viverra. Donec tristique leo eget nisl adipiscing pellentesque. Nam vehicula, enim quis aliquet euismod, dolor sem pellentesque libero, nec blandit nisi erat sit amet dui. Integer sapien. Donec molestie metus in neque. Suspendisse porttitor enim a nisl.Maecenas lacinia dolor ornare ligula. Maecenas eu eros. Curabitur non leo non nulla fringilla auctor. Etiam porttitor diam vel quam. Maecenas sed ligula nec massa venenatis faucibus. Curabitur aliquet accumsan tellus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse vitae eros ac purus fermentum suscipit. Curabitur interdum orci a mi. Nunc placerat diam in elit.Nunc elit. Maecenas vulputate, sem sit amet condimentum lacinia, ipsum eros porta dolor, sed luctus magna ante eu nisl. Proin non nisi. Vivamus sed quam et est lobortis porttitor. Cras sit amet urna sit amet elit ultricies consequat. Praesent blandit elit ut urna. Cras hendrerit rhoncus sapien. Fusce ullamcorper lobortis ipsum. Pellentesque vel velit at sem blandit facilisis. Nulla aliquet orci id metus.';
|
||||
// set color for background
|
||||
$pdf->SetFillColor(255, 255, 200);
|
||||
|
||||
$text = 'Lorem 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. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc.
|
||||
|
||||
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 < 5; $i++) {
|
||||
for ($i = 0; $i < 10; ++$i) {
|
||||
$pdf->MultiRow('Row '.($i+1), $text."\n");
|
||||
}
|
||||
|
||||
@ -135,4 +144,3 @@ $pdf->Output('example_020.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_021.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 021', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -76,7 +73,7 @@ $pdf->SetFont('helvetica', '', 9);
|
||||
$pdf->AddPage();
|
||||
|
||||
// create some HTML content
|
||||
$html = 'Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. <em>Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?</em> <em>Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</em><br /><br /><b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i><br /><br /><b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u>';
|
||||
$html = '<h1>Example of HTML text flow</h1>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. <em>Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?</em> <em>Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</em><br /><br /><b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i> -> <b>A</b> + <b>B</b> = <b>C</b> -> <i>C</i> - <i>B</i> = <i>A</i> -> <i>C</i> - <i>A</i> = <i>B</i><br /><br /><b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u> <b>Bold</b><i>Italic</i><u>Underlined</u>';
|
||||
|
||||
// output the HTML content
|
||||
$pdf->writeHTML($html, true, 0, true, 0);
|
||||
@ -92,4 +89,3 @@ $pdf->Output('example_021.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_022.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 022', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -69,61 +66,75 @@ $pdf->setLanguageArray($l);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// check also the following methods:
|
||||
// SetDrawColorArray()
|
||||
// SetFillColorArray()
|
||||
// SetTextColorArray()
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', "B", 12);
|
||||
$pdf->SetFont('helvetica', 'B', 18);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
$pdf->SetLineWidth(1);
|
||||
$pdf->Write(0, 'Example of CMYK, RGB and Grayscale colours', '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
// define style for border
|
||||
$border_style = array('all' => array('width' => 2, 'cap' => 'square', 'join' => 'miter', 'dash' => 0, 'phase' => 0));
|
||||
|
||||
// --- CMYK ------------------------------------------------
|
||||
|
||||
$pdf->SetDrawColor(50, 0, 0, 0);
|
||||
$pdf->SetFillColor(100, 0, 0, 0);
|
||||
$pdf->SetTextColor(100, 0, 0, 0);
|
||||
$pdf->Rect(30, 60, 20, 20, 'DF');
|
||||
$pdf->Text(30, 85, 'Cyan');
|
||||
$pdf->Rect(30, 60, 30, 30, 'DF', $border_style);
|
||||
$pdf->Text(30, 92, 'Cyan');
|
||||
|
||||
$pdf->SetDrawColor(0, 50, 0, 0);
|
||||
$pdf->SetFillColor(0, 100, 0, 0);
|
||||
$pdf->SetTextColor(0, 100, 0, 0);
|
||||
$pdf->Rect(60, 60, 20, 20, 'DF');
|
||||
$pdf->Text(60, 85, 'Magenta');
|
||||
$pdf->Rect(70, 60, 30, 30, 'DF', $border_style);
|
||||
$pdf->Text(70, 92, 'Magenta');
|
||||
|
||||
$pdf->SetDrawColor(0, 0, 50, 0);
|
||||
$pdf->SetFillColor(0, 0, 100, 0);
|
||||
$pdf->SetTextColor(0, 0, 100, 0);
|
||||
$pdf->Rect(90, 60, 20, 20, 'DF');
|
||||
$pdf->Text(90, 85, 'Yellow');
|
||||
$pdf->Rect(110, 60, 30, 30, 'DF', $border_style);
|
||||
$pdf->Text(110, 92, 'Yellow');
|
||||
|
||||
$pdf->SetDrawColor(0, 0, 0, 50);
|
||||
$pdf->SetFillColor(0, 0, 0, 100);
|
||||
$pdf->SetTextColor(0, 0, 0, 100);
|
||||
$pdf->Rect(120, 60, 20, 20, 'DF');
|
||||
$pdf->Text(120, 85, 'Black');
|
||||
$pdf->Rect(150, 60, 30, 30, 'DF', $border_style);
|
||||
$pdf->Text(150, 92, 'Black');
|
||||
|
||||
$pdf->SetDrawColor(128, 0, 0);
|
||||
// --- RGB -------------------------------------------------
|
||||
|
||||
$pdf->SetDrawColor(255, 127, 127);
|
||||
$pdf->SetFillColor(255, 0, 0);
|
||||
$pdf->SetTextColor(255, 0, 0);
|
||||
$pdf->Rect(30, 100, 20, 20, 'DF');
|
||||
$pdf->Text(30, 125, 'Red');
|
||||
$pdf->Rect(30, 110, 30, 30, 'DF', $border_style);
|
||||
$pdf->Text(30, 142, 'Red');
|
||||
|
||||
$pdf->SetDrawColor(0, 127, 0);
|
||||
$pdf->SetDrawColor(127, 255, 127);
|
||||
$pdf->SetFillColor(0, 255, 0);
|
||||
$pdf->SetTextColor(0, 255, 0);
|
||||
$pdf->Rect(60, 100, 20, 20, 'DF');
|
||||
$pdf->Text(60, 125, 'Green');
|
||||
$pdf->Rect(70, 110, 30, 30, 'DF', $border_style);
|
||||
$pdf->Text(70, 142, 'Green');
|
||||
|
||||
$pdf->SetDrawColor(0, 0, 127);
|
||||
$pdf->SetDrawColor(127, 127, 255);
|
||||
$pdf->SetFillColor(0, 0, 255);
|
||||
$pdf->SetTextColor(0, 0, 255);
|
||||
$pdf->Rect(90, 100, 20, 20, 'DF');
|
||||
$pdf->Text(90, 125, 'Blue');
|
||||
$pdf->Rect(110, 110, 30, 30, 'DF', $border_style);
|
||||
$pdf->Text(110, 142, 'Blue');
|
||||
|
||||
$pdf->SetDrawColor(50);
|
||||
$pdf->SetFillColor(128);
|
||||
$pdf->SetTextColor(128);
|
||||
$pdf->Rect(30, 140, 20, 20, 'DF');
|
||||
$pdf->Text(30, 165, 'Gray');
|
||||
// --- GRAY ------------------------------------------------
|
||||
|
||||
$pdf->SetDrawColor(191);
|
||||
$pdf->SetFillColor(127);
|
||||
$pdf->SetTextColor(127);
|
||||
$pdf->Rect(30, 160, 30, 30, 'DF', $border_style);
|
||||
$pdf->Text(30, 192, 'Gray');
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -133,4 +144,3 @@ $pdf->Output('example_022.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_023.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 023', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -70,24 +67,41 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('times', 'BI', 12);
|
||||
$pdf->SetFont('times', 'BI', 14);
|
||||
|
||||
// Start First Page Group
|
||||
$pdf->startPageGroup();
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'Start of group 1', 0, 1, 'L');
|
||||
|
||||
// set some text to print
|
||||
$txt = <<<EOD
|
||||
Example of page groups.
|
||||
Check the page numbers on the page footer.
|
||||
|
||||
This is the first page of group 1.
|
||||
EOD;
|
||||
|
||||
// print a block of text using Write()
|
||||
$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
// add second page
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'This is the second page of group 1', 0, 1, 'L');
|
||||
|
||||
// Start Second Page Group
|
||||
$pdf->startPageGroup();
|
||||
|
||||
// add some pages
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'Start of group 2', 0, 1, 'L');
|
||||
$pdf->Cell(0, 10, 'This is the first page of group 2', 0, 1, 'L');
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'This is the second page of group 2', 0, 1, 'L');
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'This is the third page of group 2', 0, 1, 'L');
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'This is the fourth page of group 2', 0, 1, 'L');
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -97,4 +111,3 @@ $pdf->Output('example_023.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_024.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 024', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -70,7 +67,7 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('times', '', 40);
|
||||
$pdf->SetFont('times', '', 18);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
@ -82,13 +79,31 @@ $pdf->AddPage();
|
||||
* show on screen but won't print.
|
||||
*/
|
||||
|
||||
$txt = 'You can limit the visibility of PDF objects to screen or printer by using the setVisibility() method.
|
||||
Check the print preview of this document to display the alternative text.';
|
||||
|
||||
$pdf->Write(0, $txt, '', 0, '', true, 0, false, false, 0);
|
||||
|
||||
// change font size
|
||||
$pdf->SetFontSize(40);
|
||||
|
||||
// change text color
|
||||
$pdf->SetTextColor(0,63,127);
|
||||
|
||||
// set visibility only for screen
|
||||
$pdf->setVisibility('screen');
|
||||
$pdf->Write(6, "This line is for display.\n");
|
||||
|
||||
// write something only for screen
|
||||
$pdf->Write(0, '[This line is for display]', '', 0, 'C', true, 0, false, false, 0);
|
||||
|
||||
// set visibility only for print
|
||||
$pdf->setVisibility('print');
|
||||
$pdf->Write(6, "This line is for printout.\n");
|
||||
|
||||
// change text color
|
||||
$pdf->SetTextColor(127,0,0);
|
||||
|
||||
// write something only for print
|
||||
$pdf->Write(0, '[This line is for printout]', '', 0, 'C', true, 0, false, false, 0);
|
||||
|
||||
// restore visibility
|
||||
$pdf->setVisibility('all');
|
||||
@ -101,4 +116,3 @@ $pdf->Output('example_024.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_025.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 025', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -70,11 +67,14 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', 'BI', 8);
|
||||
$pdf->SetFont('helvetica', '', 12);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
$txt = 'You can set the transparency of PDF objects using the setAlpha() method.';
|
||||
$pdf->Write(0, $txt, '', 0, '', true, 0, false, false, 0);
|
||||
|
||||
/*
|
||||
* setAlpha() gives transparency support. You can set the
|
||||
* alpha channel from 0 (fully transparent) to 1 (fully
|
||||
@ -82,28 +82,32 @@ $pdf->AddPage();
|
||||
* images).
|
||||
*/
|
||||
|
||||
$pdf->SetLineWidth(1.5);
|
||||
$pdf->SetLineWidth(2);
|
||||
|
||||
// draw opaque red square
|
||||
$pdf->SetFillColor(255, 0, 0);
|
||||
$pdf->Rect(30, 60, 40, 40, 'DF');
|
||||
$pdf->SetDrawColor(127, 0, 0);
|
||||
$pdf->Rect(30, 40, 60, 60, 'DF');
|
||||
|
||||
// set alpha to semi-transparency
|
||||
$pdf->SetAlpha(0.5);
|
||||
|
||||
// draw green square
|
||||
$pdf->SetFillColor(0, 255, 0);
|
||||
$pdf->Rect(40, 70, 40, 40, 'DF');
|
||||
$pdf->SetDrawColor(0, 127, 0);
|
||||
$pdf->Rect(50, 60, 60, 60, 'DF');
|
||||
|
||||
// draw blue square
|
||||
$pdf->SetFillColor(0, 0, 255);
|
||||
$pdf->SetDrawColor(0, 0, 127);
|
||||
$pdf->Rect(70, 80, 60, 60, 'DF');
|
||||
|
||||
// draw jpeg image
|
||||
$pdf->Image('../images/image_demo.jpg', 50, 80, 40, 40, '', 'http://www.tcpdf.org', '', true, 72);
|
||||
$pdf->Image('../images/image_demo.jpg', 90, 100, 60, 60, '', 'http://www.tcpdf.org', '', true, 72);
|
||||
|
||||
// restore full opacity
|
||||
$pdf->SetAlpha(1);
|
||||
|
||||
// print name
|
||||
$pdf->Text(55,85,'TRANSPARENCY');
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
//Close and output PDF document
|
||||
@ -112,4 +116,3 @@ $pdf->Output('example_025.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,10 +2,10 @@
|
||||
//============================================================+
|
||||
// File name : example_026.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// Last Update : 2010-08-08
|
||||
//
|
||||
// Description : Example 026 for TCPDF class
|
||||
// Text Clipping
|
||||
// Text Rendering Modes and Text Clipping
|
||||
//
|
||||
// Author: Nicola Asuni
|
||||
//
|
||||
@ -22,11 +22,8 @@
|
||||
/**
|
||||
* Creates an example PDF TEST document using TCPDF
|
||||
* @package com.tecnick.tcpdf
|
||||
* @abstract TCPDF - Example: Text Clipping
|
||||
* @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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 026', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -70,26 +67,74 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', 'BI', 50);
|
||||
$pdf->SetFont('helvetica', '', 22);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// print clipping text
|
||||
$pdf->Text(20, 40, 'STROKE TEXT', 1, false);
|
||||
// set color for text stroke
|
||||
$pdf->SetDrawColor(255,0,0);
|
||||
|
||||
|
||||
$pdf->setTextRenderingMode($stroke=0, $fill=true, $clip=false);
|
||||
$pdf->Write(0, 'Fill text', '', 0, '', true, 0, false, false, 0);
|
||||
|
||||
$pdf->setTextRenderingMode($stroke=0.2, $fill=false, $clip=false);
|
||||
$pdf->Write(0, 'Stroke text', '', 0, '', true, 0, false, false, 0);
|
||||
|
||||
$pdf->setTextRenderingMode($stroke=0.2, $fill=true, $clip=false);
|
||||
$pdf->Write(0, 'Fill, then stroke text', '', 0, '', true, 0, false, false, 0);
|
||||
|
||||
$pdf->setTextRenderingMode($stroke=0, $fill=false, $clip=false);
|
||||
$pdf->Write(0, 'Neither fill nor stroke text (invisible)', '', 0, '', true, 0, false, false, 0);
|
||||
|
||||
|
||||
// * * * CLIPPING MODES * * * * * * * * * * * * * * * * * *
|
||||
|
||||
//Start Transformation
|
||||
$pdf->StartTransform();
|
||||
|
||||
// print clipping text
|
||||
$pdf->Text(20, 70, 'CLIPPING TEXT', 2, true);
|
||||
|
||||
// draw jpeg image
|
||||
$pdf->Image('../images/image_demo.jpg', 20, 45, 170, 40, '', 'http://www.tcpdf.org', '', true, 72);
|
||||
|
||||
//Stop Transformation
|
||||
$pdf->setTextRenderingMode($stroke=0, $fill=true, $clip=true);
|
||||
$pdf->Write(0, 'Fill text and add to path for clipping', '', 0, '', true, 0, false, false, 0);
|
||||
$pdf->Image('../images/image_demo.jpg', 15, 65, 170, 10, '', '', '', true, 72);
|
||||
$pdf->StopTransform();
|
||||
|
||||
$pdf->StartTransform();
|
||||
$pdf->setTextRenderingMode($stroke=0.3, $fill=false, $clip=true);
|
||||
$pdf->Write(0, 'Stroke text and add to path for clipping', '', 0, '', true, 0, false, false, 0);
|
||||
$pdf->Image('../images/image_demo.jpg', 15, 75, 170, 10, '', '', '', true, 72);
|
||||
$pdf->StopTransform();
|
||||
|
||||
$pdf->StartTransform();
|
||||
$pdf->setTextRenderingMode($stroke=0.3, $fill=true, $clip=true);
|
||||
$pdf->Write(0, 'Fill, then stroke text and add to path for clipping', '', 0, '', true, 0, false, false, 0);
|
||||
$pdf->Image('../images/image_demo.jpg', 15, 85, 170, 10, '', '', '', true, 72);
|
||||
$pdf->StopTransform();
|
||||
|
||||
$pdf->StartTransform();
|
||||
$pdf->setTextRenderingMode($stroke=0, $fill=false, $clip=true);
|
||||
$pdf->Write(0, 'Add text to path for clipping', '', 0, '', true, 0, false, false, 0);
|
||||
$pdf->Image('../images/image_demo.jpg', 15, 95, 170, 10, '', '', '', true, 72);
|
||||
$pdf->StopTransform();
|
||||
|
||||
// reset text rendering mode
|
||||
$pdf->setTextRenderingMode($stroke=0, $fill=true, $clip=false);
|
||||
|
||||
// * * * HTML MODE * * * * * * * * * * * * * * * * * * * * *
|
||||
|
||||
// The following attributes were added to HTML:
|
||||
// stroke : stroke width
|
||||
// strokecolor : stroke color
|
||||
// fill : true (default) to fill the font, false otherwise
|
||||
|
||||
|
||||
// create some HTML content with text rendering modes
|
||||
$html = '<span stroke="0" fill="true">HTML Fill text</span><br />';
|
||||
$html .= '<span stroke="0.2" fill="false">HTML Stroke text</span><br />';
|
||||
$html .= '<span stroke="0.2" fill="true" strokecolor="#FF0000" color="#FFFF00">HTML Fill, then stroke text</span><br />';
|
||||
$html .= '<span stroke="0" fill="false">HTML Neither fill nor stroke text (invisible)</span><br />';
|
||||
|
||||
// output the HTML content
|
||||
$pdf->writeHTML($html, true, 0, true, 0);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
//Close and output PDF document
|
||||
@ -98,4 +143,3 @@ $pdf->Output('example_026.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_027.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 027', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -78,10 +75,16 @@ $pdf->SetFont('helvetica', '', 10);
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// define barcode style
|
||||
$style = array(
|
||||
'position' => 'S',
|
||||
'position' => '',
|
||||
'align' => 'C',
|
||||
'stretch' => false,
|
||||
'fitwidth' => true,
|
||||
'cellfitalign' => '',
|
||||
'border' => true,
|
||||
'padding' => 4,
|
||||
'hpadding' => 'auto',
|
||||
'vpadding' => 'auto',
|
||||
'fgcolor' => array(0,0,0),
|
||||
'bgcolor' => false, //array(255,255,255),
|
||||
'text' => true,
|
||||
@ -94,201 +97,301 @@ $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, 30, 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, 30, 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, 30, 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, 30, 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, 30, 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, 30, 0.4, $style, 'N');
|
||||
$pdf->write1DBarcode('1234567', 'S25', '', '', '', 18, 0.4, $style, 'N');
|
||||
|
||||
// add a page ----------
|
||||
$pdf->AddPage();
|
||||
$pdf->Ln();
|
||||
|
||||
// Standard 2 of 5 + CHECKSUM
|
||||
$pdf->Cell(0, 0, 'Standard 2 of 5 + CHECKSUM', 0, 1);
|
||||
$pdf->write1DBarcode('1234567', 'S25+', '', '', 80, 30, 0.4, $style, 'N');
|
||||
$pdf->write1DBarcode('1234567', 'S25+', '', '', '', 18, 0.4, $style, 'N');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
// Interleaved 2 of 5
|
||||
$pdf->Cell(0, 0, 'Interleaved 2 of 5', 0, 1);
|
||||
$pdf->write1DBarcode('1234567', 'I25', '', '', 80, 30, 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, 30, 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, 30, 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, 30, 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, 30, 0.4, $style, 'N');
|
||||
$pdf->write1DBarcode('0123456789', 'C128C', '', '', '', 18, 0.4, $style, 'N');
|
||||
|
||||
// add a page ----------
|
||||
$pdf->AddPage();
|
||||
$pdf->Ln();
|
||||
|
||||
// EAN 8
|
||||
$pdf->Cell(0, 0, 'EAN 8', 0, 1);
|
||||
$pdf->write1DBarcode('1234567', 'EAN8', '', '', 80, 30, 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, 30, 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', '', '', 20, 30, 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, 30, 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, 30, 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, 30, 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, 30, 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, 30, 0.4, $style, 'N');
|
||||
$pdf->write1DBarcode('80523', 'MSI+', '', '', '', 18, 0.4, $style, 'N');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
// 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, 20, 0.4, $style, 'N');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
// POSTNET
|
||||
$pdf->Cell(0, 0, 'POSTNET', 0, 1);
|
||||
$pdf->write1DBarcode('98000', 'POSTNET', '', '', 80, 20, 0.4, $style, 'N');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
// PLANET
|
||||
$pdf->Cell(0, 0, 'PLANET', 0, 1);
|
||||
$pdf->write1DBarcode('98000', 'PLANET', '', '', 80, 20, 0.4, $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, 20, 0.4, $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, 20, 0.4, $style, 'N');
|
||||
|
||||
// add a page ----------
|
||||
$pdf->AddPage();
|
||||
|
||||
// CODABAR
|
||||
$pdf->Cell(0, 0, 'CODABAR', 0, 1);
|
||||
$pdf->write1DBarcode('123456789', 'CODABAR', '', '', 80, 30, 0.4, $style, 'N');
|
||||
$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', '', '', 80, 30, 0.4, $style, 'N');
|
||||
$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', '', '', 30, 30, 0.4, $style, 'N');
|
||||
$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', '', '', 20, 30, 0.4, $style, 'N');
|
||||
$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', '', '', '', 15, 0.6, $style, 'N');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
// POSTNET
|
||||
$pdf->Cell(0, 0, 'POSTNET', 0, 1);
|
||||
$pdf->write1DBarcode('98000', 'POSTNET', '', '', '', 15, 0.6, $style, 'N');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
// PLANET
|
||||
$pdf->Cell(0, 0, 'PLANET', 0, 1);
|
||||
$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', '', '', '', 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', '', '', '', 15, 0.6, $style, 'N');
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
// TEST BARCDE ALIGNMENTS
|
||||
// TEST BARCODE ALIGNMENTS
|
||||
|
||||
// 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 STYLE
|
||||
|
||||
// define barcode style
|
||||
$style = array(
|
||||
'position' => '',
|
||||
'align' => '',
|
||||
'stretch' => true,
|
||||
'fitwidth' => false,
|
||||
'cellfitalign' => '',
|
||||
'border' => true,
|
||||
'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
|
||||
);
|
||||
|
||||
// CODE 39 EXTENDED + CHECKSUM
|
||||
$pdf->Cell(0, 0, 'CODE 39 EXTENDED + CHECKSUM', 0, 1);
|
||||
$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');
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -298,4 +401,3 @@ $pdf->Output('example_027.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_028.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_029.php
|
||||
// Begin : 2008-06-09
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 029', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -69,6 +66,7 @@ $pdf->setLanguageArray($l);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set array for viewer preferences
|
||||
$preferences = array(
|
||||
'HideToolbar' => true,
|
||||
'HideMenubar' => true,
|
||||
@ -88,6 +86,8 @@ $preferences = array(
|
||||
'NumCopies' => 2
|
||||
);
|
||||
|
||||
// Check the example n. 60 for advanced page settings
|
||||
|
||||
// set pdf viewer preferences
|
||||
$pdf->setViewerPreferences($preferences);
|
||||
|
||||
@ -96,8 +96,13 @@ $pdf->SetFont('times', '', 14);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// print a line
|
||||
$pdf->Cell(0, 12, 'DISPLAY PREFERENCES - PAGE 1', 0, 0, 'C');
|
||||
$pdf->Cell(0, 12, 'DISPLAY PREFERENCES - PAGE 1', 1, 1, 'C');
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->Write(0, 'You can use the setViewerPreferences() method to change viewer preferences.', '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
@ -117,4 +122,3 @@ $pdf->Output('example_029.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_030.php
|
||||
// Begin : 2008-06-09
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -43,15 +40,20 @@ $pdf->SetTitle('TCPDF Example 030');
|
||||
$pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// disable header and footer
|
||||
$pdf->setPrintHeader(false);
|
||||
$pdf->setPrintFooter(false);
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 030', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
|
||||
|
||||
// set default monospaced font
|
||||
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
|
||||
|
||||
//set margins
|
||||
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
|
||||
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
|
||||
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
|
||||
|
||||
//set auto page breaks
|
||||
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
@ -65,12 +67,14 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', '', 14);
|
||||
$pdf->SetFont('helvetica', 'B', 20);
|
||||
|
||||
// --- first page ------------------------------------------
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
//first page
|
||||
$pdf->Cell(0, 0, 'TCPDF Gradients', 0, 1, 'C', 0, '', 0, false, 'T', 'M');
|
||||
|
||||
// set colors for gradients (r,g,b) or (grey 0-255)
|
||||
$red = array(255, 0, 0);
|
||||
@ -84,16 +88,25 @@ $black = array(0);
|
||||
$coords = array(0, 0, 1, 0);
|
||||
|
||||
// paint a linear gradient
|
||||
$pdf->LinearGradient(20, 25, 80, 80, $red, $blue, $coords);
|
||||
$pdf->LinearGradient(20, 45, 80, 80, $red, $blue, $coords);
|
||||
|
||||
// write label
|
||||
$pdf->Text(20, 130, 'LinearGradient()');
|
||||
|
||||
// set the coordinates fx,fy,cx,cy,r of the gradient (see radial_gradient_coords.jpg)
|
||||
$coords = array(0.5, 0.5, 1, 1, 1.2);
|
||||
|
||||
// paint a radial gradient
|
||||
$pdf->RadialGradient(110, 25, 80, 80, $white, $black, $coords);
|
||||
$pdf->RadialGradient(110, 45, 80, 80, $white, $black, $coords);
|
||||
|
||||
// write label
|
||||
$pdf->Text(110, 130, 'RadialGradient()');
|
||||
|
||||
// paint a coons patch mesh with default coordinates
|
||||
$pdf->CoonsPatchMesh(20, 115, 80, 80, $yellow, $blue, $green, $red);
|
||||
$pdf->CoonsPatchMesh(20, 155, 80, 80, $yellow, $blue, $green, $red);
|
||||
|
||||
// write label
|
||||
$pdf->Text(20, 240, 'CoonsPatchMesh()');
|
||||
|
||||
// set the coordinates for the cubic Bézier points x1,y1 ... x12, y12 of the patch (see coons_patch_mesh_coords.jpg)
|
||||
$coords = array(
|
||||
@ -106,9 +119,12 @@ $coords_min = 0; //minimum value of the coordinates
|
||||
$coords_max = 1; //maximum value of the coordinates
|
||||
|
||||
// paint a coons patch gradient with the above coordinates
|
||||
$pdf->CoonsPatchMesh(110, 115, 80, 80, $yellow, $blue, $green, $red, $coords, $coords_min, $coords_max);
|
||||
$pdf->CoonsPatchMesh(110, 155, 80, 80, $yellow, $blue, $green, $red, $coords, $coords_min, $coords_max);
|
||||
|
||||
//second page
|
||||
// write label
|
||||
$pdf->Text(110, 240, 'CoonsPatchMesh()');
|
||||
|
||||
// --- second page -----------------------------------------
|
||||
$pdf->AddPage();
|
||||
|
||||
// first patch: f = 0
|
||||
@ -157,7 +173,10 @@ $patch_array[3]['colors'][1] = array('r' => 0, 'g' => 0, 'b' => 255);
|
||||
$coords_min = 0;
|
||||
$coords_max = 2;
|
||||
|
||||
$pdf->CoonsPatchMesh(10, 25, 190, 200, '', '', '', '', $patch_array, $coords_min, $coords_max);
|
||||
$pdf->CoonsPatchMesh(10, 45, 190, 200, '', '', '', '', $patch_array, $coords_min, $coords_max);
|
||||
|
||||
// write label
|
||||
$pdf->Text(10, 250, 'CoonsPatchMesh()');
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -167,4 +186,3 @@ $pdf->Output('example_030.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_031.php
|
||||
// Begin : 2008-06-09
|
||||
// Last Update : 2009-09-30
|
||||
// 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-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
|
||||
*/
|
||||
|
||||
@ -43,15 +40,20 @@ $pdf->SetTitle('TCPDF Example 031');
|
||||
$pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// disable header and footer
|
||||
$pdf->setPrintHeader(false);
|
||||
$pdf->setPrintFooter(false);
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 031', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
|
||||
|
||||
// set default monospaced font
|
||||
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
|
||||
|
||||
//set margins
|
||||
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
|
||||
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
|
||||
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
|
||||
|
||||
//set auto page breaks
|
||||
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
@ -65,21 +67,31 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', '', 14);
|
||||
$pdf->SetFont('helvetica', 'B', 20);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
$xc = 105;
|
||||
$yc = 55;
|
||||
$r = 40;
|
||||
$pdf->Write(0, 'Example of PieSector() method.');
|
||||
|
||||
$pdf->SetFillColor(120, 120, 255);
|
||||
$pdf->PieSector($xc, $yc, $r, 20, 120);
|
||||
$pdf->SetFillColor(120, 255, 120);
|
||||
$pdf->PieSector($xc, $yc, $r, 120, 250);
|
||||
$pdf->SetFillColor(255, 120, 120);
|
||||
$pdf->PieSector($xc, $yc, $r, 250, 20);
|
||||
$xc = 105;
|
||||
$yc = 100;
|
||||
$r = 50;
|
||||
|
||||
$pdf->SetFillColor(0, 0, 255);
|
||||
$pdf->PieSector($xc, $yc, $r, 20, 120, 'FD', false, 0, 2);
|
||||
|
||||
$pdf->SetFillColor(0, 255, 0);
|
||||
$pdf->PieSector($xc, $yc, $r, 120, 250, 'FD', false, 0, 2);
|
||||
|
||||
$pdf->SetFillColor(255, 0, 0);
|
||||
$pdf->PieSector($xc, $yc, $r, 250, 20, 'FD', false, 0, 2);
|
||||
|
||||
// write labels
|
||||
$pdf->SetTextColor(255,255,255);
|
||||
$pdf->Text(105, 65, 'BLUE');
|
||||
$pdf->Text(60, 95, 'GREEN');
|
||||
$pdf->Text(120, 115, 'RED');
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -89,4 +101,3 @@ $pdf->Output('example_031.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_032.php
|
||||
// Begin : 2008-06-09
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -43,15 +40,20 @@ $pdf->SetTitle('TCPDF Example 032');
|
||||
$pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// disable header and footer
|
||||
$pdf->setPrintHeader(false);
|
||||
$pdf->setPrintFooter(false);
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 032', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
|
||||
|
||||
// set default monospaced font
|
||||
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
|
||||
|
||||
//set margins
|
||||
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
|
||||
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
|
||||
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
|
||||
|
||||
//set auto page breaks
|
||||
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
@ -65,18 +67,20 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', '', 14);
|
||||
$pdf->SetFont('helvetica', '', 12);
|
||||
|
||||
// Page 1: AI
|
||||
$pdf->AddPage();
|
||||
$pdf->ImageEps('../images/tiger.ai', 10, 50, 190);
|
||||
|
||||
// Page 2: EPS, with link
|
||||
$pdf->Write(0, 'Example of ImageEPS() method for AI and EPS images');
|
||||
|
||||
$pdf->ImageEps($file='../images/tiger.ai', $x=10, $y=50, $w=190, $h=190, $link='', $useBoundingBox=true, $align='', $palign='', $border=0, $fitonpage=false);
|
||||
|
||||
$pdf->AddPage();
|
||||
|
||||
$pdf->ImageEps('../images/bug.eps', 0, 25, 0, 240, "http://www.tcpdf.org", true, 'T', 'C');
|
||||
|
||||
// Page 3: AI
|
||||
$pdf->AddPage();
|
||||
|
||||
$pdf->ImageEps('../images/pelican.ai', 15, 70, 180);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
@ -87,4 +91,3 @@ $pdf->Output('example_032.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_033.php
|
||||
// Begin : 2008-06-24
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 033', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -72,17 +69,29 @@ $pdf->setLanguageArray($l);
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
$pdf->SetFont('dejavusans', '', 10);
|
||||
$pdf->MultiCell(80, 0, "[True Type Unicode font] : Cras eros leo, porttitor porta, accumsan fermentum, ornare ac, est. Praesent dui lorem, imperdiet at, cursus sed, facilisis aliquam, nibh. Nulla accumsan nonummy diam. Donec tempus. Etiam posuere. Proin lectus. Donec purus. Duis in sem pretium urna feugiat vehicula. Ut suscipit velit eget massa. Nam nonummy, enim commodo euismod placerat, tortor elit tempus lectus, quis suscipit metus lorem blandit turpis.\n", 1, 'J', 0, 1, '', '', true, 0);
|
||||
// set default font subsetting mode
|
||||
$pdf->setFontSubsetting(false);
|
||||
|
||||
$pdf->Ln(2);
|
||||
$pdf->SetFont('helvetica', 'B', 20);
|
||||
|
||||
$pdf->Write(0, 'Font Types', '', 0, 'C', 1, 0, false, false, 0);
|
||||
|
||||
$pdf->Ln(10);
|
||||
|
||||
$pdf->SetFont('times', '', 10);
|
||||
|
||||
$pdf->MultiCell(80, 0, "[Core font] : Cras eros leo, porttitor porta, accumsan fermentum, ornare ac, est. Praesent dui lorem, imperdiet at, cursus sed, facilisis aliquam, nibh. Nulla accumsan nonummy diam. Donec tempus. Etiam posuere. Proin lectus. Donec purus. Duis in sem pretium urna feugiat vehicula. Ut suscipit velit eget massa. Nam nonummy, enim commodo euismod placerat, tortor elit tempus lectus, quis suscipit metus lorem blandit turpis.\n", 1, 'J', 0, 1, '', '', true, 0);
|
||||
|
||||
$pdf->Ln(2);
|
||||
|
||||
$pdf->SetFont('dejavusans', '', 10);
|
||||
|
||||
$pdf->MultiCell(80, 0, "[True Type Unicode font] : Cras eros leo, porttitor porta, accumsan fermentum, ornare ac, est. Praesent dui lorem, imperdiet at, cursus sed, facilisis aliquam, nibh. Nulla accumsan nonummy diam. Donec tempus. Etiam posuere. Proin lectus. Donec purus. Duis in sem pretium urna feugiat vehicula. Ut suscipit velit eget massa. Nam nonummy, enim commodo euismod placerat, tortor elit tempus lectus, quis suscipit metus lorem blandit turpis.\n", 1, 'J', 0, 1, '', '', true, 0);
|
||||
|
||||
$pdf->Ln(2);
|
||||
|
||||
$pdf->SetFont('arialunicid0', '', 9);
|
||||
|
||||
$pdf->MultiCell(80, 0, "[CID-0 font] : Cras eros leo, porttitor porta, accumsan fermentum, ornare ac, est. Praesent dui lorem, imperdiet at, cursus sed, facilisis aliquam, nibh. Nulla accumsan nonummy diam. Donec tempus. Etiam posuere. Proin lectus. Donec purus. Duis in sem pretium urna feugiat vehicula. Ut suscipit velit eget massa. Nam nonummy, enim commodo euismod placerat, tortor elit tempus lectus, quis suscipit metus lorem blandit turpis.\n", 1, 'J', 0, 1, '', '', true, 0);
|
||||
|
||||
|
||||
@ -94,4 +103,3 @@ $pdf->Output('example_033.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_034.php
|
||||
// Begin : 2008-07-18
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 034', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -70,19 +67,21 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', 'BI', 50);
|
||||
$pdf->SetFont('helvetica', 'B', 20);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
$pdf->Write(0, 'Image Clipping using geometric functions', '', 0, 'C', 1, 0, false, false, 0);
|
||||
|
||||
//Start Graphic Transformation
|
||||
$pdf->StartTransform();
|
||||
|
||||
// set clipping mask
|
||||
$pdf->StarPolygon(50, 70, 30, 10, 3, 0, 1, 'CNZ');
|
||||
$pdf->StarPolygon(105, 100, 30, 10, 3, 0, 1, 'CNZ');
|
||||
|
||||
// draw jpeg image to be clipped
|
||||
$pdf->Image('../images/image_demo.jpg', 20, 40, 60, 60, '', 'http://www.tcpdf.org', '', true, 72);
|
||||
$pdf->Image('../images/image_demo.jpg', 75, 70, 60, 60, '', 'http://www.tcpdf.org', '', true, 72);
|
||||
|
||||
//Stop Graphic Transformation
|
||||
$pdf->StopTransform();
|
||||
@ -95,4 +94,3 @@ $pdf->Output('example_034.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_035.php
|
||||
// Begin : 2008-07-22
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 035', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -75,8 +72,7 @@ $pdf->SetFont('times', 'BI', 16);
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// print a line using Cell()
|
||||
$pdf->Cell(0, 12, 'Example 035', 1, 1, 'C');
|
||||
$pdf->Write(0, 'Example of SetLineStyle() method', '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
@ -113,4 +109,3 @@ $pdf->Output('example_035.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_036.php
|
||||
// Begin : 2008-08-08
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 036', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -75,11 +72,12 @@ $pdf->SetFont('times', '', 16);
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// print a line using Cell()
|
||||
$pdf->Cell(0, 12, 'Example 036', 1, 1, 'C');
|
||||
$txt = 'Example of Text Annotation.
|
||||
Move your mouse over the yellow box or double click on it to display the annotation text.';
|
||||
$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
// text annotation
|
||||
$pdf->Annotation(124, 30, 10, 10, "Text annotation example\naccented letters test: àèéìòù", array('Subtype'=>'Text', 'Name' => 'Comment', 'T' => 'title example', 'Subj' => 'example', 'C' => array(255, 255, 0)));
|
||||
$pdf->Annotation(83, 27, 10, 10, "Text annotation example\naccented letters test: àèéìòù", array('Subtype'=>'Text', 'Name' => 'Comment', 'T' => 'title example', 'Subj' => 'example', 'C' => array(255, 255, 0)));
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -89,4 +87,3 @@ $pdf->Output('example_036.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_037.php
|
||||
// Begin : 2008-09-12
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 037', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -70,13 +67,21 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', '', 8);
|
||||
$pdf->SetFont('helvetica', '', 20);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
|
||||
$pdf->Write(0, 'Example of Spot Colors', '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->SetFont('helvetica', '', 8);
|
||||
|
||||
// Define some new spot colors
|
||||
// where c, m, y and k (2nd, 3rd, 4th and 5th parameter) are the equivalent CMYK components.
|
||||
// $c, $m, $y and $k (2nd, 3rd, 4th and 5th parameter) are the CMYK color components.
|
||||
// AddSpotColor($name, $c, $m, $y, $k)
|
||||
$pdf->AddSpotColor('Pantone 116 C', 0, 20, 100, 0);
|
||||
$pdf->AddSpotColor('HKS 16 K', 30, 100, 90, 10);
|
||||
$pdf->AddSpotColor('Pantone 505 C', 57, 100, 85, 55);
|
||||
@ -93,95 +98,99 @@ $pdf->AddSpotColor('NovaSpace-Black', 50, 0, 0, 100);
|
||||
$pdf->AddSpotColor('Pantone 601 C', 0, 0, 55, 0);
|
||||
$pdf->AddSpotColor('Pantone 659 C', 50, 20, 0, 10);
|
||||
|
||||
// select the spot color
|
||||
// where tint (the second parameter) is the intensity of the color (full intensity by default).
|
||||
// Select the spot color
|
||||
// $tint (the second parameter) is the intensity of the color (0-100).
|
||||
// SetTextSpotColor($name, $tint=100)
|
||||
// SetDrawSpotColor($name, $tint=100)
|
||||
// SetFillSpotColor($name, $tint=100)
|
||||
|
||||
$pdf->SetTextSpotColor('NovaSpace-Black', 100);
|
||||
$pdf->SetDrawSpotColor('NovaSpace-Black', 100);
|
||||
|
||||
$starty = 30;
|
||||
$starty = 50;
|
||||
|
||||
// print some spot colors
|
||||
$pdf->SetFillSpotColor('Pantone 116 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 116 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 116 C');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('HKS 16 K', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'HKS 16 K');
|
||||
$pdf->Text(53, $starty + 1, 'HKS 16 K');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('Pantone 505 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 505 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 505 C');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('Pantone 440 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 440 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 440 C');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('Pantone 288 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 288 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 288 C');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('Pantone 289 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 289 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 289 C');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('Pantone 356 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 356 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 356 C');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('Pantone 567 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 567 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 567 C');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('Pantone 9060 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 9060 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 9060 C');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('Pantone 420 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 420 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 420 C');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('Pantone 422 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 422 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 422 C');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('Pantone 433 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 433 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 433 C');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('Pantone 601 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 601 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 601 C');
|
||||
|
||||
$starty += 8;
|
||||
|
||||
$pdf->SetFillSpotColor('Pantone 659 C', 100);
|
||||
$pdf->Rect(30, $starty, 20, 6, 'DF');
|
||||
$pdf->Text(53, $starty + 4, 'Pantone 659 C');
|
||||
$pdf->Text(53, $starty + 1, 'Pantone 659 C');
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -191,4 +200,3 @@ $pdf->Output('example_037.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,10 +2,10 @@
|
||||
//============================================================+
|
||||
// File name : example_038.php
|
||||
// Begin : 2008-09-15
|
||||
// Last Update : 2009-09-30
|
||||
// Last Update : 2010-08-08
|
||||
//
|
||||
// Description : Example 038 for TCPDF class
|
||||
// CID-0 CJK Fonts without embedding
|
||||
// CID-0 CJK unembedded font
|
||||
//
|
||||
// Author: Nicola Asuni
|
||||
//
|
||||
@ -22,11 +22,8 @@
|
||||
/**
|
||||
* Creates an example PDF TEST document using TCPDF
|
||||
* @package com.tecnick.tcpdf
|
||||
* @abstract TCPDF - Example: CID-0 CJK Fonts without embedding
|
||||
* @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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 038', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -70,13 +67,15 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('arialunicid0', 'U', 20);
|
||||
$pdf->SetFont('arialunicid0', '', 20);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// print a line using Cell()
|
||||
$pdf->Cell(0, 10, 'こんにちは世界', 1, 1, 'C');
|
||||
$txt = 'Example of CID-0 CJK unembedded font.
|
||||
To display extended text you must have CJK fonts for your PDF reader: こんにちは世界';
|
||||
|
||||
$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -86,4 +85,3 @@ $pdf->Output('example_038.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_039.php
|
||||
// Begin : 2008-10-16
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 039', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -69,21 +66,26 @@ $pdf->setLanguageArray($l);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', 'B', 20);
|
||||
|
||||
$pdf->Write(0, 'Example of HTML Justification', '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
// create some HTML content
|
||||
$html = '<span style="text-align:justify;">a <u>abc</u> abcdefghijkl abcdef abcdefg <b>abcdefghi</b> a abc abcd <img src="../images/logo_example.png" border="0" height="41" width="41" /> <img src="../images/tiger.ai" alt="test alt attribute" width="100" height="100" border="0" /> abcdef abcdefg <b>abcdefghi</b> a abc abcd abcdef abcdefg <b>abcdefghi</b> a abc abcd abcdef abcdefg <b>abcdefghi</b> a <u>abc</u> abcd abcdef abcdefg <b>abcdefghi</b> a abc abcd abcdef abcdefg <b>abcdefghi</b> a abc abcd abcdef abcdefg <b>abcdefghi</b> a abc abcd abcdef abcdefg <b>abcdefghi</b> a abc abcd abcdef abcdefg <b>abcdefghi</b> a abc abcd abcdef abcdefg abcdefghi a abc abcd <a href="http://tcpdf.org">abcdef abcdefg</a> start a abc before <span style="background-color:yellow">yellow color</span> after a abc abcd abcdef abcdefg abcdefghi a abc abcd end abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi<br />abcd abcdef abcdefg abcdefghi<br />abcd abcde abcdef</span>';
|
||||
|
||||
// set core font
|
||||
$pdf->SetFont('helvetica', '', 10);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// output the HTML content
|
||||
$pdf->writeHTML($html, true, 0, true, true);
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
// set UTF-8 font
|
||||
// set UTF-8 Unicode font
|
||||
$pdf->SetFont('dejavusans', '', 10);
|
||||
|
||||
// output the HTML content
|
||||
@ -100,4 +102,3 @@ $pdf->Output('example_039.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_040.php
|
||||
// Begin : 2008-10-28
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 040', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -69,6 +66,12 @@ $pdf->setLanguageArray($l);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set display mode
|
||||
$pdf->SetDisplayMode($zoom='fullpage', $layout='TwoColumnRight', $mode='UseNone');
|
||||
|
||||
// set pdf viewer preferences
|
||||
$pdf->setViewerPreferences(array('Duplex' => 'DuplexFlipLongEdge'));
|
||||
|
||||
// set booklet mode
|
||||
$pdf->SetBooklet(true, 10, 30);
|
||||
|
||||
@ -78,27 +81,30 @@ $pdf->SetFont('helvetica', '', 18);
|
||||
// add a page (left page)
|
||||
$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');
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -108,4 +114,3 @@ $pdf->Output('example_040.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_041.php
|
||||
// Begin : 2008-12-07
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 041', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -75,11 +72,13 @@ $pdf->SetFont('times', '', 16);
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// print a line using Cell()
|
||||
$pdf->Cell(0, 12, 'File Attachment', 1, 1, 'C');
|
||||
|
||||
$txt = 'Example of File Attachment.
|
||||
Double click on the icon to open the attached file.';
|
||||
$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
// attach an external file
|
||||
$pdf->Annotation(78, 30, 4, 4, 'text file', array('Subtype'=>'FileAttachment', 'Name' => 'PushPin', 'FS' => '../cache/utf8test.txt'));
|
||||
$pdf->Annotation(85, 27, 5, 5, 'text file', array('Subtype'=>'FileAttachment', 'Name' => 'PushPin', 'FS' => '../cache/utf8test.txt'));
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -89,4 +88,3 @@ $pdf->Output('example_041.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_042.php
|
||||
// Begin : 2008-12-23
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 042', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -81,16 +78,17 @@ $pdf->AddPage();
|
||||
$background_text = str_repeat('TCPDF test PNG Alpha Channel ', 50);
|
||||
$pdf->MultiCell(0, 5, $background_text, 0, 'J', 0, 2, '', '', true, 0, false);
|
||||
|
||||
|
||||
// [A] The Image() method recognizes the alpha channel embedded on the image:
|
||||
// --- Method (A) ------------------------------------------
|
||||
// the Image() method recognizes the alpha channel embedded on the image:
|
||||
|
||||
$pdf->Image('../images/image_with_alpha.png', 50, 50, 100, '', '', 'http://www.tcpdf.org', '', false, 300);
|
||||
|
||||
|
||||
// [B] provide image + separate 8-bit mask
|
||||
// --- Method (B) ------------------------------------------
|
||||
// provide image + separate 8-bit mask
|
||||
|
||||
// first embed mask image (w, h, x and y will be ignored, the image will be scaled to the target image's size)
|
||||
$mask = $pdf->Image('../images/alpha.png', 50, 140, 100, '', '', '', '', false, 300, '', true);
|
||||
|
||||
// embed image, masked with previously embedded mask
|
||||
$pdf->Image('../images/img.png', 50, 140, 100, '', '', 'http://www.tcpdf.org', '', false, 300, '', false, $mask);
|
||||
|
||||
@ -102,4 +100,3 @@ $pdf->Output('example_042.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_043.php
|
||||
// Begin : 2009-01-02
|
||||
// Last Update : 2009-09-30
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 043', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -70,13 +67,13 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('times', '', 10);
|
||||
$pdf->SetFont('helvetica', '', 16);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// Multicell test
|
||||
$pdf->MultiCell(0, 0, "DISK CACHING TEST: check the parameters on class constructor.", 1, 'L', 0, 0, '', '', true);
|
||||
$pdf->MultiCell(0, 0, 'DISK CACHING TEST: check the parameters of the class constructor.', 1, 'L', 0, 0, '', '', true);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -86,4 +83,3 @@ $pdf->Output('example_043.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,10 +2,10 @@
|
||||
//============================================================+
|
||||
// File name : example_044.php
|
||||
// Begin : 2009-01-02
|
||||
// Last Update : 2009-09-30
|
||||
// Last Update : 2010-08-08
|
||||
//
|
||||
// Description : Example 044 for TCPDF class
|
||||
// Move and delete pages
|
||||
// Move, copy and delete pages
|
||||
//
|
||||
// Author: Nicola Asuni
|
||||
//
|
||||
@ -22,11 +22,8 @@
|
||||
/**
|
||||
* Creates an example PDF TEST document using TCPDF
|
||||
* @package com.tecnick.tcpdf
|
||||
* @abstract TCPDF - Example: Move and delete pages
|
||||
* @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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 044', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -70,32 +67,42 @@ $pdf->setLanguageArray($l);
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('helvetica', '', 18);
|
||||
$pdf->SetFont('helvetica', 'B', 40);
|
||||
|
||||
// print a line using Cell()
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'PAGE A', 0, 1, 'L');
|
||||
$pdf->Cell(0, 10, 'PAGE: A', 0, 1, 'L');
|
||||
|
||||
// add some vertical space
|
||||
$pdf->Ln(10);
|
||||
|
||||
// print some text
|
||||
$pdf->SetFont('times', 'I', 16);
|
||||
$txt = 'TCPDF allows you to Copy, Move and Delete pages.';
|
||||
$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0);
|
||||
|
||||
$pdf->SetFont('helvetica', 'B', 40);
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'PAGE B', 0, 1, 'L');
|
||||
$pdf->Cell(0, 10, 'PAGE: B', 0, 1, 'L');
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'PAGE D', 0, 1, 'L');
|
||||
$pdf->Cell(0, 10, 'PAGE: D', 0, 1, 'L');
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'PAGE E', 0, 1, 'L');
|
||||
$pdf->Cell(0, 10, 'PAGE: E', 0, 1, 'L');
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'PAGE E-2', 0, 1, 'L');
|
||||
$pdf->Cell(0, 10, 'PAGE: E-2', 0, 1, 'L');
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'PAGE F', 0, 1, 'L');
|
||||
$pdf->Cell(0, 10, 'PAGE: F', 0, 1, 'L');
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'PAGE C', 0, 1, 'L');
|
||||
$pdf->Cell(0, 10, 'PAGE: C', 0, 1, 'L');
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'PAGE G', 0, 1, 'L');
|
||||
$pdf->Cell(0, 10, 'PAGE: G', 0, 1, 'L');
|
||||
|
||||
// Move page 7 to page 3
|
||||
$pdf->movePage(7, 3);
|
||||
@ -104,7 +111,10 @@ $pdf->movePage(7, 3);
|
||||
$pdf->deletePage(6);
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Cell(0, 10, 'PAGE H', 0, 1, 'L');
|
||||
$pdf->Cell(0, 10, 'PAGE: H', 0, 1, 'L');
|
||||
|
||||
// copy the second page
|
||||
$pdf->copyPage(2);
|
||||
|
||||
// NOTE: to insert a page to a previous position, you can add a new page to the end of document and then move it using movePage().
|
||||
|
||||
@ -116,4 +126,3 @@ $pdf->Output('example_044.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_045.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2010-01-27
|
||||
// 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
|
||||
*/
|
||||
|
||||
@ -44,7 +41,7 @@ $pdf->SetSubject('TCPDF Tutorial');
|
||||
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
|
||||
|
||||
// set default header data
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 045', PDF_HEADER_STRING);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
@ -97,6 +94,7 @@ $pdf->AddPage();
|
||||
$pdf->Bookmark('Paragraph 1.3', 1, 0);
|
||||
$pdf->Cell(0, 10, 'Paragraph 1.3', 0, 1, 'L');
|
||||
|
||||
// add some pages and bookmarks
|
||||
for ($i = 2; $i < 12; $i++) {
|
||||
$pdf->AddPage();
|
||||
$pdf->Bookmark('Chapter '.$i, 0, 0);
|
||||
@ -106,7 +104,7 @@ for ($i = 2; $i < 12; $i++) {
|
||||
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
||||
// add a new page for TOC
|
||||
$pdf->AddPage();
|
||||
$pdf->addTOCPage();
|
||||
|
||||
// write the TOC title
|
||||
$pdf->SetFont('times', 'B', 16);
|
||||
@ -115,10 +113,12 @@ $pdf->Ln();
|
||||
|
||||
$pdf->SetFont('dejavusans', '', 12);
|
||||
|
||||
// add table of content at page 1
|
||||
// add a simple Table Of Content at first page
|
||||
// (check the example n. 59 for the HTML version)
|
||||
$pdf->addTOC(1, 'courier', '.', 'INDEX');
|
||||
|
||||
// IMPORTANT: After calling this method you have to call addPage() to add other content.
|
||||
// end of TOC page
|
||||
$pdf->endTOCPage();
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
@ -128,4 +128,3 @@ $pdf->Output('example_045.pdf', 'I');
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
?>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user