Download the PHP package tecnickcom/tc-lib-pdf without Composer

On this page you can find all versions of the php package tecnickcom/tc-lib-pdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?
tecnickcom/tc-lib-pdf
Rate from 1 - 5
Rated 4.33 based on 3 reviews

Informations about the package tc-lib-pdf

tc-lib-pdf (TCPDF)

The next generation of TCPDF - a modern, modular PHP library for programmatically generating PDF documents.

Latest Stable Version Build Coverage License Downloads

Sponsor on GitHub

💖 Keep TCPDF maintained. tc-lib-pdf is the actively-developed successor to TCPDF, which is installed 100M+ times across 500+ PHP packages and is now maintenance-only. If your company depends on it, become a sponsor to keep this shared infrastructure secure and maintained. See Sponsors for tiers.


Contents


Overview

tc-lib-pdf is a pure-PHP library for generating PDF documents.
It is the modern evolution of TCPDF, built around a modular package architecture, a Composer-first workflow, and strict PHP types.

It coordinates companion packages for fonts, images, graphics, pages, filtering, encryption, and digital signatures into a single document-authoring API.

Why tc-lib-pdf:

Namespace \Com\Tecnick\Pdf
Author Nicola Asuni \[email protected]\
License GNU LGPL v3 - see LICENSE
Website https://tcpdf.org
API docs https://tcpdf.org/docs/srcdoc/tc-lib-pdf
Packagist https://packagist.org/packages/tecnickcom/tc-lib-pdf

Releases follow Semantic Versioning:


Sponsors

tc-lib-pdf is the actively-developed successor to TCPDF, which is installed 100M+ times across 500+ PHP packages and is now maintenance-only. Sponsoring funds the ongoing security and maintenance work on both.

Sponsor on GitHub

Your logo here. Be the first company to back the project: become a sponsor →

See SPONSORS.md for sponsorship tiers, how to add your logo, and the logo/content policy. Individual backers are listed in BACKERS.md.


For TCPDF Users

tc-lib-pdf is not a drop-in replacement for TCPDF:

The runnable examples in examples/index.md cover the equivalent of most TCPDF workflows.

Features

Text & Fonts

Layout & Content

Images & Graphics

Security & Standards

PDF Import

Other


Requirements

Optional PHP extensions: gd, zlib.

Feature-specific prerequisites:


Installation

  1. Install the package with Composer.
  2. Generate companion font files (see doc/FONTS.md).
  3. Run the minimal script using the generated K_PATH_FONTS path.

Or add to your composer.json:


Quick Start

This example assumes the script lives in the project root; adjust the autoload.php and K_PATH_FONTS paths otherwise.

getOutPDFString() returns the raw PDF bytes. renderPDF() streams those bytes to the browser; to store them in a file or send them as an attachment, keep the returned string.

Note: realpath() returns false when the fonts directory does not exist. A K_PATH_FONTS error on first run means the fonts have not been generated (see doc/FONTS.md).


Examples

The examples directory holds runnable scripts for the supported features.

Starting points:

Topic groups:

To run them locally:

Then open http://localhost:8971/E000_overview.php.


In-Depth Documentation

Focused guides in the doc/ directory:


Contributing

Contributions are welcome. Please read CODE_OF_CONDUCT.md before submitting a pull request.

  1. Fork the repository and create a feature branch.
  2. Write or update tests for your change.
  3. Run make qa to ensure the full pipeline passes.
  4. Open a pull request with a clear description of the change.

Security vulnerabilities should be reported according to SECURITY.md.


All versions of tc-lib-pdf with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-ctype Version *
ext-filter Version *
ext-hash Version *
ext-json Version *
ext-mbstring Version *
ext-openssl Version *
ext-pcre Version *
ext-xml Version *
ext-zlib Version *
tecnickcom/tc-lib-barcode Version ^2.16
tecnickcom/tc-lib-color Version ^3.0
tecnickcom/tc-lib-pdf-image Version ^3.14
tecnickcom/tc-lib-pdf-font Version ^4.3
tecnickcom/tc-lib-file Version ^3.9
tecnickcom/tc-lib-pdf-encrypt Version ^2.11
tecnickcom/tc-lib-pdf-sign Version ^2.0
tecnickcom/tc-lib-unicode-data Version ^3.0
tecnickcom/tc-lib-unicode Version ^3.0
tecnickcom/tc-lib-pdf-page Version ^4.16
tecnickcom/tc-lib-pdf-graph Version ^2.17
tecnickcom/tc-lib-pdf-parser Version ^3.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tecnickcom/tc-lib-pdf contains the following files

Loading the files please wait ...