Skip to content

Commit 100fb96

Browse files
committed
added the example files, they will not installed to Joomla
1 parent 922f4e7 commit 100fb96

File tree

157 files changed

+15046
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+15046
-0
lines changed

examples/barcodes/example_1d_html.php

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
//============================================================+
3+
// File name : example_1d_html.php
4+
// Version : 1.0.000
5+
// Begin : 2011-07-21
6+
// Last Update : 2013-03-19
7+
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
8+
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
9+
// -------------------------------------------------------------------
10+
// Copyright (C) 2009-2013 Nicola Asuni - Tecnick.com LTD
11+
//
12+
// This file is part of TCPDF software library.
13+
//
14+
// TCPDF is free software: you can redistribute it and/or modify it
15+
// under the terms of the GNU Lesser General Public License as
16+
// published by the Free Software Foundation, either version 3 of the
17+
// License, or (at your option) any later version.
18+
//
19+
// TCPDF is distributed in the hope that it will be useful, but
20+
// WITHOUT ANY WARRANTY; without even the implied warranty of
21+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22+
// See the GNU Lesser General Public License for more details.
23+
//
24+
// You should have received a copy of the GNU Lesser General Public License
25+
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
26+
//
27+
// See LICENSE.TXT file for more information.
28+
// -------------------------------------------------------------------
29+
//
30+
// Description : Example for tcpdf_barcodes_2d.php class
31+
//
32+
//============================================================+
33+
34+
/**
35+
* @file
36+
* Example for tcpdf_barcodes_2d.php class
37+
* @package com.tecnick.tcpdf
38+
* @author Nicola Asuni
39+
* @version 1.0.000
40+
*/
41+
42+
// include 1D barcode class (search for installation path)
43+
require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php');
44+
45+
// set the barcode content and type
46+
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');
47+
48+
// output the barcode as HTML object
49+
echo $barcodeobj->getBarcodeHTML(2, 30, 'black');
50+
51+
//============================================================+
52+
// END OF FILE
53+
//============================================================+

examples/barcodes/example_1d_png.php

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
//============================================================+
3+
// File name : example_1d_png.php
4+
// Version : 1.0.000
5+
// Begin : 2011-07-21
6+
// Last Update : 2013-03-19
7+
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
8+
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
9+
// -------------------------------------------------------------------
10+
// Copyright (C) 2009-2013 Nicola Asuni - Tecnick.com LTD
11+
//
12+
// This file is part of TCPDF software library.
13+
//
14+
// TCPDF is free software: you can redistribute it and/or modify it
15+
// under the terms of the GNU Lesser General Public License as
16+
// published by the Free Software Foundation, either version 3 of the
17+
// License, or (at your option) any later version.
18+
//
19+
// TCPDF is distributed in the hope that it will be useful, but
20+
// WITHOUT ANY WARRANTY; without even the implied warranty of
21+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22+
// See the GNU Lesser General Public License for more details.
23+
//
24+
// You should have received a copy of the GNU Lesser General Public License
25+
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
26+
//
27+
// See LICENSE.TXT file for more information.
28+
// -------------------------------------------------------------------
29+
//
30+
// Description : Example for tcpdf_barcodes_2d.php class
31+
//
32+
//============================================================+
33+
34+
/**
35+
* @file
36+
* Example for tcpdf_barcodes_2d.php class
37+
* @package com.tecnick.tcpdf
38+
* @author Nicola Asuni
39+
* @version 1.0.000
40+
*/
41+
42+
// include 1D barcode class (search for installation path)
43+
require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php');
44+
45+
// set the barcode content and type
46+
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');
47+
48+
// output the barcode as PNG image
49+
$barcodeobj->getBarcodePNG(2, 30, array(0,0,0));
50+
51+
//============================================================+
52+
// END OF FILE
53+
//============================================================+

