|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Need help implementing RTF creationHi all,
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? To get started, I guess, what is the best way to get the little PDF icon on my wiki pages so that I can see how it works? I see a few different mods available. (I tried to install html2pdf mod but it gives me "lib/html2pdf/classes/org/active-link to lib/html2pdf/classes/org/active-link impossible to copy".) Thanks! Pete ------------------------------------------------------------------------- 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 |
|
|
Re: Need help implementing RTF creationHI Pete,
I've experienced difficulties in the past with MSWord-->wiki - in once case we were trying to translate some scientific papers into an article. The FCK editor now does a reasonable job at pasting into - the wiki (caveats from the wysiwyg thread definitely apply) as for wiki--->Word - i take it a good old fashioned screen-scrape (from print mode?) is not going to suffice? MLP On Fri, Jul 18, 2008 at 10:58 AM, Pete Jalajas <pj08@...> wrote: > Hi all, > > 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? > > To get started, I guess, what is the best way to get the little PDF > icon on my wiki pages so that I can see how it works? I see a few > different mods available. (I tried to install html2pdf mod but it > gives me "lib/html2pdf/classes/org/active-link to > lib/html2pdf/classes/org/active-link impossible to copy".) > > Thanks! > Pete > > ------------------------------------------------------------------------- > 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 |
|
|
Re: Need help implementing RTF creationHi 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 |
|
|
Re: Need help implementing RTF creationHi Pete,
The only mods for PDF that really works nice for TikiWiki 2.0+ is mozilla2ps. We are using it here. It needs some packages to be installed on your server, as describe in the mods description. You will also need to manually do this: mkdir /var/www/.gnome2 /var/www/.gnome2_private And the user of your webserver/php must have all permissions inside. Something like this is usually ok : chown www-data:www-data /var/www/.gnome2 /var/www/.gnome2_private Let me know if there is something that needs more explanations and I'll add them to the mods description. Cheers, Nyloth. -----Original Message----- From: tikiwiki-devel-bounces@... [mailto:tikiwiki-devel-bounces@...] On Behalf Of Pete Jalajas Sent: Friday 25 July 2008 14:57 To: Tikiwiki developers Subject: Re: [Tikiwiki-devel] Need help implementing RTF creation 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 |
|
|
Re: Need help implementing RTF creationWell, just another thing... in my example I was supposing /var/www/ is
the home directory of your webserver. If not, you will have to create those two directories in another place (webserver home). Nyloth. -----Original Message----- From: tikiwiki-devel-bounces@... [mailto:tikiwiki-devel-bounces@...] On Behalf Of WEBER Patrice Sent: Friday 25 July 2008 15:52 To: Pete Jalajas Cc: Tikiwiki developers Subject: Re: [Tikiwiki-devel] Need help implementing RTF creation Hi Pete, The only mods for PDF that really works nice for TikiWiki 2.0+ is mozilla2ps. We are using it here. It needs some packages to be installed on your server, as describe in the mods description. You will also need to manually do this: mkdir /var/www/.gnome2 /var/www/.gnome2_private And the user of your webserver/php must have all permissions inside. Something like this is usually ok : chown www-data:www-data /var/www/.gnome2 /var/www/.gnome2_private Let me know if there is something that needs more explanations and I'll add them to the mods description. Cheers, Nyloth. -----Original Message----- From: tikiwiki-devel-bounces@... [mailto:tikiwiki-devel-bounces@...] On Behalf Of Pete Jalajas Sent: Friday 25 July 2008 14:57 To: Tikiwiki developers Subject: Re: [Tikiwiki-devel] Need help implementing RTF creation 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 ------------------------------------------------------------------------- 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 |
|
|
Re: Need help implementing RTF creationI 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 |
|
|
Re: Need help implementing RTF creationAwesome, sylvieg, thanks! I've run with what you sent here.
Can you please give me an example of the format of the contents of the $page variable? For example: $page = "HomePage"; or $page = "tiki-print.php?page=HomePage"; Thanks, Pete On Fri, Jul 25, 2008 at 11:22 AM, Sylvie Greverend <sgreverend@...> wrote: > 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 ------------------------------------------------------------------------- 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 |
| Free Forum Powered by Nabble | Forum Help |