tecnickcom/tc-lib-pdf-page
Manages page sizes, orientation, and box definitions (MediaBox, CropBox, TrimBox) for PDF documents. Part of the tc-lib-pdf/TCPDF ecosystem, it provides deterministic page geometry and unit conversion helpers for multi-page layouts.
NOASSERTION. That discrepancy alone warrants a legal check before it enters a distributed product.Consider it when:
tc-lib-pdf / TCPDF ecosystem; this module is a cog in that machine, not a standalone win.zlib, uses Composer, and your team is comfortable reading source and typing exceptions rather than relying on tutorials.Look elsewhere when:
Com\Tecnick\Color and Com\Tecnick\Pdf\Encrypt, so standalone use drags in sibling dependencies.To executives: This is a small, free, focused component from the maintainers of TCPDF, a PDF library with a very large installed base. It lets us support print-aware documents — custom page sizes, mixed orientation, crop/trim boxes — without building geometry logic ourselves, which shortens time-to-market for print and label features. The trade-offs are real but manageable: it's maintained by essentially one person, has almost no independent adoption, and its license metadata needs a legal check before we ship it in a distributed product. Recommendation: pilot it inside one non-critical document feature, pin the version, and keep it behind our own abstraction so we can replace it if maintenance stalls.
To engineering: Clean namespaced PHP 8.2 library, Composer-installable, typed exceptions for invalid layout parameters, API docs and CI with coverage. It is a geometry/model layer only — you still need a renderer and composer above it. Expect to read source rather than docs. Wrap it: don't let Com\Tecnick\Pdf\Page types leak across our codebase, and budget a small amount of time for upgrades and potential patching. If we're not already on tc-lib-pdf, adopting this alone is not worth the sibling dependencies.
How can I help you explore Laravel packages today?