Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pandoc cannot parse odt files from Calligra #4336

Closed
dcbuist opened this issue Feb 2, 2018 · 1 comment
Closed

Pandoc cannot parse odt files from Calligra #4336

dcbuist opened this issue Feb 2, 2018 · 1 comment

Comments

@dcbuist
Copy link

dcbuist commented Feb 2, 2018

odt files created, modified or saved in Calligra (KDE office suite) cannot be parsed by pandoc. Pandoc expects content.xml to contain the element <office:font-face-decls>. However this element is optional and not all odt files contain it. odt files produced by Libreoffice contain this element by default, but odt files from Calligra do not. When attempting to convert an odt file from Calligra the following output is obtained:

[buist@DL-7370 ODT]$ pandoc -s -o TestDocument.docx TestDocument1.odt Couldn't parse odt file. [buist@DL-7370 ODT]$ pandoc -s -o TestDocument.txt TestDocument1.odt Couldn't parse odt file.

If the file is unzipped and content.xml is modified by the insertion of <office:font-face-decls/> and then rezipped, pandoc can now parse and convert the file.

Pandoc version: 2.1.1

@jgm
Copy link
Owner

jgm commented Feb 2, 2018

@MarLinn do you want to have a look at this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants