tecnickcom/tc-lib-pdf-graph
Low-level geometric drawing and transformation primitives for PDF content streams. Compose paths, lines, curves, clipping, stroke/fill styles, gradients and shading, plus matrix transforms and coordinate helpers, with PDF/A-aware behavior.
Geometric drawing and transformation primitives for PDF content streams.
💖 Part of the tc-lib-pdf / TCPDF ecosystem (100M+ installs). Sponsor its maintenance →
tc-lib-pdf-graph implements low-level drawing operations used to build PDF graphic content.
It exposes the primitives needed to compose paths and painting operations while keeping the API close to PDF graphics operators. This makes it suitable as a foundation layer for charting, vector drawing, and custom layout engines.
| Namespace | \Com\Tecnick\Pdf\Graph |
| Author | Nicola Asuni [email protected] |
| License | GNU LGPL v3 - see LICENSE |
| API docs | https://tcpdf.org/docs/srcdoc/tc-lib-pdf-graph |
| Packagist | https://packagist.org/packages/tecnickcom/tc-lib-pdf-graph |
zlibcomposer require tecnickcom/tc-lib-pdf-graph
<?php
require_once __DIR__ . '/vendor/autoload.php';
$draw = new \Com\Tecnick\Pdf\Graph\Draw(
1.0,
210,
297,
new \Com\Tecnick\Color\Pdf(),
new \Com\Tecnick\Pdf\Encrypt\Encrypt(),
false
);
echo $draw->getClippingRect(10, 10, 50, 20);
make deps
make help
make qa
make rpm
make deb
For system packages, bootstrap with:
require_once '/usr/share/php/Com/Tecnick/Pdf/Graph/autoload.php';
Contributions are welcome. Please review CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md.
How can I help you explore Laravel packages today?