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

On this page you can find all versions of the php package tecnickcom/tc-lib-pdf-parser. 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?

Informations about the package tc-lib-pdf-parser

tc-lib-pdf-parser

Parser library for reading and extracting PDF document structures.

Latest Stable Version Build Coverage License Downloads

Sponsor on GitHub

💖 Part of the tc-lib-pdf / TCPDF ecosystem (100M+ installs). Sponsor its maintenance →


Overview

tc-lib-pdf-parser parses raw PDF data into the cross-reference and trailer data of the document and an array of its objects, each decoded into a token array.

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

Features

Parsing

Limits


Requirements


Configuration

The constructor accepts an array of parameters:

Parameter Type Default Meaning
ignore_filter_errors bool false If true, a stream that fails to decode is kept as raw data instead of raising an exception
decode_streams bool true If true, decode the stream payloads of the indirect objects while parsing
max_stream_size int 33554432 Maximum size in bytes of a single decoded stream; 0 means unlimited
max_resolution_depth int 64 Maximum number of indirect object resolutions in flight at once; values below 1 are clamped to 1
max_nesting_depth int 256 Maximum nesting depth of array and dictionary objects; values below 1 are clamped to 1
strict_limits bool false If true, raise a LimitException as soon as a limit or a reference cycle leaves an object unresolved

Parsing Limits

Two limits bound the work a document can ask the parser to do. Both bound a recursion and cannot be disabled: a value below 1 is clamped to 1.

Exceeding max_nesting_depth always raises Com\Tecnick\Pdf\Parser\LimitException, a subclass of Com\Tecnick\Pdf\Parser\Exception: a dictionary or array that cannot be tokenized has no usable value to fall back to.

Reaching max_resolution_depth, or meeting a reference cycle, leaves the reference unresolved and lets the rest of the document parse. Both cases are recorded and readable after parse():

One warning is reported per kind of event, with the number of occurrences and the first object affected. Setting strict_limits turns the first such event into a LimitException instead, and getLimitWarnings() then always returns an empty list.


Installation


Quick Start


Development


Packaging

For system packages, bootstrap with:


Contributing

Contributions are welcome. Please review SECURITY.md.


All versions of tc-lib-pdf-parser with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-pcre Version *
tecnickcom/tc-lib-pdf-filter Version ^2.11
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-parser contains the following files

Loading the files please wait ...