PHP Classes
PHP Classes
elePHPant
Icontem

Notable PHP package: PHP RTF Tools

Recommend this page to a friend!
  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Updated on: 2016-09-22

Posted on:

Categories: Notable Packages

Comparing word processing documents programmatically to see what was changed is a hard problem because you need to parse the documents and determine how to compare them.

This package provides an alternative solution to simplify this task.

Many Word processing documents can export documents in RTF (Rich Text Format). This is a text based format based on marks that identify different values in the documents like fonts, text formatting attributes, colors, etc..

If you save your Word processor documents in the RTF format, this package can easily render the document data in a beautified way that make it easier to compare document using a diff-like text comparison program.

Read this article to learn more details about how this notable PHP package works.


 



The package PHP RTF Tools is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Parse and generate RTF documents using templates

Here follows in more detail what it does:

This package can parse and generate RTF documents using templates.

Currently it provides different classes that can:

- Process RTF word processing documents from files or strings
- Rewrite RTF documents splitting its tags in multiple lines so it can be easy to compare and find differences using diff like utilities
- Extract raw text from
- Extracts raw text from RTF documents with some basic formatting capabilities
- Process RTF document templates with a macro language that suppports:
* Inline variables expansion within the document (variables are supplied by the caller)
* Expressions evaluation and replacement using PHP syntax (for example : date ( 'Y-m-d H:i:s' ))
* IF/ELSEIF/ELSE/ENDIF constructs, to conditionally include text in the output document
* REPEAT/FOR loops that can repeat blocks of text
* FOREACH loops that operate on array values supplied by the caller
- Merges several RTF documents together including using the template processing objects, external files or strings, preserving details like fonts, colors, styles, avoiding page number repetition

It can process large documents with sizes that exceed the available memory.

Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.



You need to be a registered user or login to post a comment

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.



  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)