Recommend this page to a friend! |
![]() |
Info | Example | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
![]() ![]() ![]() ![]() | Total: 724 This week: 1 | All time: 4,585 This week: 42![]() |
Version | License | PHP version | Categories | |||
rtftools 1.0.4 | GNU General Publi... | 5.6 | PHP 5, Files and Folders, Text proces..., P... |
Description | Author | |||
This package can parse and generate RTF documents using templates. Innovation Award
|
|
<?php
|
This package provides several classes to handle Rtf data. It has been designed to be able to handle files whose contents are too big to fit into memory. This is why you will see a dichotomy among classes :
It is up to you to decide whether you will have to handle big files. If you are sure that your Rtf contents will always fit into memory, use the RtfString classes. If you are sure that your files may be bigger than the available memory, use the RtfFile classes. This will add some overhead due to file IO (this can more than double the execution time if you have low performance IO subsystem, but I noticed some systems where the difference between the in-memory and file versions are only a few tenths of milliseconds).
This package currently implements the following classes :
All the classes in this package rely on the SearchableFile class (http://www.phpclasses.org/package/9697-PHP-Process-text-files-too-big-to-fit-into-memory.html) that allows to search for contents in files too big to fit into memory. A copy of this class is present in this package for your convenience but note that it may not be the latest release.
All the main class files in this package (RtfBeautifier.phpclass, RtfParser.phpclass and RtfTexter.phpclass) also inherit from the RtfDocument class (RtfDocument.phpclass).
This package depends on the following package, SearchableFile, which allows you to search text data from files too big to fit into memory :
http://www.phpclasses.org/package/9697-PHP-Process-text-files-too-big-to-fit-into-memory.html
For convenience reasons, the SearchableFile.phpclass file has been included here, but note that this may not be the latest version.
The latest Microsoft Rtf format specifications can be downloaded here :
https://www.microsoft.com/en-us/download/details.aspx?id=10725
But you can also consult the excellent book "Rtf pocket guide" from Sean M. Burke :
https://books.google.fr/books/about/RTF_Pocket_Guide.html?id=4N_lVcyyhqMC&redir_esc=y
or visit his page :
http://interglacial.com/~sburke/
If you have problems using one of the RtfTools class, or get strange results, please feel free to contact me at the following address :
christian.vigh@wuthering-bytes.com
Don't hesitate to send me the Rtf documents that caused the failure as attachments in your email ; I will be happy to answer you !
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.