raftx24/docer

a package for create pdf from HTML

1.4.0 2019-03-28 17:41 UTC

This package is auto-updated.

Last update: 2024-04-29 04:00:08 UTC


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");