
テンプレート用のPDFに新たな文字を加えたいです。
laravel上で動かしているのですが、一部文字が反映されなくて困ってます。
$receipt = new FPDI(); //$receipt->SetMargins(0, 0, 0); //$receipt->setPrintHeader(false); //$receipt->setPrintFooter(false); $receipt->AddPage(); $receipt->setSourceFile(public_path() . $temp); $tplIdx = $receipt->importPage(1); $receipt->useTemplate($tplIdx, null, null, null, null, true); $receipt->SetFont('kozminproregular', '', 10); $receipt->SetXY($x, $y); $receipt->Write(0, $word); $receipt->Output('C:/xampp/htdocs/pdf_test/public/pdf_create/sample.pdf', 'F');
ページサイズは297×210mmで横向きのPDFなのですが、Y軸の0~-20までの間だと文字が反映されないのです。ちょうどそこに入れたい文字があるのですが・・原因がよくわからなくて困ってます。どなたかご助力お願いいたします。
なお、上記のコードをクラス分けしてfor文で連続で回して実行しています。

回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2016/11/01 02:26
2016/11/01 03:16
2016/11/01 03:17
退会済みユーザー
2016/11/01 06:22