Hi, I've tested the importer.. Installation and running it went fine ! Pretty cool. The documents where well imported in HTML with images attached and converted. Some bugs: - a documents with accents was showing the accents in UTF-8 when my wiki is ISO-8869-1. A conversion needs to be done. Some remarks: - it would be nice that the application can launch OO itself - you also need to write your code so that it can call the web service version of jodconverter - the application way would be nice to demonstrate and test the tool: a file upload, you choose the page and the document is added at the end of the page - one of the features of the conversion should be to convert any OO to HTML or PDF and should be integrated as links next to attachment (view as HTML or view as PDF). Also there could be a macro to integrate the HTML conversion in the middle of the page. Similar to {attach} but would embed the document directly in the page. So you should make sure your API allows to not only convert to wiki but also to any format. Ludovic Wang Ning wrote:
Hi Vincent & all,
I finish the clean of the plugin code and write a simple user manual. You can see it in http://dev.xwiki.org/xwiki/bin/view/Design/OfficeImporter#HQuickStart. All files needed for this plugin can be found in that page http://dev.xwiki.org/xwiki/bin/view/Design/OfficeImporter, except the openoffice install . Please give some feedback after try the plugin. Any feedback will be very appreciated. This plugin is very initial. It only put out the html code , not xwiki syntax, because the html code to xwiki syntax conversion should be done by XHTMLParser which is not ready yet.
Open question: Now the plugin can handle the file which is uploaded to xwiki as a attachment. Do you think it's necessary that the office importer would have the upload feature itself or should provide a XWikiAction something like "bin/importer/Main/page"? Now the plugin can work. However it's a little complicate. If you want to convert a office document 1. you first upload the document 2. copy the attachment name(because the name of document change after upload) 3. edit the page and add the velocity code to use the importer plugin 4. save and view. I think it should be more simple.
WDYT
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost