« Return to Thread: Need help implementing RTF creation

Re: Need help implementing RTF creation

by Sylvie Greverend-3 :: Rate this Message:

Reply to Author | View in Thread

I am sure I am missing a point
But if you accept to install the script docfrac on your server
A script like this
$info = $tikilib->get_info_page($page);
$html = $tikilib->parse_data($info['data'];
write $html on tmp/file1
system('docfrac tmp/file1 tmp/file2');
$rtf = readfiel(tmp/file2)
header(...)
echo $rtf;
And you will see the rtf in your browser.

Am I missing something?
sylvie


On Fri, 2008-07-25 at 08:57 -0400, Pete Jalajas wrote:

> Hi Michael,
>
> Thanks for your note.
>
> Thanks for the reminder.  That prompted me to recall about
> screen-scraping, but then using, in OpenOffice.org Writer (on Ubuntu
> anyway) and MS Word, Edit, Paste Special, HTML Format (I did not get
> an HTML Format option when scraping from Opera on Ubuntu for some
> unknown reason).
>
> So, yes, thanks, that'll suffice in the short term, until we can
> develop an Export-to-RTF option like the PDF-button options that exist
> now.
>
> I would appreciate any guidance that anyone could offer--just point me
> in the right direction.
>
> For example, can someone help me pick the best TW PDF plugin to use as
> a starting point for this HTML2RTF project?  I'll then try to convert
> that to generating RTF instead of PDF (or maybe in addition to...).
>
> Thanks again,
> Pete
>
> On Fri, Jul 25, 2008 at 2:36 AM, Michael Pilling <mlpilling@...> wrote:
> <snip>
> > as for wiki--->Word  - i take it a good old fashioned screen-scrape
> > (from print mode?) is not going to suffice?
>
> > On Fri, Jul 18, 2008 at 10:58 AM, Pete Jalajas <pj08@...> wrote:
> >> I need to implement sending an RTF document to the user's browser so
> >> they can edit it in MS Word.  I see this as very similar to the PDF
> >> creator mods with the littel PDF icon on the top of the wiki pages.
> >>
> >> The docfrac tool seems to be able to do the html-to-rtf rendering fine
> >> from the command line.
> >>
> >> Could someone please help me get started with some skeleton or pseudo-code?
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Tikiwiki-devel mailing list
> Tikiwiki-devel@...
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tikiwiki-devel mailing list
Tikiwiki-devel@...
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

 « Return to Thread: Need help implementing RTF creation

LightInTheBox - Buy quality products at wholesale price!