PHP Класс CakePdf\Pdf\Engine\WkHtmlToPdfEngine

Наследование: extends CakePdf\Pdf\Engine\AbstractPdfEngine
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_binary string Path to the wkhtmltopdf executable binary

Открытые методы

Метод Описание
__construct ( CakePdf $Pdf ) Constructor
output ( ) : string Generates Pdf from html

Защищенные методы

Метод Описание
_exec ( string $cmd, string $input ) : string Execute the WkHtmlToPdf commands for rendering pdfs
_getCommand ( ) : string Get the command to render a pdf

Описание методов

__construct() публичный Метод

Constructor
public __construct ( CakePdf $Pdf )
$Pdf CakePdf\Pdf\CakePdf CakePdf instance

_exec() защищенный Метод

Execute the WkHtmlToPdf commands for rendering pdfs
protected _exec ( string $cmd, string $input ) : string
$cmd string the command to execute
$input string Html to pass to wkhtmltopdf
Результат string the result of running the command to generate the pdf

_getCommand() защищенный Метод

Get the command to render a pdf
protected _getCommand ( ) : string
Результат string the command for generating the pdf

output() публичный Метод

Generates Pdf from html
public output ( ) : string
Результат string raw pdf data

Описание свойств

$_binary защищенное свойство

Path to the wkhtmltopdf executable binary
protected string $_binary
Результат string