Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 6th, 2012  |  syntax: None  |  size: 2.37 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how to control page breaks in tcpdf
  2. $pdf->SetFont("helvetica", "", 9);
  3. $pdf->Cell(4,0,'Versandart','TLR',0,'L',0,'',0, 0,'','T');
  4. $pdf->Cell(8,0,"$model->versandart",'TBLR',0,'R',0,'',0, 0,'','B');
  5. $pdf->SetFont("helvetica", "", 6);
  6. $pdf->Cell(5,0.4,'Hiermit bestätige ich den Auftrag','TLR',1,'R',0,'',0, 0,'','T');
  7. $pdf->SetFont("helvetica", "", 9);
  8. $pdf->Cell(4,0,'Frachtpreis','TLR',0,'L',0,'',0, 0,'','T');
  9. $pdf->Cell(8,0,"$model->versandpreis €",'BLR',0,'R',0,'',0, 0,'','B');
  10. $pdf->Cell(5,0,'','LR',1,'R',0,'',0, 0,'','T');
  11. $pdf->Cell(4,0,'Nachnahmegeb.','TLR',0,'L',0,'',0, 0,'','T');
  12. $pdf->Cell(8,0,"$model->nachnahme €",'BLR',0,'R',0,'',0, 0,'','B');
  13. $pdf->Cell(5,0,'','LR',1,'R',0,'',0, 0,'','T');
  14. $pdf->Cell(4,0,'SPV-Versicherung','TLR',0,'L',0,'',0, 0,'','T');
  15. $pdf->Cell(8,0,"$model->versicherung €",'BLR',0,'R',0,'',0, 0,'','B');
  16. $pdf->SetFont("helvetica", "B", 6);
  17. $pdf->Cell(5,0.4,'Ort, Datum, Unterschrift','BLR',1,'R',0,'',0, 0,'','B');
  18. $pdf->SetFont("helvetica", "", 9);
  19. $pdf->Cell(4,0,'Nettobetrag','TLR',0,'L',0,'',0, 0,'','T');
  20. $pdf->Cell(8,0,$totalSum-($model->vat/100)*$totalSum." €",'BLR',0,'R',0,'',0, 0,'','B');
  21. $pdf->SetFont("helvetica", "", 6);
  22. $pdf->Cell(5,0.4,'Ich erkenne die AGB in der Homepage','TLR',1,'R',0,'',0, 0,'','T');
  23. $pdf->SetFont("helvetica", "", 9);
  24. $pdf->Cell(4,0,"incl. $model->vat% MwSt.",'TLR',0,'L',0,'',0, 0,'','T');
  25. $pdf->Cell(8,0,($model->vat/100)*$totalSum." €",'BLR',0,'R',0,'',0, 0,'','B');
  26. $pdf->SetFont("helvetica", "", 6);
  27. $pdf->Cell(5,0.4,'unter Kontakt nachzulesen hiermit an.','LR',1,'R',0,'',0, 0,'','T');
  28. $pdf->SetFont("helvetica", "", 9);
  29. $pdf->Cell(4,0,'Summe','TLR',0,'L',0,'',0, 0,'','T');
  30. $pdf->Cell(8,0,$totalSum." €",'BLR',0,'R',0,'',0, 0,'','B');
  31. $pdf->SetFont("helvetica", "B", 6);
  32. $pdf->Cell(5,0.4,'','LR',1,'R',0,'',0, 0,'','B');
  33. $pdf->SetFont("helvetica", "", 9);
  34. $pdf->Cell(4,0,'zu bezahlen','TBLR',0,'L',0,'',0, 0,'','T');
  35. $pdf->Cell(8,0,$totalSum-$model->paymentSum." €",'BLR',0,'R',0,'',0, 0,'','B');
  36. $pdf->SetFont("helvetica", "B", 6);
  37. $pdf->Cell(5,0.4,'Ort, Datum, Unterschrift','BLR',1,'R',0,'',0, 0,'','B');
  38. $pdf->Ln();
  39. $pdf->MultiCell(4, 1, 'Hiermit bestätige ich den Auftrag', 'TLR', 'R', 0, 1, '', '', true, 0, false, true, 0, 'T');
  40. $pdf->MultiCell(4, 1, 'Ort, Datum, Unterschrift', 'BLR', 'R', 0, 1, '', '', true, 0, false, true, 0, 'B');
  41.        
  42. <div style="page-break-inside:avoid;">
  43. some non breakable text
  44. </div>