In put and out put data are getting different on pdf file generated through fpdf.
input: uçak is Turkish word
Output: uçak is Turkish word
What I am doing:
- Convert arial.tft to .z and define php from http://fpdf.fruit-lab.de/index.php?id=3
- Map: cp1254 for Turkish language.
- Download only .z and define php file.
- Both are copied in the font folder in fpdf.
I am using following code:
<?php
require('fpdf.php');
$pdf = new FPDF();
$pdf->AddFont('ArialMT','','ArialMT.php');
$pdf->AddPage();
$pdf->SetFont('ArialMT','',35);
$pdf->Write(10,'uçak is Turkish word');
$pdf->Output();
?>
which results in the following output:
uçak is Turkish word
Where am I making mistake? Do I have to do any additional task?