doudun3910 2019-06-24 01:07
浏览 51

使用rtf2html php库的表转换问题

I´m trying to use https://github.com/henck/rtf-html-php/issues which seems to be a very nice rtf to html conversor written purely in PHP

But I´m having an issue with rtf document which has inside some text and very simple tables. When I try to convert document, tables simply dissapear, but rest of text conversions are done perfectly (styles, paragrafs, and so on).

As far as I have seen on developer site, seems that this issue it´s only happening to me, as far as no other people using this php library, has no issue with tables on rtf to html document conversion.

I´ve wrote on github issues developer page, but I had no response with it.

has some one any idea about table issues, using this library?

Thank you so much in advanced

I´d tried to change mbstring settings on php.ini, I´d used different rtf documents, and of course I´d tried to change RtfHtml enconding to ansi, utf-8, and so on...but I´m getting same result.

Conversion is being doing using example code that it´s inclued on developer page, which is:

$fo //path to rtf file  
$reader = new RtfReader();
$formatter = new RtfHtml();
$rtf = file_get_contents($fo);
$cb = $reader->Parse($rtf)

$formatter->Format($reader->root);
$converted=$formatter->Format($reader->root);
echo $converted;
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 我的数据无法存进链表里
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
    • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
    • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
    • ¥15 如何在炒股软件中,爬到我想看的日k线
    • ¥15 seatunnel 怎么配置Elasticsearch
    • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
    • ¥15 (标签-MATLAB|关键词-多址)
    • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
    • ¥500 52810做蓝牙接受端