Hi anam, I have used your package. But my project showing "Exception in Runner.php line 164: Binary does not exist" error.
routes.php
Route::post('/phantommagick', function(){
// base_path() is //"C:\xampp\htdocs\careertag"
$conv = new \Anam\PhantomMagick\Converter();
$conv->make('http://google.com')
->setBinary(base_path() . "/phantomjs-2.0.0-windows/bin/phantomjs.exe")
->toPdf()
->download('google.pdf');
});
detailed error
in Runner.php line 164
at Runner->pickBinary() in Runner.php line 100
at Runner->run('C:\xampp\htdocs\careertag\vendor\anam\phantommagick\src/scripts/phantom_magick.js', 'http://google.com', 'C:\Users\user-pc\AppData\Local\Temp/1538756026716c9129.pdf', array('format' => 'A4', 'zoomfactor' => '1', 'quality' => '70', 'orientation' => 'portrait', 'margin' => '1cm')) in Converter.php line 619
at Converter->saveLocal('C:\Users\user-pc\AppData\Local\Temp/1538756026716c9129.pdf') in Converter.php line 595
at Converter->save('C:\Users\user-pc\AppData\Local\Temp/1538756026716c9129.pdf') in Converter.php line 528
at Converter->download('google.pdf') in routes.php line 51
at RouteServiceProvider->{closure}()