Primary tabs


Average: 4.3 (3 votes)

Calc, Writer
export, xhtml, MathML, filter, EPUB
Post date:
Monday, 1 December, 2008 - 04:23
Week: Not tracked - Month: Not tracked - Year: Not tracked - Timeline
Download extension
System Independent version - All releases
Compatible with OpenOffice 4: Yes
User feedback:
Compatible with OpenOffice 4.x?

Writer2xhtml provides some export filters:

  • HTML5, XHTML and XHTML+MathML export filters for Writer
  • EPUB export filter for Writer
  • HTML5 and XHTML export filter for Calc

Writer2xhtml gives you extensive control over the export of formatting (using a configuration file). You can export the formatting in the document to CSS, or you can map the styles in the document to your own stylesheet.

For information about other features, documentation, source code and development releases see http://writer2latex.sourceforge.net

If you are interested in this extension, you may also be interested in the companion Writer2LaTeX, http://extensions.openoffice.org/en/project/writer2latex


Version Operating system Compatibility Release date
1.4 System Independent 4.0, 4.1 01/04/2015 - 04:39 More information Download
1.2.1 System Independent 4.0, 4.1 07/09/2014 - 10:19 More information Download
1.0.2 System Independent 2.x, 3.0, 3.1, 3.2, 3.3, 3.4 09/06/2010 - 15:44 More information Download
1.0.1 System Independent 2.x, 3.0, 3.1, 3.2, 3.3, 3.4 10/03/2010 - 03:16 More information Download
1.0.0 System Independent 2.x, 3.0, 3.1, 3.2, 3.3, 3.4 24/09/2009 - 07:16 More information Download
1.0-beta3 System Independent 2.x, 3.0, 3.1, 3.2, 3.3, 3.4 16/04/2009 - 06:41 More information Download
0.5.0-2 System Independent 2.x, 3.0, 3.1, 3.2, 3.3, 3.4 01/12/2008 - 04:27 More information Download


Your writer2xhtml plugin is a really helpful addition!
I tried a lot of applications to produce epub and PDF content from the same source: scanned text files.
I was close to give up and use Sigil which would give me a lot more work.
Then I tried the export to EPUB and voila I had what I wanted... really a great piece of work.
Even the table of content was translated into links!
The only thing not working is alphabetical indexes... perhaps a bit complicated to convert this into links.
Or would this be an incentive for future updates?
All my best regards,

... for this extension, it makes my life easier :D great work!
is it still under development, i've just seen it's not working on newer versions of oo?

I have tested this extension under windows xp (OO 3.1) where it does indeed work as expected.

Unfortunately not all styles are defined in the style section in the header but rather as style definitions directly in the code. Results would be much cleaner if everything was defined in the code.

Under the latest Opensuse 11.2 using OO 3.1 the extension does not work. When choosing to export as xhtml strict 1.1 I get the ollowing error message and the export screen letting me specify the export options does not show:

Error saving the Document .
Wrong parameter.
The operation was started under an invalid parameter.

Would be great if this would work under linux as well, saving me from a reboot.

Cheers J.

I used writer2xhtml with Ubuntu 09/10 and OOo 3.2 in order to publish ebooks in EPUB format.
On a whole, it's pretty fast, stable, can process very big and complex files including lots of footnotes, table of contents, etc. I hotly recommend it.

Other comments.

If I understand well what happens, when an OOo file is not totally "clean" (has some overload like italics, graphics and others...), writer2xhtml creates some "sgc" styles to identify them, which in an ideal world, would need to be further processed by the user.

Some overload is pretty necessary. Many times though, it's a user's mistake. Let's begin with these ones. If you informed the user, prior to conversion, that writer2xhtml detected the following sgc styles with a short CSS description of them and a tick box to confirm they are really used, it could save a lot of cleaning work later. If the user dont' understand what it's all about... just click "next"

As for the really used overload styles.
- graphics are "magically" processed. I would advise, when possible though, to avoid this feature which is a little code heavy because it creates a new style for every image... and to process directly the insert of images in html code view.
- italics are a sensitive spot which probably may be refined further. I understand there is no perfect solution, but after conversion I had to add spaces before and after. After this, I had to take out space before point and comas (French typographic rules). The most awkward was dealing with a short Italic sentence including a so-called apostrophe. It stops the sgc style and resumes it immediately after. So you get two of the same sgc to describe one sentence. (ex:Vierge de l'Ascension)
- do you really need a dedicated style to process the ° character ? (like in 36° 12' or like in n° 12)

Thanks you very much for providing a wonderful and efficient tool.

Hi roger640

Thanks for your positive feedback.

Could you please provide a sample document and use this to explain the output you would like to generate?
You can find my email address on the project web site, http://writer2latex.sourceforge.net.

BTW: The next version of Writer2xhtml supports direct export to EPUB (see my web site for more information).

Best regards