30
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-06-05 15:20:49 +00:00
This commit is contained in:
nicolaasuni 2010-04-05 20:45:48 +02:00
parent 01cff1de45
commit 6d5c8c4d5f
25 changed files with 138 additions and 138 deletions

View File

@ -1,3 +1,6 @@
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.

View File

@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
Version: 4.9.008
Release date: 2010-04-03
Version: 4.9.009
Release date: 2010-04-05
Author: Nicola Asuni
Copyright (c) 2001-2010:

View File

@ -55,7 +55,7 @@
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:28 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -5548,7 +5548,7 @@ $frame)</code>
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:40 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:29 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -80,7 +80,7 @@ Source Location: /tcpdf.php<br /><br />
<h4>Version:</h4>
<ul>
<li>4.9.008</li>
<li>4.9.009</li>
</ul>
@ -662,7 +662,7 @@ This is a PHP class for generating PDF documents without requiring external exte
<td><b>author:</b>&nbsp;&nbsp;</td><td>Nicola Asuni - info@tecnick.com</td>
</tr>
<tr>
<td><b>version:</b>&nbsp;&nbsp;</td><td>4.9.008</td>
<td><b>version:</b>&nbsp;&nbsp;</td><td>4.9.009</td>
</tr>
<tr>
<td><b>link:</b>&nbsp;&nbsp;</td><td><a href="http://www.tcpdf.org">http://www.tcpdf.org</a></td>
@ -18261,7 +18261,7 @@ $reverse = true])</code>
</div>
<hr />
<a name="methodText"></a>
<h3>method Text <span class="smalllinenumber">[line 3736]</span></h3>
<h3>method Text <span class="smalllinenumber">[line 3735]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
@ -18276,16 +18276,13 @@ $fill = true])</code>
</td></tr></table>
</td></tr></table><br />
DEPRECATED! Prints a character string.<br /><br /><p>The origin is on the left of the first charcter, on the baseline. This method allows to place a string precisely on the page.</p><br /><br /><br />
Prints a text cell at the specified position.<br /><br /><p>The origin is on the left of the first charcter, on the baseline. This method allows to place a string precisely on the page.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../com-tecnick-tcpdf/TCPDF.html#methodCell">TCPDF::Cell()</a>, <a href="../com-tecnick-tcpdf/TCPDF.html#methodWrite">TCPDF::Write()</a>, <a href="../com-tecnick-tcpdf/TCPDF.html#methodMultiCell">TCPDF::MultiCell()</a>, WriteHTML(), WriteHTMLCell()</td>
</tr>
<tr>
<td><b>deprecated:</b>&nbsp;&nbsp;</td><td>deprecated since version 4.3.005 (2008-11-25)</td>
</tr>
<tr>
<td><b>since:</b>&nbsp;&nbsp;</td><td>1.0</td>
</tr>
@ -18303,12 +18300,12 @@ $fill = true])</code>
<tr>
<td class="type">float&nbsp;&nbsp;</td>
<td><b>$x</b>&nbsp;&nbsp;</td>
<td>Abscissa of the origin</td>
<td>Abscissa of the cell origin</td>
</tr>
<tr>
<td class="type">float&nbsp;&nbsp;</td>
<td><b>$y</b>&nbsp;&nbsp;</td>
<td>Ordinate of the origin</td>
<td>Ordinate of the cell origin</td>
</tr>
<tr>
<td class="type">string&nbsp;&nbsp;</td>
@ -22218,7 +22215,7 @@ $file)</code>
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:40 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:29 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -296,7 +296,7 @@ $type)</code>
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:28 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -1374,7 +1374,7 @@ $type)</code>
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:28 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -102,7 +102,7 @@ PHP class to creates array representations for 2D barcodes to be used with TCPDF
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:28 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -102,7 +102,7 @@ PHP class to creates array representations for common 1D barcodes to be used wit
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:28 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -539,7 +539,7 @@ Configuration file for TCPDF.<br /><br /><br /><br />
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:43 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:32 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -94,7 +94,7 @@ Array of WEB safe colors.<br /><br /><br /><br />
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:40 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:29 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -477,7 +477,7 @@ string $string, [int $split_length = 1])</code>
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:40 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:29 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -79,7 +79,7 @@ This is a PHP class for generating PDF documents without requiring external exte
<td><b>author:</b>&nbsp;&nbsp;</td><td>Nicola Asuni</td>
</tr>
<tr>
<td><b>version:</b>&nbsp;&nbsp;</td><td>4.9.008</td>
<td><b>version:</b>&nbsp;&nbsp;</td><td>4.9.009</td>
</tr>
<tr>
<td><b>copyright:</b>&nbsp;&nbsp;</td><td>2002-2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com</td>
@ -110,7 +110,7 @@ unicode data<br /><br /></div>
<div class="tags">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>PDF_PRODUCER = 'TCPDF 4.9.008 (http://www.tcpdf.org)'</code>
<code>PDF_PRODUCER = 'TCPDF 4.9.009 (http://www.tcpdf.org)'</code>
</td></tr></table>
</td></tr></table>
@ -121,7 +121,7 @@ unicode data<br /><br /></div>
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:40 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:29 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -243,7 +243,7 @@ Unicode Include file for TCPDF.<br /><br /><br /><br />
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:43 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:32 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -1564,7 +1564,7 @@
<dt><b>TCPDFBarcode</b></dt>
<dd>in file barcodes.php, class <a href="com-tecnick-tcpdf/TCPDFBarcode.html">TCPDFBarcode</a><br>&nbsp;&nbsp;&nbsp;&nbsp;PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /></dd>
<dt><b>Text</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodText">TCPDF::Text()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;DEPRECATED! Prints a character string.</dd>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodText">TCPDF::Text()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Prints a text cell at the specified position.</dd>
<dt><b>TextField</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodTextField">TCPDF::TextField()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Creates a text field</dd>
<dt><b>toUpper</b></dt>
@ -1854,7 +1854,7 @@
<a href="elementindex.html#top">top</a><br>
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:28 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -1727,7 +1727,7 @@
<dt><b>TCPDFBarcode</b></dt>
<dd>in file barcodes.php, class <a href="com-tecnick-tcpdf/TCPDFBarcode.html">TCPDFBarcode</a><br>&nbsp;&nbsp;&nbsp;&nbsp;PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /></dd>
<dt><b>Text</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodText">TCPDF::Text()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;DEPRECATED! Prints a character string.</dd>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodText">TCPDF::Text()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Prints a text cell at the specified position.</dd>
<dt><b>TextField</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodTextField">TCPDF::TextField()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Creates a text field</dd>
<dt><b>toUpper</b></dt>
@ -1883,7 +1883,7 @@
<a href="elementindex_com-tecnick-tcpdf.html#top">top</a><br>
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:28 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -35,7 +35,7 @@
<a href="#Post-parsing">Post-parsing</a><br>
<div class="credit">
<hr />
Documentation generated on Sat, 03 Apr 2010 18:46:43 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:32 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -64,7 +64,7 @@
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, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:28 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -64,7 +64,7 @@
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, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 05 Apr 2010 20:45:28 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -2,13 +2,13 @@
//============================================================+
// File name : example_012.php
// Begin : 2008-03-04
// Last Update : 2009-09-30
//
// Last Update : 2010-04-05
//
// Description : Example 012 for TCPDF class
// Graphic Functions
//
//
// Author: Nicola Asuni
//
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
@ -34,7 +34,7 @@ require_once('../config/lang/eng.php');
require_once('../tcpdf.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
@ -57,10 +57,10 @@ $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
@ -82,24 +82,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 +107,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 +129,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 +139,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 +150,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 +158,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);
@ -172,6 +172,6 @@ $pdf->Arrow($x0=200, $y0=280, $x1=200, $y1=260, $head_style=3, $arm_size=5, $arm
$pdf->Output('example_012.pdf', 'I');
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

View File

@ -2,13 +2,13 @@
//============================================================+
// File name : example_013.php
// Begin : 2008-03-04
// Last Update : 2009-09-30
//
// Last Update : 2010-04-05
//
// Description : Example 013 for TCPDF class
// Graphic Transformations
//
//
// Author: Nicola Asuni
//
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
@ -34,7 +34,7 @@ require_once('../config/lang/eng.php');
require_once('../tcpdf.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
@ -57,10 +57,10 @@ $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
@ -74,7 +74,7 @@ $pdf->AddPage();
$pdf->SetDrawColor(200);
$pdf->SetTextColor(200);
$pdf->Rect(50, 20, 40, 10, 'D');
$pdf->Text(50, 19, 'Scale');
$pdf->Text(50, 16, 'Scale');
$pdf->SetDrawColor(0);
$pdf->SetTextColor(0);
//Start Transformation
@ -82,7 +82,7 @@ $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');
$pdf->Text(50, 16, 'Scale');
//Stop Transformation
$pdf->StopTransform();
@ -90,7 +90,7 @@ $pdf->StopTransform();
$pdf->SetDrawColor(200);
$pdf->SetTextColor(200);
$pdf->Rect(125, 20, 40, 10, 'D');
$pdf->Text(125, 19, 'Translate');
$pdf->Text(125, 16, 'Translate');
$pdf->SetDrawColor(0);
$pdf->SetTextColor(0);
//Start Transformation
@ -98,7 +98,7 @@ $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->Text(125, 16, 'Translate');
//Stop Transformation
$pdf->StopTransform();
@ -106,7 +106,7 @@ $pdf->StopTransform();
$pdf->SetDrawColor(200);
$pdf->SetTextColor(200);
$pdf->Rect(50, 50, 40, 10, 'D');
$pdf->Text(50, 49, 'Rotate');
$pdf->Text(50, 46, 'Rotate');
$pdf->SetDrawColor(0);
$pdf->SetTextColor(0);
//Start Transformation
@ -114,7 +114,7 @@ $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');
$pdf->Text(50, 46, 'Rotate');
//Stop Transformation
$pdf->StopTransform();
@ -122,7 +122,7 @@ $pdf->StopTransform();
$pdf->SetDrawColor(200);
$pdf->SetTextColor(200);
$pdf->Rect(125, 50, 40, 10, 'D');
$pdf->Text(125, 49, 'Skew');
$pdf->Text(125, 46, 'Skew');
$pdf->SetDrawColor(0);
$pdf->SetTextColor(0);
//Start Transformation
@ -130,7 +130,7 @@ $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');
$pdf->Text(125, 46, 'Skew');
//Stop Transformation
$pdf->StopTransform();
@ -138,7 +138,7 @@ $pdf->StopTransform();
$pdf->SetDrawColor(200);
$pdf->SetTextColor(200);
$pdf->Rect(50, 80, 40, 10, 'D');
$pdf->Text(50, 79, 'MirrorH');
$pdf->Text(50, 76, 'MirrorH');
$pdf->SetDrawColor(0);
$pdf->SetTextColor(0);
//Start Transformation
@ -146,7 +146,7 @@ $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');
$pdf->Text(50, 76, 'MirrorH');
//Stop Transformation
$pdf->StopTransform();
@ -154,7 +154,7 @@ $pdf->StopTransform();
$pdf->SetDrawColor(200);
$pdf->SetTextColor(200);
$pdf->Rect(125, 80, 40, 10, 'D');
$pdf->Text(125, 79, 'MirrorV');
$pdf->Text(125, 76, 'MirrorV');
$pdf->SetDrawColor(0);
$pdf->SetTextColor(0);
//Start Transformation
@ -162,7 +162,7 @@ $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');
$pdf->Text(125, 76, 'MirrorV');
//Stop Transformation
$pdf->StopTransform();
@ -170,7 +170,7 @@ $pdf->StopTransform();
$pdf->SetDrawColor(200);
$pdf->SetTextColor(200);
$pdf->Rect(50, 110, 40, 10, 'D');
$pdf->Text(50, 109, 'MirrorP');
$pdf->Text(50, 106, 'MirrorP');
$pdf->SetDrawColor(0);
$pdf->SetTextColor(0);
//Start Transformation
@ -178,7 +178,7 @@ $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->Text(50, 106, 'MirrorP');
//Stop Transformation
$pdf->StopTransform();
@ -200,7 +200,7 @@ $pdf->StopTransform();
$pdf->SetDrawColor(200);
$pdf->SetTextColor(200);
$pdf->Rect(125, 110, 40, 10, 'D');
$pdf->Text(125, 109, 'MirrorL');
$pdf->Text(125, 106, 'MirrorL');
$pdf->SetDrawColor(0);
$pdf->SetTextColor(0);
//Start Transformation
@ -208,7 +208,7 @@ $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->Text(125, 106, 'MirrorL');
//Stop Transformation
$pdf->StopTransform();
@ -218,6 +218,6 @@ $pdf->StopTransform();
$pdf->Output('example_013.pdf', 'I');
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

View File

@ -2,13 +2,13 @@
//============================================================+
// File name : example_022.php
// Begin : 2008-03-04
// Last Update : 2009-09-30
//
// Last Update : 2010-04-05
//
// Description : Example 022 for TCPDF class
// CMYK colors
//
//
// Author: Nicola Asuni
//
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
@ -34,7 +34,7 @@ require_once('../config/lang/eng.php');
require_once('../tcpdf.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
@ -62,10 +62,10 @@ $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
@ -81,49 +81,49 @@ $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->Text(30, 82, '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->Text(60, 82, '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->Text(90, 82, '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->Text(120, 82, 'Black');
$pdf->SetDrawColor(128, 0, 0);
$pdf->SetFillColor(255, 0, 0);
$pdf->SetTextColor(255, 0, 0);
$pdf->Rect(30, 100, 20, 20, 'DF');
$pdf->Text(30, 125, 'Red');
$pdf->Text(30, 122, 'Red');
$pdf->SetDrawColor(0, 127, 0);
$pdf->SetFillColor(0, 255, 0);
$pdf->SetTextColor(0, 255, 0);
$pdf->Rect(60, 100, 20, 20, 'DF');
$pdf->Text(60, 125, 'Green');
$pdf->Text(60, 122, 'Green');
$pdf->SetDrawColor(0, 0, 127);
$pdf->SetFillColor(0, 0, 255);
$pdf->SetTextColor(0, 0, 255);
$pdf->Rect(90, 100, 20, 20, 'DF');
$pdf->Text(90, 125, 'Blue');
$pdf->Text(90, 122, 'Blue');
$pdf->SetDrawColor(50);
$pdf->SetFillColor(128);
$pdf->SetTextColor(128);
$pdf->Rect(30, 140, 20, 20, 'DF');
$pdf->Text(30, 165, 'Gray');
$pdf->Text(30, 162, 'Gray');
// ---------------------------------------------------------
@ -131,6 +131,6 @@ $pdf->Text(30, 165, 'Gray');
$pdf->Output('example_022.pdf', 'I');
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

View File

@ -2,13 +2,13 @@
//============================================================+
// File name : example_025.php
// Begin : 2008-03-04
// Last Update : 2009-09-30
//
// Last Update : 2010-04-05
//
// Description : Example 025 for TCPDF class
// Object Transparency
//
//
// Author: Nicola Asuni
//
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
@ -34,7 +34,7 @@ require_once('../config/lang/eng.php');
require_once('../tcpdf.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
@ -62,10 +62,10 @@ $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
@ -76,14 +76,14 @@ $pdf->SetFont('helvetica', 'BI', 8);
$pdf->AddPage();
/*
* setAlpha() gives transparency support. You can set the
* alpha channel from 0 (fully transparent) to 1 (fully
* opaque). It applies to all elements (text, drawings,
* setAlpha() gives transparency support. You can set the
* alpha channel from 0 (fully transparent) to 1 (fully
* opaque). It applies to all elements (text, drawings,
* images).
*/
$pdf->SetLineWidth(1.5);
// draw opaque red square
$pdf->SetFillColor(255, 0, 0);
$pdf->Rect(30, 60, 40, 40, 'DF');
@ -102,7 +102,7 @@ $pdf->Image('../images/image_demo.jpg', 50, 80, 40, 40, '', 'http://www.tcpdf.or
$pdf->SetAlpha(1);
// print name
$pdf->Text(55,85,'TRANSPARENCY');
$pdf->Text(55, 82, 'TRANSPARENCY');
// ---------------------------------------------------------
@ -110,6 +110,6 @@ $pdf->Text(55,85,'TRANSPARENCY');
$pdf->Output('example_025.pdf', 'I');
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

View File

@ -2,13 +2,13 @@
//============================================================+
// File name : example_037.php
// Begin : 2008-09-12
// Last Update : 2009-09-30
//
// Last Update : 2010-04-05
//
// Description : Example 037 for TCPDF class
// Spot colors
//
//
// Author: Nicola Asuni
//
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
@ -34,7 +34,7 @@ require_once('../config/lang/eng.php');
require_once('../tcpdf.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
@ -62,10 +62,10 @@ $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
@ -103,85 +103,85 @@ $starty = 30;
// 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');
// ---------------------------------------------------------
@ -189,6 +189,6 @@ $pdf->Text(53, $starty + 4, 'Pantone 659 C');
$pdf->Output('example_037.pdf', 'I');
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

View File

@ -2,9 +2,9 @@
//============================================================+
// File name : tcpdf.php
// Begin : 2002-08-03
// Last Update : 2010-04-03
// Last Update : 2010-04-05
// Author : Nicola Asuni - info@tecnick.com - http://www.tcpdf.org
// Version : 4.9.008
// Version : 4.9.009
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
// ----------------------------------------------------------------------------
// Copyright (C) 2002-2010 Nicola Asuni - Tecnick.com S.r.l.
@ -131,7 +131,7 @@
* @copyright 2002-2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @version 4.9.008
* @version 4.9.009
*/
/**
@ -155,14 +155,14 @@ if (!class_exists('TCPDF', false)) {
/**
* define default PDF document producer
*/
define('PDF_PRODUCER', 'TCPDF 4.9.008 (http://www.tcpdf.org)');
define('PDF_PRODUCER', 'TCPDF 4.9.009 (http://www.tcpdf.org)');
/**
* This is a PHP class for generating PDF documents without requiring external extensions.<br>
* TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br>
* @name TCPDF
* @package com.tecnick.tcpdf
* @version 4.9.008
* @version 4.9.009
* @author Nicola Asuni - info@tecnick.com
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
@ -3719,25 +3719,25 @@ if (!class_exists('TCPDF', false)) {
}
/**
* DEPRECATED! Prints a character string.
* Prints a text cell at the specified position.
* The origin is on the left of the first charcter, on the baseline.
* This method allows to place a string precisely on the page.
* @param float $x Abscissa of the origin
* @param float $y Ordinate of the origin
* @param float $x Abscissa of the cell origin
* @param float $y Ordinate of the cell origin
* @param string $txt String to print
* @param int $stroke outline size in user units (false = disable)
* @param boolean $clip if true activate clipping mode (you must call StartTransform() before this function and StopTransform() to stop the clipping tranformation).
* @param boolean $fill if true fills the text
* @access public
* @since 1.0
* @deprecated deprecated since version 4.3.005 (2008-11-25)
* @see Cell(), Write(), MultiCell(), WriteHTML(), WriteHTMLCell()
*/
public function Text($x, $y, $txt, $stroke=false, $clip=false, $fill=true) {
$textrendermode = $this->textrendermode;
$textstrokewidth = $this->textstrokewidth;
$this->setTextRenderingMode($fill, $stroke, $clip);
$this->Write(0, $txt, '', 0, '', false, 0, false, false, 0);
$this->setTextRenderingMode($stroke, $fill, $clip);
$this->SetXY($x, $y);
$this->Cell(0, 0, $txt, 0, 0, '', 0, '', 0, false);
// restore previous rendering mode
$this->textrendermode = $textrendermode;
$this->textstrokewidth = $textstrokewidth;