rtf-html-php
rtf-html-php copied to clipboard
RTF to HTML converter in PHP
I came across a RTF file generated by Microsoft Outlook (inside a winmail.dat/TNEF-file which came attached to a mail), that encloses font names in double Quotes, which makes sense if...
In my use, the default 1 line html output was a problem, i fixed editing HtmlFormater.php putting a \n in front of output tags and works fine.
I'm using your composer to convert a rtf string to html string and in some case my string contain an image, with your converter my images are not encode correctly,...
Anyone care to add support for hyperlinks? E.g. **from RTF:** `{\field{\*\fldinst HYPERLINK "http://www.google.com/"}{\fldrslt search}}` **to HTML:** `search` Cheers
RTF Translation is wrong in this case: `` Result: tf1onttbl0nilcharset0 Microsoft Sans Serif;iewkind40s16 mélange maïs français Expected result: Something like "Mélange maïs français"...
PHP Deprecated Warning – yii\base\ErrorException join(): Passing glue string after array is deprecated. Swap the parameters in `/vendor/henck/rtf-to-html/src/Html/Font.php` line 17
I am getting this error after my rtf document is converted and I'm moving on to a new document to convert ``` $document = new \RtfHtmlPhp\Document($note_object->rtf); $formatter = new \RtfHtmlPhp\Html\HtmlFormatter('UTF-8');...
It's is not working for this sample: ``` {\rtf1\ansi\ansicpg1252\deff0\deflang1046{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}} {\colortbl ;\red0\green0\blue0;} {\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\cf1\f0\fs16 Blusa Alongada decote V, manga longa.\par Shape contornando o corpo, aplica\'e7\'e3o do s\'edmbolo...
We have throw new Exception in Document.php but PHP 7.2 or more with namespace neeed. ``` $err = "Parse error: Tried to read past end of input; RTF is probably...
can find solution for me content table not convert in this script.