|
|
@@ -29,7 +29,7 @@ use Yii;
|
|
|
use common\components\util;
|
|
|
use wkhtmltox\PDF\Converter as PDFConverter;
|
|
|
use wkhtmltox\PDF\Object as PDFObject;
|
|
|
-use wkhtmltox\Image\Converter as ImageConverter;
|
|
|
+use wkhtmltox\Image\Converter;
|
|
|
|
|
|
|
|
|
class TestController extends BaseController
|
|
|
@@ -50,12 +50,13 @@ class TestController extends BaseController
|
|
|
// file_get_contents("http://www.google.co.uk")));
|
|
|
// $converter->convert();
|
|
|
|
|
|
- $converter = new ImageConverter(null, [
|
|
|
+ $c = new Converter(null, [
|
|
|
"fmt" => "png",
|
|
|
"in" => "https://www.baidu.com",
|
|
|
"out" => "test.png"
|
|
|
]);
|
|
|
- $converter->convert();
|
|
|
+ var_dump($c);
|
|
|
+ //$c->convert();
|
|
|
|
|
|
}
|
|
|
|