PHP Package: mikehaertl/php-pdftk

PHP library for working with PDFs using the PDFtk command-line tool. Easily merge, split, watermark, rotate, and more.

Current Version: 0.14.2
Last Updated: 2025-10-01
PHP Requirement: >=8.1
Dependencies:
mikehaertl/pdftk
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

PHP-PDFTK is a powerful PHP library that provides seamless integration with the PDFtk command-line tool. This library empowers developers to manipulate PDF files with ease, offering functionalities such as merging, splitting, watermarking, rotating, and more. Enhance your PDF processing capabilities with PHP-PDFTK.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 0.14.2

Download Download v0.14.2

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/mikehaertl/php-pdftk/0.14.2/loader.php';
require_once 'libs/mikehaertl/pdftk/{lib_version}/loader.php';

use Mikehaertl\PdfTk\Pdf;

$obj = new Pdf();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.