PHP Classes

RTF Generator: Create RTF documents from HTML

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (15)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 45%Total: 19,158 This week: 1All time: 39 This week: 105Down
Version License Categories
rtfgenerator 1.0.0GNU General Publi...HTML, Files and Folders, Text processing
Description 

Author

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.

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
Picture of Thomas Graham
Name: Thomas Graham <contact>
Classes: 2 packages by
Country: United Kingdom
Innovation award
Innovation award
Nominee: 2x

Recommendations

Recommendation for a PHP class to convert rtf to pdf
I need a php open-source library that can convert PDF to RTF

  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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:19,158
This week:1
All time:39
This week:105Down
User Ratings User Comments (6)
 All time
Utility:66%StarStarStarStar
Consistency:67%StarStarStarStar
Documentation:-
Examples:56%StarStarStar
Tests:-
Videos:-
Overall:45%StarStarStar
Rank:3216
 
usless code, does not work at all
12 years ago (harpreet bhatia)
0%Star
good
12 years ago (jigs)
67%StarStarStarStar
It's very basic.
13 years ago (Luke)
22%StarStar
A good class that has saved me a lot of hassle with RTF gener...
14 years ago (Igor Zinovev)
67%StarStarStarStar
If it works would be really really useful.
15 years ago (Thales Jacobi)
55%StarStarStar
Very few tags are supported, doesn't work for <table> and oth...
15 years ago (sona)
25%StarStar