Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('fpdf.php');
- header('Content-Type: text/html; charset=utf-8');
- $pdf = new FPDF('P','mm','A4');
- $pdf->AddPage();
- $pdf->SetFont('Times','',12);
- $pdf->SetY(+24);
- $pdf->SetX(-80);
- //$a = $pdf->GetPageWidth();
- $tekst = 'Kraków, dn. 28.05.2000';
- $gotowy = iconv("ISO-8859-2","UTF-8",$tekst);
- $pdf->Cell(40,10,$gotowy);
- $pdf->Ln();
- $pdf->Ln();
- $pdf->SetX(-130);
- $tekst = 'Administrator programu MSDN Academic';
- $gotowy = iconv("ISO-8859-2","UTF-8",$tekst);
- $pdf->Cell(40,1,$gotowy);
- $pdf->Ln();
- $pdf->SetX(-130);
- $tekst = 'na Wydziale Matematyczno-Fizyczno-Technicznym';
- $gotowy = iconv("ISO-8859-2","UTF-8",$tekst);
- $pdf->Cell(40,10,$gotowy);
- $pdf->Ln();
- $pdf->Ln();
- $pdf->SetX(-160);
- $pdf->SetFont('Times','B',12);
- $tekst = 'Wniosek o przystąpienie do programu MSDN Imagine';
- $gotowy = iconv("ISO-8859-2","UTF-8",$tekst);
- $pdf->Cell(40,10,$gotowy);
- $pdf->SetFont('Arial','',12);
- $pdf->Ln();
- $pdf->Ln();
- $tekst = 'ąćłóńźż';
- //$gotowy = iconv("UTF-8","Windows-1252",$tekst);
- $pdf->Cell(40,10,$tekst);
- $pdf->Output();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement