<?php
//============================================================+
// File name   : example_2d_html.php
// Version     : 1.0.000
// Begin       : 2011-07-21
// Last Update : 2013-03-19
// Author      : Nicola Asuni - Tecnick.com LTD - 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 (search for installation path)
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
$entrada='<TED version="1.0"><DD><RE>78.366.960-3</RE><TD>33</TD><F>2</F><FE>2014-11-05</FE><RR>7.914.075-9</RR><RSR>Misael Leonardo Caceres Castro</RSR><MNT>13325077</MNT><IT1 /><CAF version="1.0"><DA><RE>78366980-3</RE><RS>COMERCIALIZADORA LOS ANDES LTDA.</RS><TD>33</TD><RNG><D>1</D><H>100</H></RNG><FA>2014-10-27</FA><RSAPK><M>0r5o8wyBt53ur42jCdil8CjUigDRn3YZYjil8xVYdG9loh+3X9WlWjd+iLqbGHzgdAGhTRIfnjc1FnOebBvJLw==</M><E>Aw==</E></RSAPK><IDK>100</IDK></DA><FRMA algoritmo="SHA1withRSA">RfzbVLLPH8gNrk/6K9OdSvQmFtipx9CQgD9MqbI+x5zaRla6SwtEivVGg1gwYnEZVidQRQw3nrMubtGUHVoZjw==</FRMA></CAF><TSTED>2014-11-05T22:04:23</TSTED></DD><FRMT algoritmo="SHA1withRSA">MVONBZ88rFGARkcgZ3qGQGwrb1gv3vg4vQ4sOYOwKP+mb9mS9SiccQbHy4DD5wkScBzniFaqCZqkxWlL2xlVJw==</FRMT></TED>';
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode($entrada, 'PDF417');

// output the barcode as HTML object
echo $barcodeobj->getBarcodeHTML(4, 4, 'black');

//============================================================+
// END OF FILE
//============================================================+
