Advertisement
Eather

PDF with Bangla Title

Jun 17th, 2015
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.05 KB | None | 0 0
  1. <?php
  2. include_once 'functions/mpdf/mpdf.php';
  3. ?>
  4. <?php
  5.  
  6. set_time_limit(0);
  7. $pdf = new mPDF();
  8.  
  9. //Open file
  10. $pdf->Open();
  11.  
  12. //Disable automatic page break
  13. $pdf->SetAutoPageBreak(false);
  14.  
  15. //Add first page
  16. $pdf->AddPage();
  17.  
  18. //set initial y axis position per page
  19. $y_axis_initial = 25;
  20.  
  21. //Set Row Height
  22. $row_height = 6;
  23. $y_axis = 25;
  24.  
  25.  
  26. //initialize counter
  27. $i = 0;
  28.  
  29. //Set maximum rows per page
  30. $max = 30;
  31.  
  32. //print column titles for the actual page
  33. $pdf->SetFillColor(232, 232, 232);
  34. $pdf->AddFont('solaimanlipi', '', 'solaimanlipi.ttf', true);
  35. $pdf->SetFont('solaimanlipi', '', 11);
  36. $pdf->SetY($y_axis_initial);
  37. $pdf->SetX(25);
  38. $pdf->Cell(30, 6, "0x9B8 0x9CD 0x9A5 0x9BE 0x9A8", 1, 0, 'C', 1);
  39. $pdf->Cell(30, 6, 'মোট লিংক', 1, 0, 'C', 1);
  40. $pdf->Cell(30, 6, 'তথ্য নেই', 1, 0, 'C', 1);
  41. $pdf->Cell(30, 6, 'ভুল লিংক', 1, 0, 'C', 1);
  42. $pdf->Cell(30, 6, 'ট্যাব নাই', 1, 0, 'C', 1);
  43. $pdf->Cell(30, 6, 'অসম্পূর্ণতা', 1, 0, 'C', 1);
  44.  
  45. $pdf->Output('test.pdf', 'F');
  46. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement