×
[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。
mPDFでPDF作成
1.mPDFのダウンロード
http://www.mpdf1.com/mpdf/index.php?page=Download
からVER.6.0
mpdf60フォルダのWWWルートに配置
/home/xxxxxx/www
2.マニュアルの確認
https://mpdf.github.io/
3.サンプルを作って実行
1.mPDFのダウンロード
http://www.mpdf1.com/mpdf/index.php?page=Download
からVER.6.0
mpdf60フォルダのWWWルートに配置
/home/xxxxxx/www
2.マニュアルの確認
https://mpdf.github.io/
3.サンプルを作って実行
$html= '';
$html=$html.'<form method="post" action ="tokuta_mmain.php">';
$html=$html.'<table>';
$html=$html.'<tr>';
$html=$html.'<th>選択</th>';
$html=$html.'<th>コード</th>';
$html=$html.'<th>取引先名</th>';
$html=$html.'</tr>';
include("mpdf60/mpdf.php");
$mpdf=new mPDF('ja', 'A4');
$mpdf->ignore_invalid_utf8 = true;
$stylesheet = file_get_contents("style.css");
$mpdf->WriteHTML($stylesheet,1);
$mpdf->WriteHTML($html);
$mpdf->Output();
4.バーコードを印字 NE-7とQR
5.改ページ
4.バーコードを印字 NE-7とQR
$html=$html.'<barcode code="A34698735A" type="CODABAR" />';
$html=$html.'<barcode code="A3456789A123" type="QR" class="barcode" size="0.8" error="M" />';
5.改ページ
$mpdf->AddPage();
6。テキストの書き出し
$mpdf->Write(12,$dt);
$mpdf->Text(100, 100, 'テストですよ');
7.マニュアルは
http://www.fpdf.org/
6。テキストの書き出し
$mpdf->Write(12,$dt);
$mpdf->Text(100, 100, 'テストですよ');
7.マニュアルは
http://www.fpdf.org/
PR