Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pointybeard/pdfchip
A PHP wrapper class for callas pdfChip (https://www.callassoftware.com/en/products/pdfchip).
https://github.com/pointybeard/pdfchip
Last synced: about 1 month ago
JSON representation
A PHP wrapper class for callas pdfChip (https://www.callassoftware.com/en/products/pdfchip).
- Host: GitHub
- URL: https://github.com/pointybeard/pdfchip
- Owner: pointybeard
- License: other
- Created: 2021-07-28T04:38:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-10T23:00:40.000Z (over 2 years ago)
- Last Synced: 2024-09-24T16:12:08.439Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 39.1 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# PHP Wrapper for callas pdfChip
A PHP wrapper class for [callas pdfChip](https://www.callassoftware.com/en/products/pdfchip).
## Installation
This library is installed via [Composer](http://getcomposer.org/). 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.
### Requirements
This library requires pdfChip and PHP 7.4 or later.
## Usage
Here is a basic usage example:
```php
1,
"zoom-factor" => 3,
"remote-content" => "off",
"licensetype" => "all",
"use-system-proxy",
"underlay" => ["file.pdf", "file2.pdf"]
],
$o,
$e
);var_dump($o, $e);
```See `pdfChip --help` on the command line to see help information for each of the options it supports.
## Support
If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/pointybeard/pdfchip/issues),
or better yet, fork the library and submit a pull request.## Contributing
We encourage you to contribute to this project. Please check out the [Contributing documentation](https://github.com/pointybeard/pdfchip/blob/master/CONTRIBUTING.md) for guidelines about how to get involved.
## License
"PHP Wrapper for callas pdfChip" is released under the [MIT License](http://www.opensource.org/licenses/MIT).