PHP Class Pimcore\Web2Print\Processor\WkHtmlToPdf

Inheritance: extends Pimcore\Web2Print\Processor
显示文件 Open project: pimcore/pimcore

Public Methods

Method Description
__construct ( string $wkhtmltopdfBin = null, array $options = null )
fromStringToFile ( string $htmlString, string $dstFile = null ) : string
fromStringToStream ( string $htmlString ) : string
getOptions ( ) : string
getProcessingOptions ( )
getTempFileUrl ( )
setOptions ( string $options ) : void

Protected Methods

Method Description
buildPdf ( PrintAbstract $document, $config )
convert ( $srcUrl, string $dstFile = null ) : string

Method Details

__construct() public method

public __construct ( string $wkhtmltopdfBin = null, array $options = null )
$wkhtmltopdfBin string
$options array key => value

buildPdf() protected method

protected buildPdf ( PrintAbstract $document, $config )
$document Pimcore\Model\Document\PrintAbstract

convert() protected method

protected convert ( $srcUrl, string $dstFile = null ) : string
$dstFile string
return string

fromStringToFile() public method

public fromStringToFile ( string $htmlString, string $dstFile = null ) : string
$htmlString string
$dstFile string
return string

fromStringToStream() public method

public fromStringToStream ( string $htmlString ) : string
$htmlString string
return string

getOptions() public method

public getOptions ( ) : string
return string

getProcessingOptions() public method

getTempFileUrl() public static method

public static getTempFileUrl ( )

setOptions() public method

public setOptions ( string $options ) : void
$options string
return void