Project

General

Profile

Actions

Feature #22923

open

Export Wiki to ODT

Added by Gregor Schmidt over 8 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Wiki
Target version:
-
Start date:
Due date:
% Done:

90%

Estimated time:
Resolution:

Description

Attached you may find a patch, which adds Wiki to ODT export capabilities to Redmine.

The export works similar to the PDF export in that it mainly passes the generated HTML export to another library. In case of ODT, this is the html2odt gem, which in turn is based on xhtml2odt, which uses XSLT to transform HTML to OpenDocument compatible XML.

The Redmine integration mainly consists of code to handle image paths and a bit of clean up before passing the HTML to the library.


This change was implemented for a Planio customer, who wanted to use the Wiki to create simple templates, that users should then fill out using MS Word (and friends). We chose to export ODT (instead of DOCX e.g.) since the OpenDocument format is an open standard, the tool support was better and since it is supported by a wide range of word processing applications (MS Word 2010 and later, LibreOffice, OpenOffice, AbiWord, Pages).

Please note, that this feature benefits from the change proposed in #22898. Otherwise aligned images within a paragraph cause errors in the export, i.e. the following paragraph is missing from the ODT.


Files

HowTo_Install_Redmine_212_in_Ubuntu_1210_and_Apache_Passenger.txt (4.3 KB) HowTo_Install_Redmine_212_in_Ubuntu_1210_and_Apache_Passenger.txt Jean-Philippe Lang, 2016-06-06 12:29
HowTo_Install_Redmine_212_in_Ubuntu_1210_and_Apache_Passenger.odt (9.61 KB) HowTo_Install_Redmine_212_in_Ubuntu_1210_and_Apache_Passenger.odt Jean-Philippe Lang, 2016-06-06 12:29
Wiki.txt (4.33 KB) Wiki.txt Updated HowTo_Install_Redmine_212_in_Ubuntu_1210_and_Apache_Passenger.txt Gregor Schmidt, 2016-06-06 16:18
redmine.odt (587 KB) redmine.odt Jean-Philippe Lang, 2016-06-12 12:04
0001-Add-ODT-export-for-wiki-pages.patch (10.8 KB) 0001-Add-ODT-export-for-wiki-pages.patch Gregor Schmidt, 2016-06-24 14:20

Related issues

Has duplicate Redmine - Feature #16324: Wiki export as docx file.New

Actions
Blocked by Redmine - Patch #22898: !>image.png! generates invalid HTMLClosedJean-Philippe Lang

Actions
Actions

Also available in: Atom PDF