Skip to content

"Corrupted" files when converting from html to OpenDocument #1729

@comete-upn

Description

@comete-upn

It only occurs when the html links to images without extension. For example, if an html file contains a link to image.jpg everything works fine. If it contains a link to the same file renamed image, LibreOffice complains when I open the document, stating that it is corrupt and LibreOffice can try to "repair" it. The repair is always successful and the document opens.

The only difference between the two resulting files: the second ODT file has no entry for the image in the manifest.xml whereas the first one contains:

<manifest:file-entry manifest:media-type="image/jpeg" manifest:full-path="Pictures/0.jpg" manifest:version="1.2" />

Why does it matter? (I could name my files better)

The thing is that I only discovered this using base64 encoded images embedded in HTML. And these have no filename since the source IS the file…


System: Ubuntu 14.04
Pandoc version: 1.12.2.1
LibreOffice version: 4.2.6.3

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