mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-12-26 18:10:10 +00:00
e691de8a1e
- IMPORTANT: PHP4 support has been removed starting from this version. PHP 5.3 or greater version is required. - Several TCPDF methods and vars were moved to new class files: tcpdf_static.php, tcpdf_colors.php, tcpdf_images.php, tcpdf_font_data.php, tcpdf_fonts.php. - Files htmlcolors.php, spotcolors.php, unicode_data.php and ecodings_maps.php were removed. - Barcode classes were renamed and new barcode examples were added. - Class TCPDF_PARSER was improved.
54 lines
2.0 KiB
PHP
54 lines
2.0 KiB
PHP
<?php
|
|
//============================================================+
|
|
// File name : example_2d_svg.php
|
|
// Version : 1.0.000
|
|
// Begin : 2011-07-21
|
|
// Last Update : 2013-03-17
|
|
// Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - info@tecnick.com
|
|
// 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.
|
|
// -------------------------------------------------------------------
|
|
//
|
|
// Description : Example for tcpdf_barcodes_2d.php class
|
|
//
|
|
//============================================================+
|
|
|
|
/**
|
|
* @file
|
|
* Example for tcpdf_barcodes_2d.php class
|
|
* @package com.tecnick.tcpdf
|
|
* @author Nicola Asuni
|
|
* @version 1.0.009
|
|
*/
|
|
|
|
// include 2D barcode class
|
|
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
|
|
|
|
// set the barcode content and type
|
|
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417');
|
|
|
|
// output the barcode as SVG image
|
|
$barcodeobj->getBarcodeSVG(4, 4, 'black');
|
|
|
|
//============================================================+
|
|
// END OF FILE
|
|
//============================================================+
|