PHP 클래스 CakePdf\Pdf\Engine\WkHtmlToPdfEngine

상속: extends CakePdf\Pdf\Engine\AbstractPdfEngine
파일 보기 프로젝트 열기: ceeram/cakepdf

보호된 프로퍼티들

프로퍼티 타입 설명
$_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