Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.15 KB | None | 0 0
  1. <?php
  2.  
  3. require('fpdf.php');
  4. header('Content-Type: text/html; charset=utf-8');
  5.  
  6.  
  7.  
  8. $pdf = new FPDF('P','mm','A4');
  9.  
  10. $pdf->AddPage();
  11.  
  12. $pdf->SetFont('Times','',12);
  13.  
  14. $pdf->SetY(+24);
  15.  
  16. $pdf->SetX(-80);
  17.  
  18. //$a = $pdf->GetPageWidth();
  19.  
  20.  
  21.  
  22. $tekst = 'Kraków, dn. 28.05.2000';
  23.  
  24. $gotowy = iconv("ISO-8859-2","UTF-8",$tekst);
  25.  
  26. $pdf->Cell(40,10,$gotowy);
  27.  
  28. $pdf->Ln();
  29.  
  30. $pdf->Ln();
  31.  
  32.  
  33.  
  34. $pdf->SetX(-130);
  35.  
  36. $tekst = 'Administrator programu MSDN Academic';
  37.  
  38. $gotowy = iconv("ISO-8859-2","UTF-8",$tekst);
  39.  
  40. $pdf->Cell(40,1,$gotowy);
  41.  
  42. $pdf->Ln();
  43.  
  44.  
  45.  
  46.  
  47.  
  48. $pdf->SetX(-130);
  49.  
  50. $tekst = 'na Wydziale Matematyczno-Fizyczno-Technicznym';
  51.  
  52. $gotowy = iconv("ISO-8859-2","UTF-8",$tekst);
  53.  
  54. $pdf->Cell(40,10,$gotowy);
  55.  
  56. $pdf->Ln();
  57.  
  58. $pdf->Ln();
  59.  
  60.  
  61.  
  62. $pdf->SetX(-160);
  63.  
  64. $pdf->SetFont('Times','B',12);
  65.  
  66. $tekst = 'Wniosek o przystąpienie do programu MSDN Imagine';
  67.  
  68. $gotowy = iconv("ISO-8859-2","UTF-8",$tekst);
  69.  
  70. $pdf->Cell(40,10,$gotowy);
  71.  
  72. $pdf->SetFont('Arial','',12);
  73.  
  74. $pdf->Ln();
  75.  
  76.  
  77.  
  78.  
  79.  
  80. $pdf->Ln();
  81.  
  82. $tekst = 'ąćłóńźż';
  83.  
  84. //$gotowy = iconv("UTF-8","Windows-1252",$tekst);
  85.  
  86. $pdf->Cell(40,10,$tekst);
  87.  
  88. $pdf->Output();
  89.  
  90. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement