に同じページを変換するか、私は、URLにPOSTメソッドを追加したいは、私はPDFに同じ文書を変換したいPDF
<?php
// include autoloader
require_once 'dompdf/autoload.inc.php';
// reference the Dompdf namespace
use Dompdf\Dompdf;
// instantiate and use the dompdf class
$dompdf = new Dompdf();
$dompdf->loadHtml(file_get_contents('http://localhost/));
// (Optional) Setup the paper size and orientation
$dompdf->setPaper(array(0,0,850,2250), 'landscape');
// Render the HTML as PDF
$dompdf->render();
// Output the generated PDF to Browser
//$dompdf->stream();
// Output the generated PDF (1 = download and 0 = preview)
$dompdf->stream("codex",array("Attachment"=>0));
?>
問題は何ですか? – RiggsFolly
不足している一重引用符がありますか?色のコードは問題があることを示します – RiggsFolly
いいえ問題はありません。このURLを使用してPDFを作成できますが、私はここにPostメソッドを追加したいので、ここからHTMLを追加できます –