Login   Register  
PHP Classes
elePHPant
Icontem

File: getrtf.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  >  getrtf.php  >  Download  
File: getrtf.php
Role: Example script
Content type: text/plain
Description: Example of class use
Class: RTF Generator
Create RTF documents from HTML
Author: By
Last change:
Date: 10 years ago
Size: 386 bytes
 

Contents

Class file image Download
<?php
// Example use
include("class_rtf.php");

$rtf = new rtf("rtf_config.php");
$rtf->setPaperSize(5);
$rtf->setPaperOrientation(1);
$rtf->setDefaultFontFace(0);
$rtf->setDefaultFontSize(24);
$rtf->setAuthor("noginn");
$rtf->setOperator("me@noginn.com");
$rtf->setTitle("RTF Document");
$rtf->addColour("#000000");
$rtf->addText($_POST['text']);
$rtf->getDocument();
?>