<?php
define('FPDF_FONTPATH', 'font/');
include_once('ufpdf.php');
$pdf = new UFPDF();
$pdf->Open();
$pdf->SetTitle("UFPDF is Cool.");
$pdf->SetAuthor('Steven Wittens');
$pdf->AddFont('trado', '', 'trado.php');
$pdf->AddPage();
$pdf->SetFont('trado', '', 18);
// UTF-8 charset
$text = "بسم الله الرØمن الرØيم";
$pdf->Write(12, "UTF-8:\n".$text."\n\n");
require('ArGlyphs.class.php');
$ArabicPDF = new ArGlyphs();
$text = "ÈÓã Çááå ÇáÑÍãä ÇáÑÍíã";
$text = $ArabicPDF->convert($text);
$pdf->Write(12, "ArGlyphs:\n".$text."\n\n");
$pdf->Close();
$pdf->Output();
?>
|