phantommagick
phantommagick copied to clipboard
Laravel save but I can't see any file
I use this package in my project (Laravel) but I don't see any file.
$conv = new \Anam\PhantomMagick\Converter();
$conv->setBinary(base_path('vendor/anam/phantomjs-linux-x86-binary/bin/phantomjs'));
$conv->source('<h1>Title</h1><p>Hello.</p>')
->toPdf()
->save(public_path('tests/google.pdf'));
$conv return null.