- C128 barcodes.
+ C128 barcodes.
Very capable code, excellent density, high reliability; in very wide use world-wide
@@ -273,7 +284,7 @@ $type = 'B'])
- method barcode_codabar [line 755]
+ method barcode_codabar [line 1480]
@@ -283,7 +294,46 @@ $code)
|
|
- CODABAR barcodes.
+ CODABAR barcodes.
Older code often used in library systems, sometimes in blood banks
+
Tags:
+
+
+
+
+
Parameters:
+
+
+
+
+
+ method barcode_code11 [line 1536]
+
+
+
+ array barcode_code11(
+string
+$code)
+ |
+ |
+
+ CODE11 barcodes.
Used primarily for labeling telecommunications equipment
Tags:
diff --git a/doc/elementindex_com-tecnick-tcpdf.html b/doc/elementindex_com-tecnick-tcpdf.html
index c2f1ed0..7d1c835 100644
--- a/doc/elementindex_com-tecnick-tcpdf.html
+++ b/doc/elementindex_com-tecnick-tcpdf.html
@@ -274,14 +274,32 @@
in file barcodes.php, method TCPDFBarcode::barcode_c128()
C128 barcodes.
barcode_codabar
in file barcodes.php, method TCPDFBarcode::barcode_codabar()
CODABAR barcodes.
+
barcode_code11
+
in file barcodes.php, method TCPDFBarcode::barcode_code11()
CODE11 barcodes.
barcode_code39
-
in file barcodes.php, method TCPDFBarcode::barcode_code39()
CODE 39
-
barcode_ean13
-
in file barcodes.php, method TCPDFBarcode::barcode_ean13()
EAN13 and UPC-A barcodes.
+
in file barcodes.php, method TCPDFBarcode::barcode_code39()
CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.
+
barcode_code93
+
in file barcodes.php, method TCPDFBarcode::barcode_code93()
CODE 93 - USS-93
+
barcode_eanext
+
in file barcodes.php, method TCPDFBarcode::barcode_eanext()
UPC-Based Extentions
+
barcode_eanupc
+
in file barcodes.php, method TCPDFBarcode::barcode_eanupc()
EAN13 and UPC-A barcodes.
barcode_i25
in file barcodes.php, method TCPDFBarcode::barcode_i25()
Interleaved 2 of 5 barcodes.
+
barcode_msi
+
in file barcodes.php, method TCPDFBarcode::barcode_msi()
MSI.
+
barcode_pharmacode
+
in file barcodes.php, method TCPDFBarcode::barcode_pharmacode()
Pharmacode
+
barcode_pharmacode2t
+
in file barcodes.php, method TCPDFBarcode::barcode_pharmacode2t()
Pharmacode two-track
barcode_postnet
-
in file barcodes.php, method TCPDFBarcode::barcode_postnet()
POSTNET barcodes.
+
in file barcodes.php, method TCPDFBarcode::barcode_postnet()
POSTNET and PLANET barcodes.
+
barcode_rms4cc
+
in file barcodes.php, method TCPDFBarcode::barcode_rms4cc()
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.
+
barcode_s25
+
in file barcodes.php, method TCPDFBarcode::barcode_s25()
Standard 2 of 5 barcodes.
+
binseq_to_array
+
in file barcodes.php, method TCPDFBarcode::binseq_to_array()
Convert binary barcode sequence to TCPDF barcode array
Bookmark
in file tcpdf.php, method TCPDF::Bookmark()
Button
@@ -330,6 +348,10 @@
in file tcpdf.php, method TCPDF::checkPageBreak()
Add page if needed.
checksum_code39
in file barcodes.php, method TCPDFBarcode::checksum_code39()
Calculate CODE 39 checksum (modulo 43).
+
checksum_code93
+
in file barcodes.php, method TCPDFBarcode::checksum_code93()
Calculate CODE 93 checksum (modulo 47).
+
checksum_s25
+
in file barcodes.php, method TCPDFBarcode::checksum_s25()
Checksum for standard 2 of 5 barcodes.
Circle
in file tcpdf.php, method TCPDF::Circle()
Draws a circle.
Clip
@@ -1291,7 +1313,7 @@
Write
in file tcpdf.php, method TCPDF::Write()
This method prints text from the current position.
write1DBarcode
-
in file tcpdf.php, method TCPDF::write1DBarcode()
Print 1D Barcode.
+
in file tcpdf.php, method TCPDF::write1DBarcode()
Print a Linear Barcode.
write2DBarcode
in file tcpdf.php, method TCPDF::write2DBarcode()
Print 2D Barcode.
writeBarcode
@@ -1337,7 +1359,7 @@
top
diff --git a/doc/errors.html b/doc/errors.html
index ca1b41d..8688995 100644
--- a/doc/errors.html
+++ b/doc/errors.html
@@ -35,7 +35,7 @@
Post-parsing
diff --git a/doc/index.html b/doc/index.html
index bd37659..94606f5 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -58,7 +58,7 @@
This documentation was generated by
phpDocumentor v1.4.1
diff --git a/doc/li_com-tecnick-tcpdf.html b/doc/li_com-tecnick-tcpdf.html
index bd37659..94606f5 100644
--- a/doc/li_com-tecnick-tcpdf.html
+++ b/doc/li_com-tecnick-tcpdf.html
@@ -58,7 +58,7 @@
This documentation was generated by
phpDocumentor v1.4.1
diff --git a/examples/example_027.php b/examples/example_027.php
index 79dc0cc..38f9924 100755
--- a/examples/example_027.php
+++ b/examples/example_027.php
@@ -2,10 +2,10 @@
//============================================================+
// File name : example_027.php
// Begin : 2008-03-04
-// Last Update : 2009-03-18
+// Last Update : 2009-04-11
//
// Description : Example 027 for TCPDF class
-// Barcodes
+// 1D Barcodes
//
// Author: Nicola Asuni
//
@@ -22,7 +22,7 @@
/**
* Creates an example PDF TEST document using TCPDF
* @package com.tecnick.tcpdf
- * @abstract TCPDF - Example: barcodes.
+ * @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
@@ -89,8 +89,10 @@ $style = array(
'fontsize' => 8,
'stretchtext' => 4
);
+
+// PRINT VARIOUS 1D BARCODES
-// CODE 39
+// CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.
$pdf->write1DBarcode('CODE 39', 'C39', '', '', 80, 30, 0.4, $style, 'N');
$pdf->Ln();
@@ -105,13 +107,33 @@ $pdf->write1DBarcode('CODE 39 E', 'C39E', '', '', 80, 30, 0.4, $style, 'N');
$pdf->Ln();
-// CODE 39 EXTENDED with checksum
+// CODE 39 EXTENDED + CHECKSUM
$pdf->write1DBarcode('CODE 39 E+', 'C39E+', '', '', 80, 30, 0.4, $style, 'N');
$pdf->Ln();
+// CODE 93 - USS-93
+$pdf->write1DBarcode('TEST93', 'C93', '', '', 80, 30, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// Standard 2 of 5
+$pdf->write1DBarcode('1234567', 'S25', '', '', 80, 30, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// Standard 2 of 5 + CHECKSUM
+$pdf->write1DBarcode('1234567', 'S25+', '', '', 80, 30, 0.4, $style, 'N');
+
+$pdf->Ln();
+
// Interleaved 2 of 5
-$pdf->write1DBarcode('12345678', 'I25', '', '', 80, 30, 0.4, $style, 'N');
+$pdf->write1DBarcode('1234567', 'I25', '', '', 80, 30, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// Interleaved 2 of 5 + CHECKSUM
+$pdf->write1DBarcode('1234567', 'I25+', '', '', 80, 30, 0.4, $style, 'N');
$pdf->Ln();
@@ -120,34 +142,94 @@ $pdf->write1DBarcode('CODE 128 A', 'C128A', '', '', 80, 30, 0.4, $style, 'N');
$pdf->Ln();
-// CODE 128 A
+// CODE 128 B
$pdf->write1DBarcode('CODE 128 B', 'C128B', '', '', 80, 30, 0.4, $style, 'N');
$pdf->Ln();
-// CODE 128 A
+// CODE 128 C
$pdf->write1DBarcode('0123456789', 'C128C', '', '', 80, 30, 0.4, $style, 'N');
$pdf->Ln();
+// EAN 8
+$pdf->write1DBarcode('1234567', 'EAN8', '', '', 80, 30, 0.4, $style, 'N');
+
+$pdf->Ln();
+
// EAN 13
-$pdf->write1DBarcode('123456789012', 'EAN13', '', '', 80, 30, 0.4, $style, 'N');
+$pdf->write1DBarcode('1234567890128', 'EAN13', '', '', 80, 30, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// 2-Digits UPC-Based Extention
+$pdf->write1DBarcode('34', 'EAN2', '', '', 20, 30, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// 5-Digits UPC-Based Extention
+$pdf->write1DBarcode('51234', 'EAN5', '', '', 40, 30, 0.4, $style, 'N');
$pdf->Ln();
// UPC-A
-$pdf->write1DBarcode('123456789012', 'UPCA', '', '', 80, 30, 0.4, $style, 'N');
+$pdf->write1DBarcode('12345678901', 'UPCA', '', '', 80, 30, 0.4, $style, 'N');
$pdf->Ln();
-// UPC-A
-$pdf->write1DBarcode('48109-1109', 'POSTNET', '', '', 80, 20, 0.4, $style, 'N');
+// UPC-E
+$pdf->write1DBarcode('04210000526', 'UPCE', '', '', 80, 30, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// MSI
+$pdf->write1DBarcode('80523', 'MSI', '', '', 80, 30, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// MSI + CHECKSUM (module 11)
+$pdf->write1DBarcode('80523', 'MSI+', '', '', 80, 30, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// POSTNET
+$pdf->write1DBarcode('98000', 'POSTNET', '', '', 80, 20, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// PLANET
+$pdf->write1DBarcode('98000', 'PLANET', '', '', 80, 20, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)
+$pdf->write1DBarcode('SN34RD1A', 'RMS4CC', '', '', 80, 20, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// KIX (Klant index - Customer index)
+$pdf->write1DBarcode('SN34RDX1A', 'KIX', '', '', 80, 20, 0.4, $style, 'N');
$pdf->Ln();
// CODABAR
$pdf->write1DBarcode('123456789', 'CODABAR', '', '', 80, 30, 0.4, $style, 'N');
+$pdf->Ln();
+
+// CODE 11
+$pdf->write1DBarcode('123-456-789', 'CODE11', '', '', 80, 30, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// PHARMACODE
+$pdf->write1DBarcode('789', 'PHARMA', '', '', 30, 30, 0.4, $style, 'N');
+
+$pdf->Ln();
+
+// PHARMACODE TWO-TRACKS
+$pdf->write1DBarcode('105', 'PHARMA2T', '', '', 20, 30, 0.4, $style, 'N');
+
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// TEST BARCDE ALIGNMENTS
diff --git a/tcpdf.php b/tcpdf.php
index debd47b..7e19704 100755
--- a/tcpdf.php
+++ b/tcpdf.php
@@ -2,9 +2,9 @@
//============================================================+
// File name : tcpdf.php
// Begin : 2002-08-03
-// Last Update : 2009-04-10
+// Last Update : 2009-04-11
// Author : Nicola Asuni - info@tecnick.com - http://www.tcpdf.org
-// Version : 4.5.038
+// Version : 4.5.039
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
// ----------------------------------------------------------------------------
// Copyright (C) 2002-2009 Nicola Asuni - Tecnick.com S.r.l.
@@ -122,7 +122,7 @@
* @copyright 2002-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 4.5.038
+ * @version 4.5.039
*/
/**
@@ -146,14 +146,14 @@ if (!class_exists('TCPDF', false)) {
/**
* define default PDF document producer
*/
- define('PDF_PRODUCER', 'TCPDF 4.5.038 (http://www.tcpdf.org)');
+ define('PDF_PRODUCER', 'TCPDF 4.5.039 (http://www.tcpdf.org)');
/**
* This is a PHP class for generating PDF documents without requiring external extensions.
* 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.
* @name TCPDF
* @package com.tecnick.tcpdf
- * @version 4.5.038
+ * @version 4.5.039
* @author Nicola Asuni - info@tecnick.com
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
@@ -10083,7 +10083,7 @@ if (!class_exists('TCPDF', false)) {
}
/**
- * Print 1D Barcode.
+ * Print a Linear Barcode.
* @param string $code code to print
* @param string $type type of barcode.
* @param int $x x position in user units