Date: prev next · Thread: first prev next last
2022 Archives by date, by thread · List index


On 02/05/2022 11:54, Brad Rogers wrote:
On Mon, 2 May 2022 11:38:29 +0100
Mike Scott <v.lo@scottsonline.org.uk> 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: users+unsubscribe@global.libreoffice.org
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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: 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.