public
|
#
__construct( string $wkhtml2pdf, string $tmpDir = '/tmp', boolean $debug = false )
Parameters
- $wkhtml2pdf
- Path to wkhtmltopdf binary
- $tmpDir
- Path to tmp dir
- $debug
Throws
|
public
WkHtmlToPdf\WkHtmlToPdf
|
#
setInputPath( string $path )
Set input file path.
Parameters
Returns
|
public
WkHtmlToPdf\WkHtmlToPdf
|
#
setInputHtml( string $html )
Set input html.
Parameters
Returns
|
public
WkHtmlToPdf\WkHtmlToPdf
|
#
setOutputPath( string $path )
Set output file path.
Parameters
Returns
|
public
string
|
|
public
WkHtmlToPdf\WkHtmlToPdf
|
#
useRecommendedOptions( )
PnP method to get you going ASAP. Sets margins to 6.3mm,
viewport size to 800x1280, enables low quality and enables media-print if available.
PnP method to get you going ASAP. Sets margins to 6.3mm,
viewport size to 800x1280, enables low quality and enables media-print if available.
Returns
|
public
WkHtmlToPdf\WkHtmlToPdf
|
#
convert( )
Do conversion.
Returns
Throws
|
public
WkHtmlToPdf\WkHtmlToPdf
|
#
enablePrefetch( )
Prefetch html and feed local file to wkhtmltopdf.
Prefetch html and feed local file to wkhtmltopdf.
Returns
|
public
WkHtmlToPdf\WkHtmlToPdf
|
#
disablePrefetch( )
Disable html prefetching.
Disable html prefetching.
Returns
|
public
WkHtmlToPdf\WkHtmlToPdf
|
#
setArg( string $arg, mixed $val = null )
Set argument (works only when constructor param $debug == true).
All pdf generation related args have their dedicated method.
Set argument (works only when constructor param $debug == true).
All pdf generation related args have their dedicated method.
Parameters
Returns
|
public
WkHtmlToPdf\WkHtmlToPdf
|
#
unsetArg( string $arg )
Unset argument (works only when constructor param $debug == true).
All pdf generation related args have their dedicated method.
Unset argument (works only when constructor param $debug == true).
All pdf generation related args have their dedicated method.
Parameters
Returns
|