summaryrefslogtreecommitdiff
path: root/library/tecnick.com/tcpdf/examples/barcodes/example_2d_qrcode_png.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-03-27 18:28:37 +0000
committerGreg Roach <fisharebest@gmail.com>2014-03-27 18:28:37 +0000
commit786c4997aaad57692b7cf3b9e955f860357be624 (patch)
treead8804c6fc985ccc4178639e76e90d6e2d2b65af /library/tecnick.com/tcpdf/examples/barcodes/example_2d_qrcode_png.php
parent8e7c65526ce4ff8b5b3b2754ff54f9a6e875a9f6 (diff)
downloadwebtrees-786c4997aaad57692b7cf3b9e955f860357be624.tar.gz
webtrees-786c4997aaad57692b7cf3b9e955f860357be624.tar.bz2
webtrees-786c4997aaad57692b7cf3b9e955f860357be624.zip
TCPDF library missing, due to rogue .git subfolder
Diffstat (limited to 'library/tecnick.com/tcpdf/examples/barcodes/example_2d_qrcode_png.php')
-rw-r--r--library/tecnick.com/tcpdf/examples/barcodes/example_2d_qrcode_png.php53
1 files changed, 53 insertions, 0 deletions
diff --git a/library/tecnick.com/tcpdf/examples/barcodes/example_2d_qrcode_png.php b/library/tecnick.com/tcpdf/examples/barcodes/example_2d_qrcode_png.php
new file mode 100644
index 0000000000..71f8710154
--- /dev/null
+++ b/library/tecnick.com/tcpdf/examples/barcodes/example_2d_qrcode_png.php
@@ -0,0 +1,53 @@
+<?php
+//============================================================+
+// File name : example_2d_png.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');
+
+// set the barcode content and type
+$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H');
+
+// output the barcode as PNG image
+$barcodeobj->getBarcodePNG(6, 6, array(0,0,0));
+
+//============================================================+
+// END OF FILE
+//============================================================+