PHP Classes

RTF Generator: Create RTF documents from HTML

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 45%Total: 19,165 All time: 39 This week: 41Down
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
Age: 38
All time rank: 675 in United Kingdom
Week rank: 195 Down8 in United Kingdom Down
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 (5)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:19,165
This week:0
All time:39
This week:41Down
User Ratings User Comments (6)
 All time
Utility:66%StarStarStarStar
Consistency:67%StarStarStarStar
Documentation:-
Examples:56%StarStarStar
Tests:-
Videos:-
Overall:45%StarStarStar
Rank:3322
 
usless code, does not work at all
12 years ago (harpreet bhatia)
0%Star
good
13 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.
16 years ago (Thales Jacobi)
55%StarStarStar
Very few tags are supported, doesn't work for <table> and oth...
16 years ago (sona)
25%StarStar