We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Wraps PDF printing using puppeteer
Extends: Task
INTERNAL Checks if puppeteer is installed correctly
Helper method to detect active puppeteer calls. May be used from within page renderer to detect if the call is from this task.
Definition: public static function IsPrinterCall()
public static function IsPrinterCall()
Returns: bool true or false
bool
Runs PDF creation.
Definition: public function Run($args)
public function Run($args)
Returns: void
void
Parameters:
array $args
Actual PDF creation. This may be used sync from PHP code or async via Task.
Definition: public static function Url2Pdf($url, $options)
public static function Url2Pdf($url, $options)
Returns: string|false Returns the PDF filename or false on error
string|false
string $url The URL to render as PDF
string $url
array $options Some parameters are available to be specified as options. See source code for details.
array $options