New Feature: ODT (Open Document Type) Import

Thanks to Brad Payne from BC Campus, who has contributed a new import module to PressBooks: ODT (Open Document Type, the Open Office/Libre Office wordprocessing filetype) import.

The new importer will ingest an ODT file, and decide where new chapters are based on H1 tags in the document. Initial testing has been positive. Known issues include stripping of all styling tags….

To import your file:

  1. Goto Utilities –> Import
  2. Select  ODT file type
  3. Choose your file from your computer
  4. Select which chapters you want to import
  5. Decide whether the chapters are frontmatter, chapters, or backmatter
  6. Start importing.


Styling now supported. Thanks Brad!

See below for some screenshots.

Select File Type
Select File Type
Choose a File and Upload
Choose a File and Upload
Select Chapters and Import
Select Chapters and Import

Thanks to Brad for the hard work.



7 thoughts on “New Feature: ODT (Open Document Type) Import

  1. …strips all styling?

    That’s a pretty big “known issue”. This is the 21st Century; simply importing ASCII text without losing any is not much of a thing any more.

    Not ready for prime time IMHO.

  2. Indeed, if you’ve styled your .odt content in with a Comic Sans font, sized it 36pt and coloured it neon green, it will not be preserved. This is good thing even if the last century is your frame of reference. HTML tags (p, ul, li, h1-h6, table, etc) are present after importing content from an .odt file — styling is determined by the .css file on your PB instance. Bold, italic and underline are styles reasonable to consider preserving from an .odt file, and would be relatively low hanging fruit if anyone wants to jump in and contribute some code. If no one else does, I’ll take a look at it in the next few weeks.

Comments are closed.

Related Posts

Introducing: A Community of Practice for PressbooksEDU Network Managers

We’re adding yet another perk to PressbooksEDU networks: a discussion space in our Pressbooks Community specifically for network managers of EDU hosted networks. All current and future PressbooksEDU network managers will be invited to connect, interact, and share ideas with others in similar roles in this forum. Our decision to create this new community space

Read More

OTN Members: Don’t Forget to Use Your PressbooksEDU Discount!

Institutional members of the Open Textbook Network (OTN) are eligible for 30% off the annual price for PressbooksEDU Silver and Gold plans. If your institution is a member of the OTN, you can save on the annual subscription price for a PressbooksEDU Silver or Gold network. Together, Pressbooks and the OTN are working to help

Read More

Internship Position at Pressbooks: Here’s How to Apply

A lot of work goes into making great software for great people. We’re currently looking for an ambitious student or recent graduate in the Montreal area who would like to be a part of that work. If you’re interested in the crossroads of education, technology, and publishing, we’d like to hear from you. For more

Read More