Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,221 of 9,224 pages
About the help in other languages
All help pages

OpenDocument import and export

How the ezodf extension imports OpenDocument Writer files as Exponential content and exports content back to Writer - what it needs (LibreOffice or OpenOffice as a converter), its settings, the views, and its documented…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/building/documents-and-publications/odf-import-and-export.md

On this page

OpenDocument import and export

This page is for administrators, editors and website creators at public bodies that write in office suites. Many documents are drafted in LibreOffice or OpenOffice Writer; publishing them as web pages, rather than only as PDFs, makes them easier to read and find. The ezodf extension imports a Writer document as a content object and exports objects back to Writer. Source: ezodf. The default installation activates the extension (Extensions it activates).

Contents

  1. What it does
  2. What it needs
  3. Settings
  4. Using it
  5. Limits

What it does

DirectionResult
Importan editor uploads an .odt file; a content object is created: the title and a body with headings, paragraphs, lists, tables and images mapped onto class attributes
Exportan object is exported to a Writer document using a template
Librarya general library for generating Writer documents from your own modules

OpenDocument is an open, standardized office format; using it fits open standards policies many public bodies have.

What it needs

  • OpenOffice or LibreOffice 2.4 or later, running as a converter service the extension reaches (OOConverterAddress, OOConverterPort, default 127.0.0.1:9090);
  • a zip binary (ZipPath) and a temporary folder (TmpDir).

Running an office suite as a service on the web server is an operations decision; ask your hosting team.

Settings

odf.ini (override in settings/override/odf.ini.append.php):

BlockKeyDefaultMeaning
ODFImportDefaultImportClassarticleclass created by an import
ODFImportRegisteredClassArray[]article, folder, image, documentation_page, blog_postclasses an import may create
ODFImportPlaceImagesInMedia, ImportedImagesMediaNodeNamefalse, Imported imageswhere images go
<class>DefaultImportTitleAttribute, DefaultImportBodyAttribute, Attribute[<odf field>]per classmapping onto attributes
ODFExportUseTemplate, TemplateNametrue, a Writer templateexport template

To import into your own class (a Guidance or Publication class), add it to RegisteredClassArray[] and give it a mapping block.

Using it

ViewPurpose
ezodf/import, ezodf/upload_importimport a Writer document
ezodf/export, ezodf/upload_exportexport an object to Writer

The website toolbar of ezwt shows import and export buttons for the classes in websitetoolbar.ini [WebsiteToolbarSettings] ODFDisplayClasses[]. After an import, open the new object, check headings, tables and images, add alternative texts, and publish.

Limits

From the extension's documentation:

  • access checking for images in imported documents is not complete;
  • images are ignored on export when the user cannot read them;
  • storing imported images in the media folder does not work properly.

Formatting outside headings, lists, tables and images is not carried over. Review every import before publishing.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x