PHP Classes

File: pdf_example/pdf_example.php

Recommend this page to a friend!
  Classes of Khaled Al-Shamaa  >  ArGlyphs  >  pdf_example/pdf_example.php  >  Download  
File: pdf_example/pdf_example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: ArGlyphs
Convert Arabic text to Unicode for rendering
Author: By
Last change:
Date: 16 years ago
Size: 608 bytes


Class file image Download
('FPDF_FONTPATH', 'font/');

$pdf = new UFPDF();
$pdf->SetTitle("UFPDF is Cool.");
$pdf->SetAuthor('Steven Wittens');
$pdf->AddFont('trado', '', 'trado.php');
$pdf->SetFont('trado', '', 18);

// UTF-8 charset
$text = "بسم الله الرحمن الرحيم";
$pdf->Write(12, "UTF-8:\n".$text."\n\n");

$ArabicPDF = new ArGlyphs();
$text = " ";
$text = $ArabicPDF->convert($text);
$pdf->Write(12, "ArGlyphs:\n".$text."\n\n");


For more information send a message to info at phpclasses dot org.