2017-08-03 9 views

答えて

0
私はそれはあなたが、ユーザーがそれを表示したり、それをダウンロード枯れ選択することができますhtmlファイルを取得し、PDFファイルでそれを印刷する使用DOMPDFを言うでしょうし、あなたが置くことができ

htmlファイル内のphp変数ドキュメントから githubのリンク https://github.com/dompdf/dompdf

// reference the Dompdf namespace 
use Dompdf\Dompdf; 

// instantiate and use the dompdf class 
$dompdf = new Dompdf(); 
$dompdf->loadHtml('hello world'); 

// (Optional) Setup the paper size and orientation 
$dompdf->setPaper('A4', 'landscape'); 

// Render the HTML as PDF 
$dompdf->render(); 

// Output the generated PDF to Browser 
$dompdf->stream(); 
関連する問題