2013-03-17 14:03:01 +00:00
|
|
|
<?php
|
|
|
|
//============================================================+
|
|
|
|
// File name : example_1d_svgi.php
|
|
|
|
// Version : 1.0.000
|
|
|
|
// Begin : 2011-07-21
|
2013-05-19 16:46:11 +00:00
|
|
|
// Last Update : 2013-03-19
|
2013-04-22 19:23:46 +00:00
|
|
|
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
|
2013-03-17 14:03:01 +00:00
|
|
|
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2009-2013 Nicola Asuni - Tecnick.com LTD
|
|
|
|
//
|
|
|
|
// This file is part of TCPDF software library.
|
|
|
|
//
|
|
|
|
// TCPDF is free software: you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU 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 TCPDF. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//
|
|
|
|
// See LICENSE.TXT file for more information.
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
//
|
2013-05-19 16:46:11 +00:00
|
|
|
// Description : Example for tcpdf_barcodes_2d.php class
|
2013-03-17 14:03:01 +00:00
|
|
|
//
|
|
|
|
//============================================================+
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
2013-05-19 16:46:11 +00:00
|
|
|
* Example for tcpdf_barcodes_2d.php class
|
2013-03-17 14:03:01 +00:00
|
|
|
* @package com.tecnick.tcpdf
|
|
|
|
* @author Nicola Asuni
|
|
|
|
* @version 1.0.000
|
|
|
|
*/
|
|
|
|
|
2013-05-19 16:46:11 +00:00
|
|
|
// include 1D barcode class (search for installation path)
|
2013-06-04 19:55:07 +00:00
|
|
|
require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php');
|
2013-03-17 14:03:01 +00:00
|
|
|
|
|
|
|
// set the barcode content and type
|
|
|
|
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');
|
|
|
|
|
|
|
|
// output the barcode as SVG inline code
|
|
|
|
echo $barcodeobj->getBarcodeSVGcode(2, 40, 'black');
|
|
|
|
|
|
|
|
//============================================================+
|
|
|
|
// END OF FILE
|
|
|
|
//============================================================+
|