examples/barcodes/example_1d_svg.php

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
//============================================================+
3+
// File name : example_1d_svg.php
4+
// Version : 1.0.000
5+
// Begin : 2011-07-21
6+
// Last Update : 2013-03-19
7+
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
8+
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
9+
// -------------------------------------------------------------------
10+
// Copyright (C) 2009-2013 Nicola Asuni - Tecnick.com LTD
11+
//
12+
// This file is part of TCPDF software library.
13+
//
14+
// TCPDF is free software: you can redistribute it and/or modify it
15+
// under the terms of the GNU Lesser General Public License as
16+
// published by the Free Software Foundation, either version 3 of the
17+
// License, or (at your option) any later version.
18+
//
19+
// TCPDF is distributed in the hope that it will be useful, but
20+
// WITHOUT ANY WARRANTY; without even the implied warranty of
21+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22+
// See the GNU Lesser General Public License for more details.
23+
//
24+
// You should have received a copy of the GNU Lesser General Public License
25+
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
26+
//
27+
// See LICENSE.TXT file for more information.
28+
// -------------------------------------------------------------------
29+
//
30+
// Description : Example for tcpdf_barcodes_2d.php class
31+
//
32+
//============================================================+
33+
34+
/**
35+
* @file
36+
* Example for tcpdf_barcodes_2d.php class
37+
* @package com.tecnick.tcpdf
38+
* @author Nicola Asuni
39+
* @version 1.0.000
40+
*/
41+
42+
// include 1D barcode class (search for installation path)
43+
require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php');
44+
45+
// set the barcode content and type
46+
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');
47+
48+
// output the barcode as SVG image
49+
$barcodeobj->getBarcodeSVG(2, 30, 'black');
50+
51+
//============================================================+
52+
// END OF FILE
53+
//============================================================+

