On 02/05/2022 11:54, Brad Rogers wrote:
On Mon, 2 May 2022 11:38:29 +0100
Mike Scott <[email protected]> wrote:
Hello Mike,
Is there any way of converting to a plain text file while keeping some
semblance of the layout please? odt2txt extracts the text, but of
course loses the indentation.
Simply using "Save As...", then selecting TXT type works, IME. You'll
get a warning about losing formatting, but indents are preserved. Of
course, any bold, italics, super/subscript and underline, etc. will be
lost.
Thanks for the reply; but that's not what I get.
Save as text file produces something left-aligned - presumably because
the indents seem to be a result of left-margin settings in the paragraph
styles. I was hoping odt2txt would fare better, but no.
The original is actually a .docx file; there's no overall common styling
in the document to hunt for in the xml part of the odt file.
I've also looked at going via pdf and pdftotxt (gets garbage), and
installing a pseudo line printer (can't figure out how to save-to-file).
CUPS's own print-to-file creates postscript, which isn't useful in this
context.
LO 6.4.7.2 on linux mint, btw.
--
Mike Scott (unet2 <at> [deletethis] scottsonline.org.uk)
Harlow Essex England
"The only way is Brexit" -- anon.
--
To unsubscribe e-mail to: [email protected]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy