Version 14 (modified by Carlos López Pérez, 14 years ago) (diff)


Wiki Export


This plugin allows you to export wiki pages to PDF, ODT and DOC format. This plugin is licensed under LGPL


This plugin has been developed with python-uno 2.4.1 and BeautifulSoup 3.0.7a.

Before use, you must start open office in service mode. To start soffice in this mode, use a command like this:

 soffice -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager

The version of the open office used in the development of the plugin was the 2.4.

Bugs/Feature Requests

Existing bugs and feature requests for WikiExportPlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from [download:wikiexportplugin here].


You can check out WikiExportPlugin from here using Subversion, or browse the source with Trac.


A possible configuration of this plugin is the next:

 user = john
 psswrd = 1234
 host = localhost
 port = 8100
 styles = Default, Heading 1, Heading 2, Heading 3
 enum-styles = List 1, List 2, List 3
 num-styles = Numbering 1, Numbering 2, Numbering 3

A brief description of the fields:

  • user and psswrd: If the trac project needs authentication, for export the images you need to pass a user and a password for construct a url that urllib can open.
  • host and port: When you start the soffice in service mode, you must specify a host and a port where the service accepts the connections. By default in this plugin, these values are localhost and 8100.
  • styles, enum-styles and num-styles: Are the styles that you want to use of the open office to export the wiki pages.

All this fields are optional, but the default configuration of this plugin if for the spanish version of the Open Office.

When this plugin is active, appears three new options in the wiki pages:

Since r5057, this plugin accepts a basic template system. This system works as follow:

  1. Create a wiki page called WikiTemplateConf
  2. Adds to that page a text similar to the next:
       template_list= Manual, List
       template_file= manual.odt, list.odt
  3. Attach to the page the files manual.odt, list.odt (or those who have written in the template_file section)

once this is done, when you export a wiki page, if the page name starts with a name written in the template_list section, the document created use the template defined in the WikiTemplateConf page.


For the moment, you must keep in mind next things:

   styles = Default, Heading 1, Heading 2                          Works fine
   styles = Default,Heading 1,Heading 2                            Don't works

Recent Changes

15264 by rjollos on 2016-02-11 04:22:34
Remove unnecessary svn:mime-type on py files

svn:mime-type was set to "plain" for many files.

9693 by sfhynx on 2010-12-16 11:48:00
Directory malformed
9680 by sfhynx on 2010-12-15 21:26:43
Branch created to work with Trac 0.12, Python 2.6 and OOo3.2


Author: sfhynx
Contributors: clp

Attachments (1)

Download all attachments as: .zip