Skip to content

Commit aa5dc2c

Browse files
committed
updated to v6.2.26
1 parent e3cbb55 commit aa5dc2c

Some content is hidden

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

79 files changed

+484
-403
lines changed

CHANGELOG.TXT

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
6.2.25
2+
- Fix support for image URLs.
3+
4+
6.2.24
5+
- Support remote urls when checking if file exists.
6+
7+
6.2.23
8+
- Simplify file_exists function.
9+
10+
6.2.22
11+
- Fix for security vulnerability: Using the phar:// wrapper it was possible to trigger the unserialization of user provided data.
12+
13+
6.2.19
14+
- Merge various fixes for PHP 7.3 compatibility and security.
15+
16+
6.2.13 (2016-06-10)
17+
- IMPORTANT: A new version of this library is under development at https://github.com/tecnickcom/tc-lib-pdf and as a consequence this version will not receive any additional development or support. This version should be considered obsolete, new projects should use the new version as soon it will become stable.
18+
119
6.2.12 (2015-09-12)
220
- fix composer package name to tecnickcom/tcpdf
321

README.TXT

+84-117
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,84 @@
1-
TCPDF - README
2-
============================================================
3-
4-
I WISH TO IMPROVE AND EXPAND TCPDF BUT I NEED YOUR SUPPORT.
5-
PLEASE MAKE A DONATION:
6-
http://sourceforge.net/donate/index.php?group_id=128076
7-
or via PayPal at paypal@tecnick.com
8-
9-
------------------------------------------------------------
10-
11-
Name: TCPDF
12-
Version: 6.2.12
13-
Release date: 2015-09-12
14-
Author: Nicola Asuni
15-
16-
Copyright (c) 2002-2015:
17-
Nicola Asuni
18-
Tecnick.com LTD
19-
www.tecnick.com
20-
21-
URLs:
22-
http://www.tcpdf.org
23-
http://www.sourceforge.net/projects/tcpdf
24-
https://github.com/tecnickcom/TCPDF
25-
26-
Description:
27-
TCPDF is a PHP class for generating PDF files on-the-fly without requiring external extensions.
28-
This library includes also a class to extract data from existing PDF documents and
29-
classes to generate 1D and 2D barcodes in various formats.
30-
31-
Main Features:
32-
* no external libraries are required for the basic functions;
33-
* all standard page formats, custom page formats, custom margins and units of measure;
34-
* UTF-8 Unicode and Right-To-Left languages;
35-
* TrueTypeUnicode, OpenTypeUnicode v1, TrueType, OpenType v1, Type1 and CID-0 fonts;
36-
* font subsetting;
37-
* methods to publish some XHTML + CSS code, Javascript and Forms;
38-
* images, graphic (geometric figures) and transformation methods;
39-
* supports JPEG, PNG and SVG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImagMagick (http://www.imagemagick.org/script/formats.php)
40-
* 1D and 2D barcodes: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extension, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS, Datamatrix, QR-Code, PDF417;
41-
* JPEG and PNG ICC profiles, Grayscale, RGB, CMYK, Spot Colors and Transparencies;
42-
* automatic page header and footer management;
43-
* document encryption up to 256 bit and digital signature certifications;
44-
* transactions to UNDO commands;
45-
* PDF annotations, including links, text and file attachments;
46-
* text rendering modes (fill, stroke and clipping);
47-
* multiple columns mode;
48-
* no-write page regions;
49-
* bookmarks, named destinations and table of content;
50-
* text hyphenation;
51-
* text stretching and spacing (tracking);
52-
* automatic page break, line break and text alignments including justification;
53-
* automatic page numbering and page groups;
54-
* move and delete pages;
55-
* page compression (requires php-zlib extension);
56-
* XOBject Templates;
57-
* Layers and object visibility.
58-
* PDF/A-1b support.
59-
60-
Installation (full instructions on http: www.tcpdf.org):
61-
1. copy the folder on your Web server
62-
2. set your installation path and other parameters on the config/tcpdf_config.php
63-
3. call the examples/example_001.php page with your browser to see an example
64-
65-
Source Code Documentation:
66-
http://www.tcpdf.org
67-
68-
Additional Documentation:
69-
http://www.tcpdf.org
70-
71-
License:
72-
Copyright (C) 2002-2014 Nicola Asuni - Tecnick.com LTD
73-
74-
TCPDF is free software: you can redistribute it and/or modify it
75-
under the terms of the GNU Lesser General Public License as
76-
published by the Free Software Foundation, either version 3 of the
77-
License, or (at your option) any later version.
78-
79-
TCPDF is distributed in the hope that it will be useful, but
80-
WITHOUT ANY WARRANTY; without even the implied warranty of
81-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
82-
See the GNU Lesser General Public License for more details.
83-
84-
You should have received a copy of the License
85-
along with TCPDF. If not, see
86-
<http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT>.
87-
88-
See LICENSE.TXT file for more information.
89-
90-
Third party fonts:
91-
92-
This library may include third party font files released with different licenses.
93-
94-
All the PHP files on the fonts directory are subject to the general TCPDF license (GNU-LGPLv3),
95-
they do not contain any binary data but just a description of the general properties of a particular font.
96-
These files can be also generated on the fly using the font utilities and TCPDF methods.
97-
98-
All the original binary TTF font files have been renamed for compatibility with TCPDF and compressed using the gzcompress PHP function that uses the ZLIB data format (.z files).
99-
100-
The binary files (.z) that begins with the prefix "free" have been extracted from the GNU FreeFont collection (GNU-GPLv3).
101-
The binary files (.z) that begins with the prefix "pdfa" have been derived from the GNU FreeFont, so they are subject to the same license.
102-
For the details of Copyright, License and other information, please check the files inside the directory fonts/freefont-20120503
103-
Link : http://www.gnu.org/software/freefont/
104-
105-
The binary files (.z) that begins with the prefix "dejavu" have been extracted from the DejaVu fonts 2.33 (Bitstream) collection.
106-
For the details of Copyright, License and other information, please check the files inside the directory fonts/dejavu-fonts-ttf-2.33
107-
Link : http://dejavu-fonts.org
108-
109-
The binary files (.z) that begins with the prefix "ae" have been extracted from the Arabeyes.org collection (GNU-GPLv2).
110-
Link : http://projects.arabeyes.org/
111-
112-
ICC profile:
113-
TCPDF includes the sRGB.icc profile from the icc-profiles-free Debian package:
114-
https://packages.debian.org/source/stable/icc-profiles-free
115-
116-
117-
============================================================
1+
# TCPDF
2+
*PHP PDF Library*
3+
4+
[![Donate via PayPal](https://img.shields.io/badge/donate-paypal-87ceeb.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&currency_code=GBP&business=paypal@tecnick.com&item_name=donation%20for%20TCPDF%20project)
5+
*Please consider supporting this project by making a donation via [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&currency_code=GBP&business=paypal@tecnick.com&item_name=donation%20for%20TCPDF%20project)*
6+
7+
* **category** Library
8+
* **author** Nicola Asuni <info@tecnick.com>
9+
* **copyright** 2002-2018 Nicola Asuni - Tecnick.com LTD
10+
* **license** http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
11+
* **link** http://www.tcpdf.org
12+
* **source** https://github.com/tecnickcom/TCPDF
13+
14+
15+
## IMPORTANT
16+
A new version of this library is under development at https://github.com/tecnickcom/tc-lib-pdf and as a consequence this version will not receive any additional development or support.
17+
This version should be considered obsolete, new projects should use the new version as soon it will become stable.
18+
19+
20+
21+
## Description
22+
23+
PHP library for generating PDF documents on-the-fly.
24+
25+
### Main Features:
26+
* no external libraries are required for the basic functions;
27+
* all standard page formats, custom page formats, custom margins and units of measure;
28+
* UTF-8 Unicode and Right-To-Left languages;
29+
* TrueTypeUnicode, OpenTypeUnicode v1, TrueType, OpenType v1, Type1 and CID-0 fonts;
30+
* font subsetting;
31+
* methods to publish some XHTML + CSS code, Javascript and Forms;
32+
* images, graphic (geometric figures) and transformation methods;
33+
* supports JPEG, PNG and SVG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImagMagick (http://www.imagemagick.org/script/formats.php)
34+
* 1D and 2D barcodes: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extension, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS, Datamatrix, QR-Code, PDF417;
35+
* JPEG and PNG ICC profiles, Grayscale, RGB, CMYK, Spot Colors and Transparencies;
36+
* automatic page header and footer management;
37+
* document encryption up to 256 bit and digital signature certifications;
38+
* transactions to UNDO commands;
39+
* PDF annotations, including links, text and file attachments;
40+
* text rendering modes (fill, stroke and clipping);
41+
* multiple columns mode;
42+
* no-write page regions;
43+
* bookmarks, named destinations and table of content;
44+
* text hyphenation;
45+
* text stretching and spacing (tracking);
46+
* automatic page break, line break and text alignments including justification;
47+
* automatic page numbering and page groups;
48+
* move and delete pages;
49+
* page compression (requires php-zlib extension);
50+
* XOBject Templates;
51+
* Layers and object visibility.
52+
* PDF/A-1b support.
53+
54+
### Third party fonts:
55+
56+
This library may include third party font files released with different licenses.
57+
58+
All the PHP files on the fonts directory are subject to the general TCPDF license (GNU-LGPLv3),
59+
they do not contain any binary data but just a description of the general properties of a particular font.
60+
These files can be also generated on the fly using the font utilities and TCPDF methods.
61+
62+
All the original binary TTF font files have been renamed for compatibility with TCPDF and compressed using the gzcompress PHP function that uses the ZLIB data format (.z files).
63+
64+
The binary files (.z) that begins with the prefix "free" have been extracted from the GNU FreeFont collection (GNU-GPLv3).
65+
The binary files (.z) that begins with the prefix "pdfa" have been derived from the GNU FreeFont, so they are subject to the same license.
66+
For the details of Copyright, License and other information, please check the files inside the directory fonts/freefont-20120503
67+
Link : http://www.gnu.org/software/freefont/
68+
69+
The binary files (.z) that begins with the prefix "dejavu" have been extracted from the DejaVu fonts 2.33 (Bitstream) collection.
70+
For the details of Copyright, License and other information, please check the files inside the directory fonts/dejavu-fonts-ttf-2.33
71+
Link : http://dejavu-fonts.org
72+
73+
The binary files (.z) that begins with the prefix "ae" have been extracted from the Arabeyes.org collection (GNU-GPLv2).
74+
Link : http://projects.arabeyes.org/
75+
76+
### ICC profile:
77+
78+
TCPDF includes the sRGB.icc profile from the icc-profiles-free Debian package:
79+
https://packages.debian.org/source/stable/icc-profiles-free
80+
81+
82+
## Developer(s) Contact
83+
84+
* Nicola Asuni <info@tecnick.com>

README.md

+70-41
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,73 @@ TCPDF is a PHP class for generating PDF files on-the-fly without requiring exter
66
This library includes also a class to extract data from existing PDF documents and classes to generate 1D and 2D barcodes in various formats.
77

88
## Main Features:
9-
+ no external libraries are required for the basic functions;
10-
+ all standard page formats, custom page formats, custom margins and units of measure;
11-
+ UTF-8 Unicode and Right-To-Left languages;
12-
+ TrueTypeUnicode, OpenTypeUnicode v1, TrueType, OpenType v1, Type1 and CID-0 fonts;
13-
+ font subsetting;
14-
+ methods to publish some XHTML + CSS code, Javascript and Forms;
15-
+ images, graphic (geometric figures) and transformation methods;
16-
+ supports JPEG, PNG and SVG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImagMagick (http://www.imagemagick.org/script/formats.php)
17-
+ 1D and 2D barcodes: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extension, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS, Datamatrix, QR-Code, PDF417;
18-
+ JPEG and PNG ICC profiles, Grayscale, RGB, CMYK, Spot Colors and Transparencies;
19-
+ automatic page header and footer management;
20-
+ document encryption up to 256 bit and digital signature certifications;
21-
+ transactions to UNDO commands;
22-
+ PDF annotations, including links, text and file attachments;
23-
+ text rendering modes (fill, stroke and clipping);
24-
+ multiple columns mode;
25-
+ no-write page regions;
26-
+ bookmarks, named destinations and table of content;
27-
+ text hyphenation;
28-
+ text stretching and spacing (tracking);
29-
+ automatic page break, line break and text alignments including justification;
30-
+ automatic page numbering and page groups;
31-
+ move and delete pages;
32-
+ page compression (requires php-zlib extension);
33-
+ XOBject Templates;
34-
* Layers and object visibility.
35-
* PDF/A-1b support.
36-
37-
Version: 6.2.12
38-
Release date: 2015-09-12
39-
Author: Nicola Asuni
40-
41-
Copyright (c) 2002-2015:
42-
Nicola Asuni
43-
Tecnick.com LTD
44-
www.tecnick.com
45-
46-
> Compiled into an installer for Joomla 3 by [Llewellyn van der Merwe] (mailto:joomla@vdm.io) at [Vast Development Method] (https://www.vdm.io/)
9+
* no external libraries are required for the basic functions;
10+
* all standard page formats, custom page formats, custom margins and units of measure;
11+
* UTF-8 Unicode and Right-To-Left languages;
12+
* TrueTypeUnicode, OpenTypeUnicode v1, TrueType, OpenType v1, Type1 and CID-0 fonts;
13+
* font subsetting;
14+
* methods to publish some XHTML + CSS code, Javascript and Forms;
15+
* images, graphic (geometric figures) and transformation methods;
16+
* supports JPEG, PNG and SVG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImagMagick (http://www.imagemagick.org/script/formats.php)
17+
* 1D and 2D barcodes: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extension, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS, Datamatrix, QR-Code, PDF417;
18+
* JPEG and PNG ICC profiles, Grayscale, RGB, CMYK, Spot Colors and Transparencies;
19+
* automatic page header and footer management;
20+
* document encryption up to 256 bit and digital signature certifications;
21+
* transactions to UNDO commands;
22+
* PDF annotations, including links, text and file attachments;
23+
* text rendering modes (fill, stroke and clipping);
24+
* multiple columns mode;
25+
* no-write page regions;
26+
* bookmarks, named destinations and table of content;
27+
* text hyphenation;
28+
* text stretching and spacing (tracking);
29+
* automatic page break, line break and text alignments including justification;
30+
* automatic page numbering and page groups;
31+
* move and delete pages;
32+
* page compression (requires php-zlib extension);
33+
* XOBject Templates;
34+
* Layers and object visibility.
35+
* PDF/A-1b support.
36+
37+
### Third party fonts:
38+
39+
This library may include third party font files released with different licenses.
40+
41+
All the PHP files on the fonts directory are subject to the general TCPDF license (GNU-LGPLv3),
42+
they do not contain any binary data but just a description of the general properties of a particular font.
43+
These files can be also generated on the fly using the font utilities and TCPDF methods.
44+
45+
All the original binary TTF font files have been renamed for compatibility with TCPDF and compressed using the gzcompress PHP function that uses the ZLIB data format (.z files).
46+
47+
The binary files (.z) that begins with the prefix "free" have been extracted from the GNU FreeFont collection (GNU-GPLv3).
48+
The binary files (.z) that begins with the prefix "pdfa" have been derived from the GNU FreeFont, so they are subject to the same license.
49+
For the details of Copyright, License and other information, please check the files inside the directory fonts/freefont-20120503
50+
Link : http://www.gnu.org/software/freefont/
51+
52+
The binary files (.z) that begins with the prefix "dejavu" have been extracted from the DejaVu fonts 2.33 (Bitstream) collection.
53+
For the details of Copyright, License and other information, please check the files inside the directory fonts/dejavu-fonts-ttf-2.33
54+
Link : http://dejavu-fonts.org
55+
56+
The binary files (.z) that begins with the prefix "ae" have been extracted from the Arabeyes.org collection (GNU-GPLv2).
57+
Link : http://projects.arabeyes.org/
58+
59+
### ICC profile:
60+
61+
TCPDF includes the sRGB.icc profile from the icc-profiles-free Debian package:
62+
https://packages.debian.org/source/stable/icc-profiles-free
63+
64+
* **category** Library
65+
* **author** Nicola Asuni <info@tecnick.com>
66+
* **copyright** 2002-2018 Nicola Asuni - Tecnick.com LTD
67+
* **license** http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
68+
* **link** http://www.tcpdf.org
69+
* **source** https://github.com/tecnickcom/TCPDF
70+
71+
## Developer(s) Contact
72+
73+
* Nicola Asuni <info@tecnick.com>
74+
75+
> Compiled into an installer for Joomla 3 by [Llewellyn van der Merwe](mailto:joomla@vdm.io) at [Vast Development Method](https://www.vdm.io/)
4776
4877
# Usage in Joomla (PHP)
4978
```php
@@ -61,11 +90,11 @@ $pdf = new TCPDF();
6190
```
6291

6392
# Documentation
64-
+ [Source Code Documentation] (http://www.tcpdf.org)
65-
+ [Additional Documentation] (http://www.tcpdf.org)
93+
+ [Source Code Documentation](http://www.tcpdf.org)
94+
+ [Additional Documentation](http://www.tcpdf.org)
6695

6796
# Automatic updates
6897
This library is integrated with Joomla's automatic updates. Before updating it's mandatory that you check that your documents still work as expected.
6998

7099
# License
71-
TCPDF is licensed under LGPL ([GNU LESSER GENERAL PUBLIC LICENSE] (https://github.com/vdm-io/tcpdf/blob/master/tcpdf/LICENSE.TXT))
100+
TCPDF is licensed under LGPL ([GNU LESSER GENERAL PUBLIC LICENSE](https://github.com/vdm-io/tcpdf/blob/master/LICENSE.TXT))

0 commit comments

Comments
 (0)