Convert to html does not work

I used this command to convert docx file to HTML export HOME=/tmp && /tmp/lo/instdir/program/soffice.bin --headless --norestore --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --convert-to html:HTML --outdir /tmp /tmp/TEst.docx

but the generated file has undefined as body…

@page { size: 8.5in 11in; margin: 0.79in } p { margin-bottom: 0.1in; line-height: 115%; background: transparent } pre { font-family: "Liberation Mono", monospace; font-size: 10pt; background: transparent }

undefined

the content in the docx file was just "smita test"

content="LibreOfficeDev 6.4.0.1 (Linux)

I’d give a more recent, non-dev release a try.

Have you tried saving the docx document first in LO native format (odt), and then converting that document to html?

Thanks , but the problem was in the word doc , while copying it to S3, it had undefined in it. So, the conversion was not a problem.

Sorry, but I don’t understand. If you are using LibreOffice, you should always save in LO’s native formats, then export in other formats as necessary to distribute to non-LO users. If the “conversion” was not a problem, why is this a LibreOffice problem?