On 02/05/2022 11:54, Brad Rogers wrote:
On Mon, 2 May 2022 11:38:29 +0100
Mike Scott <email@example.com> wrote:
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
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
LO 126.96.36.199 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: firstname.lastname@example.org
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy