PHP code example of andrej-griniuk / cakephp-html-to-image-view
1. Go to this page and download the library: Download andrej-griniuk/cakephp-html-to-image-view 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/ */
andrej-griniuk / cakephp-html-to-image-view example snippets
Plugin::load('HtmlToImageView', ['bootstrap' => true, 'routes' => true]);
Configure::write('HtmlToImageView.binary', '/another/path/to/wkhtmltoimage');
$this->viewOptions([
'imageOptions' => [
'width' => 250,
'zoom' => 2
],
]);