examples/barcodes/example_1d_svgi.php

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
//============================================================+
3+
// File name : example_1d_svgi.php
4+
// Version : 1.0.000
5+
// Begin : 2011-07-21
6+
// Last Update : 2013-03-19
7+
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
8+
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
9+
// -------------------------------------------------------------------
10+
// Copyright (C) 2009-2013 Nicola Asuni - Tecnick.com LTD
11+
//
12+
// This file is part of TCPDF software library.
13+
//
14+
// TCPDF is free software: you can redistribute it and/or modify it
15+
// under the terms of the GNU Lesser General Public License as
16+
// published by the Free Software Foundation, either version 3 of the
17+
// License, or (at your option) any later version.
18+
//
19+
// TCPDF is distributed in the hope that it will be useful, but
20+
// WITHOUT ANY WARRANTY; without even the implied warranty of
21+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22+
// See the GNU Lesser General Public License for more details.
23+
//
24+
// You should have received a copy of the GNU Lesser General Public License
25+
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
26+
//
27+
// See LICENSE.TXT file for more information.
28+
// -------------------------------------------------------------------
29+
//
30+
// Description : Example for tcpdf_barcodes_2d.php class
31+
//
32+
//============================================================+
33+
34+
/**
35+
* @file
36+
* Example for tcpdf_barcodes_2d.php class
37+
* @package com.tecnick.tcpdf
38+
* @author Nicola Asuni
39+
* @version 1.0.000
40+
*/
41+
42+
// include 1D barcode class (search for installation path)
43+
require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php');
44+
45+
// set the barcode content and type
46+
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');
47+
48+
// output the barcode as SVG inline code
49+
echo $barcodeobj->getBarcodeSVGcode(2, 40, 'black');
50+
51+
//============================================================+
52+
// END OF FILE
53+
//============================================================+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
//============================================================+
3+
// File name : example_2d_html.php
4+
// Version : 1.0.000
5+
// Begin : 2011-07-21
6+
// Last Update : 2013-03-19
7+
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
8+
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
9+
// -------------------------------------------------------------------
10+
// Copyright (C) 2009-2013 Nicola Asuni - Tecnick.com LTD
11+
//
12+
// This file is part of TCPDF software library.
13+
//
14+
// TCPDF is free software: you can redistribute it and/or modify it
15+
// under the terms of the GNU Lesser General Public License as
16+
// published by the Free Software Foundation, either version 3 of the
17+
// License, or (at your option) any later version.
18+
//
19+
// TCPDF is distributed in the hope that it will be useful, but
20+
// WITHOUT ANY WARRANTY; without even the implied warranty of
21+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22+
// See the GNU Lesser General Public License for more details.
23+
//
24+
// You should have received a copy of the GNU Lesser General Public License
25+
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
26+
//
27+
// See LICENSE.TXT file for more information.
28+
// -------------------------------------------------------------------
29+
//
30+
// Description : Example for tcpdf_barcodes_2d.php class
31+
//
32+
//============================================================+
33+
34+
/**
35+
* @file
36+
* Example for tcpdf_barcodes_2d.php class
37+
* @package com.tecnick.tcpdf
38+
* @author Nicola Asuni
39+
* @version 1.0.009
40+
*/
41+
42+
// include 2D barcode class (search for installation path)
43+
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
44+
45+
// set the barcode content and type
46+
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX');
47+
48+
// output the barcode as HTML object
49+
echo $barcodeobj->getBarcodeHTML(6, 6, 'black');
50+
51+
//============================================================+
52+
// END OF FILE
53+
//============================================================+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
//============================================================+
3+
// File name : example_2d_png.php
4+
// Version : 1.0.000
5+
// Begin : 2011-07-21
6+
// Last Update : 2013-03-19
7+
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
8+
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
9+
// -------------------------------------------------------------------
10+
// Copyright (C) 2009-2013 Nicola Asuni - Tecnick.com LTD
11+
//
12+
// This file is part of TCPDF software library.
13+
//
14+
// TCPDF is free software: you can redistribute it and/or modify it
15+
// under the terms of the GNU Lesser General Public License as
16+
// published by the Free Software Foundation, either version 3 of the
17+
// License, or (at your option) any later version.
18+
//
19+
// TCPDF is distributed in the hope that it will be useful, but
20+
// WITHOUT ANY WARRANTY; without even the implied warranty of
21+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22+
// See the GNU Lesser General Public License for more details.
23+
//
24+
// You should have received a copy of the GNU Lesser General Public License
25+
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
26+
//
27+
// See LICENSE.TXT file for more information.
28+
// -------------------------------------------------------------------
29+
//
30+
// Description : Example for tcpdf_barcodes_2d.php class
31+
//
32+
//============================================================+
33+
34+
/**
35+
* @file
36+
* Example for tcpdf_barcodes_2d.php class
37+
* @package com.tecnick.tcpdf
38+
* @author Nicola Asuni
39+
* @version 1.0.009
40+
*/
41+
42+
// include 2D barcode class (search for installation path)
43+
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
44+
45+
// set the barcode content and type
46+
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX');
47+
48+
// output the barcode as PNG image
49+
$barcodeobj->getBarcodePNG(6, 6, array(0,0,0));
50+
51+
//============================================================+
52+
// END OF FILE
53+
//============================================================+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
//============================================================+
3+
// File name : example_2d_svg.php
4+
// Version : 1.0.000
5+
// Begin : 2011-07-21
6+
// Last Update : 2013-03-19
7+
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
8+
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
9+
// -------------------------------------------------------------------
10+
// Copyright (C) 2009-2013 Nicola Asuni - Tecnick.com LTD
11+
//
12+
// This file is part of TCPDF software library.
13+
//
14+
// TCPDF is free software: you can redistribute it and/or modify it
15+
// under the terms of the GNU Lesser General Public License as
16+
// published by the Free Software Foundation, either version 3 of the
17+
// License, or (at your option) any later version.
18+
//
19+
// TCPDF is distributed in the hope that it will be useful, but
20+
// WITHOUT ANY WARRANTY; without even the implied warranty of
21+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22+
// See the GNU Lesser General Public License for more details.
23+
//
24+
// You should have received a copy of the GNU Lesser General Public License
25+
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
26+
//
27+
// See LICENSE.TXT file for more information.
28+
// -------------------------------------------------------------------
29+
//
30+
// Description : Example for tcpdf_barcodes_2d.php class
31+
//
32+
//============================================================+
33+
34+
/**
35+
* @file
36+
* Example for tcpdf_barcodes_2d.php class
37+
* @package com.tecnick.tcpdf
38+
* @author Nicola Asuni
39+
* @version 1.0.009
40+
*/
41+
42+
// include 2D barcode class (search for installation path)
43+
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
44+
45+
// set the barcode content and type
46+
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX');
47+
48+
// output the barcode as SVG image
49+
$barcodeobj->getBarcodeSVG(6, 6, 'black');
50+
51+
//============================================================+
52+
// END OF FILE
53+
//============================================================+

0 commit comments

Comments
 (0)