Convert .odt to plain text with header

I have converted a .odt file to text using

soffice --convert-to “txt:Text (encoded):UTF8” --outdir “D:\My Documents\Office documents\Food\Website food” “D:\My Documents\Office documents\Food\Website food\Amatriciana.odt”

This created a .txt file containing the body of the document but not the header. I tried converting to pdf and the header was present as it was with the conversion to html.

Has anyone any suggestions please?
Mike.

1 Like

Converting to .txt removes all formatting, notably styles. A header is a property of page styles. Since style information is erased, headers are also suppressed during conversion. Only the main text contents is kept in plain files.