PHP Classes

RTF Generator: Create RTF documents from HTML

Recommend this page to a friend!

  Author Author  
Picture of Thomas Graham
Name: Thomas Graham <contact>
Classes: 2 packages by
Country: United Kingdom
Age: 36
All time rank: 675 in United Kingdom
Week rank: 587 Down21 in United Kingdom Down
Innovation award
Innovation award
Nominee: 2x

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This is a class for creating RTF document files from HTML.

RTF is a popular rich text format meant for interchange of documents between any word processor program.

The class parses and converts to RTF various HTML tags, such as:

<strong>, <em>, <u>, <strike>, <ul>, <li>, <br>, <p>, <h1>, <h2>, <h3>

An example script is included to implement a Web based WYSIWYG editor that saves documents in RTF format.

  Classes of Thomas Graham  >  RTF Generator  >  Download Download .zip .tar.gz  >  Support forum Support forum (15)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: RTF Generator
Base name: rtfgenerator
Description: Create RTF documents from HTML
Version: 1.0.0
PHP version: -
License: GNU General Public License (GPL)
All time users: 19130 users
All time rank: 40
Week users: 0 users
Week rank: 491 Equal
  Groups   Rate classes User ratings   Applications   Files Files  

Group folder image HTML HTML generation and processing View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes

  Innovation Award  
PHP Programming Innovation award nominee
August 2004
Number 3

Prize: One book of choice by SAMS
RTF is a rich text document format used by many word processing programs for interchange of documents. RTF documents can be read by most word processing programs.

This class provides a solution for generating RTF documents from formatted text definition based on a subset of HTML tags making it possible to generate documents that can be read, edited or printed in many different platforms.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (66%) Sufficient (67%) - Not sure (57%) - - Not sure (45%) 2696
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Plain text file class_rtf.php Class The class source file
Accessible without login Plain text file getrtf.php Example Example of class use
Accessible without login HTML file index.html Example Form example
Accessible without login Plain text file rtf_config.php Conf. Default config file
Accessible without login Plain text file source_rtf.php Conf. Source file

Install with Composer Install with Composer - Download Download all files: rtfgenerator.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.