HTML PARA PDF

// install: "composer require pdfcrowd/pdfcrowd"
require "pdfcrowd.php";

$api = new \Pdfcrowd\HtmlToPdfClient("demo", "ce544b6ea52a5621fb9d55f8b542d14d");
$api->convertUrlToFile("http://example.com", "document.pdf");
Alison Moura