raftx24 / docer
a package for create pdf from HTML
1.4.0
2019-03-28 17:41 UTC
Requires
- raftx24/docer: ^1.0
README
easily convert any url or html to pdf just add package to your project with running command below
composer require raftx24/docer
then you can use it like belowy
include "vendor/autoload.php";
use Docer\Pdf;
$p = new Pdf();
$url = $p->linkToDownloadablePdf("https://github.com");
$p->linkToPdfFile("https://github.com",time().".pdf");
echo $url.PHP_EOL;
$p->htmlToPdfFile("<h1>hello world!</h1>",time()."2.pdf");