Skip to content

pandoc creates ODT files which libreoffice cannot open when including 2 images #1069

@wmanley

Description

@wmanley

Pandoc version 1.11.1
libreoffice 4.1.3.2
on Debian testing (jessie)

libreoffice is unable to open odt files produced by pandoc if they contain more than 1 image.

Test case:

echo '<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="600" version="1.1"/>' >img1.svg
echo '![](img1.svg)
![](img1.svg)' >test.md
pandoc -o test.odt test.md
soffice test.odt

libreoffice opens and presents a dialog box reading:

Read-Error.
Error reading file

screenshot from 2013-11-25 16 07 37

The issue disappears if the image included only once.

The issue is still present when:

  • Two different images are included rather than the same one twice
  • The image is in PNG format instead of SVG.

I have not yet tested with Pandoc 1.12.1 as I am having difficulty building it.

I do not know if this is technically a libreoffice or a pandoc issue, either way I think it's important that pandoc produces ODTs that libreoffice can open as that is what the majority of people will be using to open the ODTs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions