-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2370786
commit 5994bf2
Showing
397 changed files
with
110,859 additions
and
327 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# TCPDF | ||
*PHP PDF Library* | ||
|
||
[![Donate via PayPal](https://img.shields.io/badge/donate-paypal-87ceeb.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations¤cy_code=GBP&[email protected]&item_name=donation%20for%20TCPDF%20project) | ||
*Please consider supporting this project by making a donation via [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations¤cy_code=GBP&[email protected]&item_name=donation%20for%20TCPDF%20project)* | ||
|
||
* **category** Library | ||
* **author** Nicola Asuni <[email protected]> | ||
* **copyright** 2002-2022 Nicola Asuni - Tecnick.com LTD | ||
* **license** http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT) | ||
* **link** http://www.tcpdf.org | ||
* **source** https://github.com/tecnickcom/TCPDF | ||
|
||
|
||
## 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. | ||
|
||
|
||
|
||
## Description | ||
|
||
PHP library for generating PDF documents on-the-fly. | ||
|
||
### Main Features: | ||
* no external libraries are required for the basic functions; | ||
* all standard page formats, custom page formats, custom margins and units of measure; | ||
* UTF-8 Unicode and Right-To-Left languages; | ||
* TrueTypeUnicode, OpenTypeUnicode v1, TrueType, OpenType v1, Type1 and CID-0 fonts; | ||
* font subsetting; | ||
* methods to publish some XHTML + CSS code, Javascript and Forms; | ||
* images, graphic (geometric figures) and transformation methods; | ||
* 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) | ||
* 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; | ||
* JPEG and PNG ICC profiles, Grayscale, RGB, CMYK, Spot Colors and Transparencies; | ||
* automatic page header and footer management; | ||
* document encryption up to 256 bit and digital signature certifications; | ||
* transactions to UNDO commands; | ||
* PDF annotations, including links, text and file attachments; | ||
* text rendering modes (fill, stroke and clipping); | ||
* multiple columns mode; | ||
* no-write page regions; | ||
* bookmarks, named destinations and table of content; | ||
* text hyphenation; | ||
* text stretching and spacing (tracking); | ||
* automatic page break, line break and text alignments including justification; | ||
* automatic page numbering and page groups; | ||
* move and delete pages; | ||
* page compression (requires php-zlib extension); | ||
* XOBject Templates; | ||
* Layers and object visibility. | ||
* PDF/A-1b support. | ||
|
||
### Third party fonts: | ||
|
||
This library may include third party font files released with different licenses. | ||
|
||
All the PHP files on the fonts directory are subject to the general TCPDF license (GNU-LGPLv3), | ||
they do not contain any binary data but just a description of the general properties of a particular font. | ||
These files can be also generated on the fly using the font utilities and TCPDF methods. | ||
|
||
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). | ||
|
||
The binary files (.z) that begins with the prefix "free" have been extracted from the GNU FreeFont collection (GNU-GPLv3). | ||
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. | ||
For the details of Copyright, License and other information, please check the files inside the directory fonts/freefont-20120503 | ||
Link : http://www.gnu.org/software/freefont/ | ||
|
||
The binary files (.z) that begins with the prefix "dejavu" have been extracted from the DejaVu fonts 2.33 (Bitstream) collection. | ||
For the details of Copyright, License and other information, please check the files inside the directory fonts/dejavu-fonts-ttf-2.33 | ||
Link : http://dejavu-fonts.org | ||
|
||
The binary files (.z) that begins with the prefix "ae" have been extracted from the Arabeyes.org collection (GNU-GPLv2). | ||
Link : http://projects.arabeyes.org/ | ||
|
||
### ICC profile: | ||
|
||
TCPDF includes the sRGB.icc profile from the icc-profiles-free Debian package: | ||
https://packages.debian.org/source/stable/icc-profiles-free | ||
|
||
|
||
## Developer(s) Contact | ||
|
||
* Nicola Asuni <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6.6.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"name": "tecnickcom/tcpdf", | ||
"type": "library", | ||
"description": "TCPDF is a PHP class for generating PDF documents and barcodes.", | ||
"keywords": [ | ||
"PDF", | ||
"tcpdf", | ||
"PDFD32000-2008", | ||
"qrcode", | ||
"datamatrix", | ||
"pdf417", | ||
"barcodes" | ||
], | ||
"homepage": "http://www.tcpdf.org/", | ||
"version": "6.6.2", | ||
"license": "LGPL-3.0-only", | ||
"authors": [ | ||
{ | ||
"name": "Nicola Asuni", | ||
"email": "[email protected]", | ||
"role": "lead" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.3.0" | ||
}, | ||
"autoload": { | ||
"classmap": [ | ||
"config", | ||
"include", | ||
"tcpdf.php", | ||
"tcpdf_parser.php", | ||
"tcpdf_import.php", | ||
"tcpdf_barcodes_1d.php", | ||
"tcpdf_barcodes_2d.php", | ||
"include/tcpdf_colors.php", | ||
"include/tcpdf_filters.php", | ||
"include/tcpdf_font_data.php", | ||
"include/tcpdf_fonts.php", | ||
"include/tcpdf_images.php", | ||
"include/tcpdf_static.php", | ||
"include/barcodes/datamatrix.php", | ||
"include/barcodes/pdf417.php", | ||
"include/barcodes/qrcode.php" | ||
] | ||
}, | ||
"archive": { | ||
"exclude": [ | ||
"/examples" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,227 @@ | ||
<?php | ||
//============================================================+ | ||
// File name : tcpdf_config.php | ||
// Begin : 2004-06-11 | ||
// Last Update : 2014-12-11 | ||
// | ||
// Description : Configuration file for TCPDF. | ||
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - [email protected] | ||
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html) | ||
// ------------------------------------------------------------------- | ||
// Copyright (C) 2004-2014 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. | ||
//============================================================+ | ||
|
||
/** | ||
* Configuration file for TCPDF. | ||
* @author Nicola Asuni | ||
* @package com.tecnick.tcpdf | ||
* @version 4.9.005 | ||
* @since 2004-10-27 | ||
*/ | ||
|
||
// IMPORTANT: | ||
// If you define the constant K_TCPDF_EXTERNAL_CONFIG, all the following settings will be ignored. | ||
// If you use the tcpdf_autoconfig.php, then you can overwrite some values here. | ||
|
||
|
||
/** | ||
* Installation path (/var/www/tcpdf/). | ||
* By default it is automatically calculated but you can also set it as a fixed string to improve performances. | ||
*/ | ||
//define ('K_PATH_MAIN', ''); | ||
|
||
/** | ||
* URL path to tcpdf installation folder (http://localhost/tcpdf/). | ||
* By default it is automatically set but you can also set it as a fixed string to improve performances. | ||
*/ | ||
//define ('K_PATH_URL', ''); | ||
|
||
/** | ||
* Path for PDF fonts. | ||
* By default it is automatically set but you can also set it as a fixed string to improve performances. | ||
*/ | ||
//define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); | ||
|
||
/** | ||
* Default images directory. | ||
* By default it is automatically set but you can also set it as a fixed string to improve performances. | ||
*/ | ||
//define ('K_PATH_IMAGES', ''); | ||
|
||
/** | ||
* Deafult image logo used be the default Header() method. | ||
* Please set here your own logo or an empty string to disable it. | ||
*/ | ||
//define ('PDF_HEADER_LOGO', ''); | ||
|
||
/** | ||
* Header logo image width in user units. | ||
*/ | ||
//define ('PDF_HEADER_LOGO_WIDTH', 0); | ||
|
||
/** | ||
* Cache directory for temporary files (full path). | ||
*/ | ||
//define ('K_PATH_CACHE', '/tmp/'); | ||
|
||
/** | ||
* Generic name for a blank image. | ||
*/ | ||
define ('K_BLANK_IMAGE', '_blank.png'); | ||
|
||
/** | ||
* Page format. | ||
*/ | ||
define ('PDF_PAGE_FORMAT', 'A4'); | ||
|
||
/** | ||
* Page orientation (P=portrait, L=landscape). | ||
*/ | ||
define ('PDF_PAGE_ORIENTATION', 'P'); | ||
|
||
/** | ||
* Document creator. | ||
*/ | ||
define ('PDF_CREATOR', 'AUBIT'); | ||
|
||
/** | ||
* Document author. | ||
*/ | ||
define ('PDF_AUTHOR', 'TCPDF'); | ||
|
||
/** | ||
* Header title. | ||
*/ | ||
define ('PDF_HEADER_TITLE', 'TCPDF Example'); | ||
|
||
/** | ||
* Header description string. | ||
*/ | ||
define ('PDF_HEADER_STRING', ""); | ||
|
||
/** | ||
* Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]. | ||
*/ | ||
define ('PDF_UNIT', 'mm'); | ||
|
||
/** | ||
* Header margin. | ||
*/ | ||
define ('PDF_MARGIN_HEADER', 5); | ||
|
||
/** | ||
* Footer margin. | ||
*/ | ||
define ('PDF_MARGIN_FOOTER', 10); | ||
|
||
/** | ||
* Top margin. | ||
*/ | ||
define ('PDF_MARGIN_TOP', 27); | ||
|
||
/** | ||
* Bottom margin. | ||
*/ | ||
define ('PDF_MARGIN_BOTTOM', 25); | ||
|
||
/** | ||
* Left margin. | ||
*/ | ||
define ('PDF_MARGIN_LEFT', 15); | ||
|
||
/** | ||
* Right margin. | ||
*/ | ||
define ('PDF_MARGIN_RIGHT', 15); | ||
|
||
/** | ||
* Default main font name. | ||
*/ | ||
define ('PDF_FONT_NAME_MAIN', 'helvetica'); | ||
|
||
/** | ||
* Default main font size. | ||
*/ | ||
define ('PDF_FONT_SIZE_MAIN', 10); | ||
|
||
/** | ||
* Default data font name. | ||
*/ | ||
define ('PDF_FONT_NAME_DATA', 'helvetica'); | ||
|
||
/** | ||
* Default data font size. | ||
*/ | ||
define ('PDF_FONT_SIZE_DATA', 8); | ||
|
||
/** | ||
* Default monospaced font name. | ||
*/ | ||
define ('PDF_FONT_MONOSPACED', 'courier'); | ||
|
||
/** | ||
* Ratio used to adjust the conversion of pixels to user units. | ||
*/ | ||
define ('PDF_IMAGE_SCALE_RATIO', 1.25); | ||
|
||
/** | ||
* Magnification factor for titles. | ||
*/ | ||
define('HEAD_MAGNIFICATION', 1.1); | ||
|
||
/** | ||
* Height of cell respect font height. | ||
*/ | ||
define('K_CELL_HEIGHT_RATIO', 1.25); | ||
|
||
/** | ||
* Title magnification respect main font size. | ||
*/ | ||
define('K_TITLE_MAGNIFICATION', 1.3); | ||
|
||
/** | ||
* Reduction factor for small font. | ||
*/ | ||
define('K_SMALL_RATIO', 2/3); | ||
|
||
/** | ||
* Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language. | ||
*/ | ||
define('K_THAI_TOPCHARS', true); | ||
|
||
/** | ||
* If true allows to call TCPDF methods using HTML syntax | ||
* IMPORTANT: For security reason, disable this feature if you are printing user HTML content. | ||
*/ | ||
define('K_TCPDF_CALLS_IN_HTML', false); | ||
|
||
/** | ||
* If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution. | ||
*/ | ||
define('K_TCPDF_THROW_EXCEPTION_ERROR', false); | ||
|
||
/** | ||
* Default timezone for datetime functions | ||
*/ | ||
define('K_TIMEZONE', 'UTC'); | ||
|
||
//============================================================+ | ||
// END OF FILE | ||
//============================================================+ |
Oops, something went wrong.