ctbuh / wkhtmltopdf-api-php-client
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ctbuh/wkhtmltopdf-api-php-client
Requires
- ext-curl: *
- ext-json: *
This package is auto-updated.
Last update: 2025-09-29 02:21:30 UTC
README
Installation
composer require ctbuh\wkhtmltopdf-api-php-client
API
convert($bytes, $options = array())
inline($bytes, $options = array(), $filename = 'document.pdf')
download($bytes, $options = array(), $filename = 'document.pdf')
Visual Demo
https://wkhtmltopdf.api.ctbuh.org/
Code Examples
use ctbuh\PdfApi\PdfApi; $pdf = new Pdf(); $pdf->inline("<h1>hello world</h1>"); // script stops $html = view('admin.membership-certificates.document', $data)->render(); $pdf = new PdfApi(); $pdf->inline($html, [ 'orientation' => 'Landscape', 'page-size' => 'letter', 'no-outline' => true ]);
Other PDF stuff
wget https://github.com/coherentgraphics/cpdf-binaries/raw/master/Linux-Intel-64bit/cpdf chmod +x cpdf sudo cp cpdf /usr/local/bin/