PHP Wrapper for callas pdfChip 2022-03-10 23:00 UTC

This package is auto-updated.

Last update: 2024-05-11 03:49:33 UTC


A PHP wrapper class for callas pdfChip.


This library is installed via Composer. To install, use composer require pointybeard/pdfchip or add "pointybeard/pdfchip": "^1.0" to your composer.json file.

And run composer to update your dependencies:

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

Using the Mock Executable

If the system you are running code on does not have pdfChip installed or it cannot be activiated, use the mock command bin/pdfchip instead. It emulates --help, --status, and processing input html.

To do this, make bin/pdfchip executable and place it in your system path (e.g. symlinking to /usr/local/bin).

Now, the pdfchip library will call this mock executable instead. Note you will always get the same pdf output regardless of input.


This library requires pdfChip and PHP 7.4 or later.


Here is a basic usage example:



include "vendor/autoload.php";

use pointybeard\PdfChip;

// Print version information
print PdfChip\PdfChip::version() . PHP_EOL;

// Generate a PDF from input files
    ["test.html", "test2.html"],
        "maxpages" => 1,
        "zoom-factor" => 3,
        "remote-content" => "off",
        "licensetype" => "all",
        "underlay" => ["file.pdf", "file2.pdf"]

var_dump($o, $e);

See pdfChip --help on the command line to see help information for each of the options it supports.


If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.


We encourage you to contribute to this project. Please check out the Contributing documentation for guidelines about how to get involved.


"PHP Wrapper for callas pdfChip" is released under the MIT License.