📅  最后修改于: 2022-03-11 14:53:01.037000             🧑  作者: Mango
// install: "composer require pdfcrowd/pdfcrowd"
require "pdfcrowd.php";
$api = new \Pdfcrowd\HtmlToPdfClient("demo", "ce544b6ea52a5621fb9d55f8b542d14d");
$api->convertUrlToFile("http://example.com", "document.pdf");