Ich möchte das gleiche Dokument in PDF konvertieren oder ich will post-Methode in url hinzufügen gerade mag:die gleiche Seite zu 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));
?>
Richtig, so was ist das Problem? – RiggsFolly
Siehst du das fehlende einfache Zitat? Die Farbcodierung sagt Ihnen, es gibt ein Problem – RiggsFolly
Nein, es gibt kein Problem, ich kann ein PDF mit dieser URL erstellen, aber ich möchte Post-Methode hier hinzufügen, so kann ich URL von HTML hier hinzufügen –