require_once __DIR__ . "/../vendor/autoload.php";
$params = json_decode(base64_decode($argv[1]), true);
-$p = new Process($params['out'], $params['page'], $params['resolutionRatio'], $params['mobileRatio'], $params['format'], $params['resolution'], $params['withText'], $params['withGraphics'], $params['version'], $params['force']);
+$p = new Process($params['out'], $params['page'], $params['resolutionRatio'], $params['mobileRatio'], $params['format'], $params['resolution'], $params['withGraphics'], $params['withText'], $params['version'], $params['force']);
echo $p->process();
\ No newline at end of file
public function __construct($out, $page, $resolutionRatio, $mobileRatio, $format = 'jpg', $resolution = 150, $withGraphics = true, $withTexts = true, $version = 'html', $force = false)
{
- $this->filespath = realpath(__DIR__ . '/../files/');
$this->setOut($out);
$this->setPage($page);
$this->setForce(!!$force);