mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-11-14 00:54:06 +00:00
311 lines
11 KiB
HTML
311 lines
11 KiB
HTML
<html>
|
|
<head>
|
|
<title>Docs For Class TCPDF2DBarcode</title>
|
|
<link rel="stylesheet" type="text/css" href="../media/style.css">
|
|
</head>
|
|
<body>
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
|
|
<tr>
|
|
<td class="header_top">com-tecnick-tcpdf</td>
|
|
</tr>
|
|
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
|
|
<tr>
|
|
<td class="header_menu">
|
|
|
|
|
|
[ <a href="../classtrees_com-tecnick-tcpdf.html" class="menu">class tree: com-tecnick-tcpdf</a> ]
|
|
[ <a href="../elementindex_com-tecnick-tcpdf.html" class="menu">index: com-tecnick-tcpdf</a> ]
|
|
[ <a href="../elementindex.html" class="menu">all elements</a> ]
|
|
</td>
|
|
</tr>
|
|
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
|
|
</table>
|
|
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
<tr valign="top">
|
|
<td width="200" class="menu">
|
|
<b>Packages:</b><br />
|
|
<a href="../li_com-tecnick-tcpdf.html">com-tecnick-tcpdf</a><br />
|
|
<br /><br />
|
|
<b>Files:</b><br />
|
|
<div class="package">
|
|
<a href="../com-tecnick-tcpdf/_2dbarcodes.php.html"> 2dbarcodes.php
|
|
</a><br>
|
|
<a href="../com-tecnick-tcpdf/_barcodes.php.html"> barcodes.php
|
|
</a><br>
|
|
<a href="../com-tecnick-tcpdf/_htmlcolors.php.html"> htmlcolors.php
|
|
</a><br>
|
|
<a href="../com-tecnick-tcpdf/_pdf417.php.html"> pdf417.php
|
|
</a><br>
|
|
<a href="../com-tecnick-tcpdf/_qrcode.php.html"> qrcode.php
|
|
</a><br>
|
|
<a href="../com-tecnick-tcpdf/_tcpdf.php.html"> tcpdf.php
|
|
</a><br>
|
|
<a href="../com-tecnick-tcpdf/_config---tcpdf_config.php.html"> tcpdf_config.php
|
|
</a><br>
|
|
<a href="../com-tecnick-tcpdf/_unicode_data.php.html"> unicode_data.php
|
|
</a><br>
|
|
</div><br />
|
|
|
|
|
|
<b>Classes:</b><br />
|
|
<div class="package">
|
|
<a href="../com-tecnick-tcpdf/PDF417.html">PDF417</a><br />
|
|
<a href="../com-tecnick-tcpdf/QRcode.html">QRcode</a><br />
|
|
<a href="../com-tecnick-tcpdf/TCPDF.html">TCPDF</a><br />
|
|
<a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html">TCPDF2DBarcode</a><br />
|
|
<a href="../com-tecnick-tcpdf/TCPDFBarcode.html">TCPDFBarcode</a><br />
|
|
<a href="../com-tecnick-tcpdf/TCPDF_UNICODE_DATA.html">TCPDF_UNICODE_DATA</a><br />
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
|
|
|
|
<h1>Class: TCPDF2DBarcode</h1>
|
|
Source Location: /2dbarcodes.php<br /><br />
|
|
|
|
|
|
<table width="100%" border="0">
|
|
<tr><td valign="top">
|
|
|
|
<h3><a href="#class_details">Class Overview</a></h3>
|
|
<pre></pre><br />
|
|
<div class="description">PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /></div><br /><br />
|
|
<h4>Author(s):</h4>
|
|
<ul>
|
|
<li>Nicola Asuni</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Version:</h4>
|
|
<ul>
|
|
<li>1.0.007</li>
|
|
</ul>
|
|
|
|
|
|
</td>
|
|
|
|
<td valign="top">
|
|
<h3><a href="#class_vars">Variables</a></h3>
|
|
<ul>
|
|
<li><a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html#var$barcode_array">$barcode_array</a></li>
|
|
</ul>
|
|
</td>
|
|
|
|
|
|
<td valign="top">
|
|
<h3><a href="#class_methods">Methods</a></h3>
|
|
<ul>
|
|
<li><a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html#method__construct">__construct</a></li>
|
|
<li><a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html#methodgetBarcodeArray">getBarcodeArray</a></li>
|
|
<li><a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html#methodsetBarcode">setBarcode</a></li>
|
|
</ul>
|
|
</td>
|
|
|
|
</tr></table>
|
|
<hr />
|
|
|
|
<table width="100%" border="0"><tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr></table>
|
|
<hr />
|
|
|
|
<a name="class_details"></a>
|
|
<h3>Class Details</h3>
|
|
<div class="tags">
|
|
[line 55]<br />
|
|
PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /><br /><br /><br /><br />
|
|
<h4>Tags:</h4>
|
|
<div class="tags">
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td><b>author:</b> </td><td>Nicola Asuni</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b>version:</b> </td><td>1.0.007</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b>link:</b> </td><td><a href="http://www.tcpdf.org">http://www.tcpdf.org</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td><b>name:</b> </td><td>TCPDFBarcode</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b>license:</b> </td><td><a href="http://www.gnu.org/copyleft/lesser.html">LGPL</a></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div><br /><br />
|
|
<div class="top">[ <a href="#top">Top</a> ]</div><br />
|
|
|
|
<hr />
|
|
<a name="class_vars"></a>
|
|
<h3>Class Variables</h3>
|
|
<div class="tags">
|
|
<a name="var$barcode_array"></a>
|
|
<p></p>
|
|
<h4>$barcode_array = <span class="value"> false</span></h4>
|
|
<p>[line 61]</p>
|
|
<br /><br />
|
|
<h4>Tags:</h4>
|
|
<div class="tags">
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td><b>var:</b> </td><td>representation of barcode.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b>access:</b> </td><td>protected</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<br />
|
|
<div class="tags">
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td><b>Type:</b> </td>
|
|
<td>array</td>
|
|
</tr>
|
|
</table>
|
|
</div><br /><br />
|
|
<div class="top">[ <a href="#top">Top</a> ]</div><br />
|
|
</div><br />
|
|
|
|
<hr />
|
|
<a name="class_methods"></a>
|
|
<h3>Class Methods</h3>
|
|
<div class="tags">
|
|
|
|
<hr />
|
|
<a name="method__construct"></a>
|
|
<h3>constructor __construct <span class="smalllinenumber">[line 73]</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">
|
|
<code>TCPDF2DBarcode __construct(
|
|
string
|
|
$code, string
|
|
$type)</code>
|
|
</td></tr></table>
|
|
</td></tr></table><br />
|
|
|
|
This is the class constructor.<br /><br /><p>Return an array representations for 2D barcodes:<ul><li>$arrcode['code'] code to be printed on text label</li><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></p><br /><br /><br />
|
|
<h4>Tags:</h4>
|
|
<div class="tags">
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td><b>access:</b> </td><td>public</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<br /><br />
|
|
|
|
|
|
<h4>Parameters:</h4>
|
|
<div class="tags">
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td class="type">string </td>
|
|
<td><b>$code</b> </td>
|
|
<td>code to print</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="type">string </td>
|
|
<td><b>$type</b> </td>
|
|
<td>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></td>
|
|
</tr>
|
|
</table>
|
|
</div><br />
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
</div>
|
|
<hr />
|
|
<a name="methodgetBarcodeArray"></a>
|
|
<h3>method getBarcodeArray <span class="smalllinenumber">[line 81]</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">
|
|
<code>array getBarcodeArray(
|
|
)</code>
|
|
</td></tr></table>
|
|
</td></tr></table><br />
|
|
|
|
Return an array representations of barcode.<br /><br /><br /><br />
|
|
<h4>Tags:</h4>
|
|
<div class="tags">
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td><b>access:</b> </td><td>public</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<br /><br />
|
|
|
|
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
</div>
|
|
<hr />
|
|
<a name="methodsetBarcode"></a>
|
|
<h3>method setBarcode <span class="smalllinenumber">[line 91]</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">
|
|
<code>array setBarcode(
|
|
string
|
|
$code, string
|
|
$type)</code>
|
|
</td></tr></table>
|
|
</td></tr></table><br />
|
|
|
|
Set the barcode.<br /><br /><br /><br />
|
|
<h4>Tags:</h4>
|
|
<div class="tags">
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td><b>access:</b> </td><td>public</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<br /><br />
|
|
|
|
|
|
<h4>Parameters:</h4>
|
|
<div class="tags">
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td class="type">string </td>
|
|
<td><b>$code</b> </td>
|
|
<td>code to print</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="type">string </td>
|
|
<td><b>$type</b> </td>
|
|
<td>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></td>
|
|
</tr>
|
|
</table>
|
|
</div><br />
|
|
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
</div>
|
|
</div><br />
|
|
|
|
|
|
<div class="credit">
|
|
<hr />
|
|
Documentation generated on Sat, 04 Dec 2010 11:25:36 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
|
</div>
|
|
</td></tr></table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</body>
|
|
</html> |