Login   Register  
PHP Classes
elePHPant
Icontem

File: source_rtf.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Thomas Graham  >  RTF Generator  >  source_rtf.php  >  Download  
File: source_rtf.php
Role: Configuration script
Content type: text/plain
Description: Source file
Class: RTF Generator
Create RTF documents from HTML
Author: By
Last change:
Date: 2004-08-15 09:37
Size: 771 bytes
 

Contents

Class file image Download
<?php 

// Measurements
// 1 inch = 1440 twips
// 1 cm = 567 twips
// 1 mm = 56.7 twips
$inch 1440;
$cm 567;
$mm 56.7;

// Fonts
$fonts_array = array();
// Array structure - array(
//    "name"        =>    Name given to the font,
//    "family"    =>    [nil, roman, swiss, modern, script, decor, tech, bidi],
//    "charset"    =>    0
// );

$fonts_array[] = array(
    
"name"        =>    "Arial",
    
"family"    =>    "swiss",
    
"charset"    =>    0
);

$fonts_array[] = array(
    
"name"        =>    "Times New Roman",
    
"family"    =>    "roman",
    
"charset"    =>    0
);

$fonts_array[] = array(
    
"name"        =>    "Verdana",
    
"family"    =>    "swiss",
    
"charset"    =>    0
);

$fonts_array[] = array(
    
"name"        =>    "Symbol",
    
"family"    =>    "roman",
    
"charset"    =>    2
);

// Control Words
$control_array = array();
?>