PHP code example of pdfkiwi / php-lib
1. Go to this page and download the library: Download pdfkiwi/php-lib library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pdfkiwi / php-lib example snippets
use PdfKiwi\PdfKiwi;
use PdfKiwi\PdfKiwi;
$pdfKiwi = new PdfKiwi($email, $token);
$pdfKiwi->setPageMargins('10mm', '20mm', '10mm', '20mm');
$pdfKiwi->setOrientation('landscape');
$pdf = $pdfKiwi->convertHtml($html);
bash
$ composer