PHP Class CakePdf\Pdf\Engine\DomPdfEngine

Inheritance: extends CakePdf\Pdf\Engine\AbstractPdfEngine
Datei anzeigen Open project: ceeram/cakepdf

Public Methods

Method Description
output ( ) : string Generates Pdf from html

Protected Methods

Method Description
_createInstance ( array $options ) : Dompdf\Dompdf Creates the Dompdf instance.
_output ( Dompdf\Dompdf $DomPDF ) : string Generates the PDF output.
_render ( CakePdf $Pdf, Dompdf\Dompdf $DomPDF ) : Dompdf\Dompdf Renders the Dompdf instance.

Method Details

_createInstance() protected method

Creates the Dompdf instance.
protected _createInstance ( array $options ) : Dompdf\Dompdf
$options array The engine options.
return Dompdf\Dompdf

_output() protected method

Generates the PDF output.
protected _output ( Dompdf\Dompdf $DomPDF ) : string
$DomPDF Dompdf\Dompdf The Dompdf instance from which to generate the output from.
return string

_render() protected method

Renders the Dompdf instance.
protected _render ( CakePdf $Pdf, Dompdf\Dompdf $DomPDF ) : Dompdf\Dompdf
$Pdf CakePdf\Pdf\CakePdf The CakePdf instance that supplies the content to render.
$DomPDF Dompdf\Dompdf The Dompdf instance to render.
return Dompdf\Dompdf

output() public method

Generates Pdf from html
public output ( ) : string
return string raw pdf data