Avec FPDF, il suffit de donner le chemin du fichier dans la méthode output()
DOnc je pensais que cela marcherait :
$pdf = $dompdf->output("$chemin_de_ton_fichier");
Sinon, j'ai trouver cela sur google :
------------------------------------------------------------------------------------------
Q: How do I save a PDF to disk?
A: If you are using the included dompdf.php script you can pass it the "save_file" option in conjunction with the "output_file" option.
If you are using the DOMPDF class, you can save the generated PDF by calling $dompdf->output():
require_once("dompdf_config.inc.php");
$html =
'<html><body>'.
'<p>Foo</p>'.
'</body></html>';
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
// The next call will store the entire PDF as a string in $pdf
$pdf = $dompdf->output();
// You can now write $pdf to disk, store it in a database or stream it
// to the client.
file_put_contents("saved_pdf.pdf", $pdf);
//Note that typically dompdf->stream() and dompdf->output() are mutually exclusive.
----------------------------------------------------------------------------------------------------
vu sur
http://www.digitaljunkies.ca/dompdf/faq.php