[Solved] Text copied from PDF is left justified

Discuss the word processor
Post Reply
markwrites
Posts: 49
Joined: Sun Jun 17, 2018 12:49 pm

[Solved] Text copied from PDF is left justified

Post by markwrites »

I made a jpg image of a pdf editable and copied the text to writer but it is all at one side. is there anyway to fix this except going through it and back spacing?
article.png
article.png (66.77 KiB) Viewed 1919 times
Last edited by markwrites on Mon Feb 26, 2024 9:51 pm, edited 1 time in total.
OO 4.1.15 on Windows 7 64 bit
User avatar
Nick N,
Banned
Posts: 140
Joined: Wed Aug 09, 2023 2:10 pm

Re: Text all to one side

Post by Nick N, »

Goodday Sir,

Please be so kind to select your marging as per small icons shown below.

Regards

Nick
Attachments
marging.png
marging.png (17.51 KiB) Viewed 1911 times
Libre Office 6.0.7 on Ubuntu 18.04
markwrites
Posts: 49
Joined: Sun Jun 17, 2018 12:49 pm

Re: Text all to one side

Post by markwrites »

Margins are OK
OO 4.1.15 on Windows 7 64 bit
User avatar
RoryOF
Moderator
Posts: 34802
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Text all to one side

Post by RoryOF »

If you turn on /View /non-printing characters, you will see that each short line is terminated with a backwards P (recte: a Pilcrow). if you delete a Pilcrow, you can replace it with a space; the lines will then align according to the paragraph alignment selected.

A quick way to do this is to use Find and Replace. In Find box enter \n. In Replace box enter \n (has a different meaning in the Replace box).

Correction: in Replace box enter a space. Sorry about the error - was distracted by call on my mobile when writing the above.

Drop "More Options" in Find and Replace, select "Regular expressions" from the dropdown, then press Replace All.

Until you know what you are doing, best to work on a copy file.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
Hagar Delest
Moderator
Posts: 32876
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Text all to one side

Post by Hagar Delest »

Pasting from a PDF often gives such result.
You can try that macro: Convert ASCII text files by deleting extra paragraph breaks.
It has been a long time since I've last used it. It may need some adjustments.

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the 🖉 button if your issue has been fixed.
LibreOffice 24.8 on Xubuntu 24.10 and 24.8 portable on Windows 10
User avatar
RoryOF
Moderator
Posts: 34802
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Text all to one side

Post by RoryOF »

For best advice it is helpful to have a small (one/two page) sample file uploaded, rather than a screenshot.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
markwrites
Posts: 49
Joined: Sun Jun 17, 2018 12:49 pm

Re: Text all to one side

Post by markwrites »

RoryOF wrote: Mon Feb 26, 2024 6:52 pm For best advice it is helpful to have a small (one/two page) sample file uploaded, rather than a screenshot.
How do I blur the content of sample file?
OO 4.1.15 on Windows 7 64 bit
User avatar
Hagar Delest
Moderator
Posts: 32876
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: [Solved]Text all to one side

Post by Hagar Delest »

You can't but you can anonymise it, see How to attach a document here.
LibreOffice 24.8 on Xubuntu 24.10 and 24.8 portable on Windows 10
markwrites
Posts: 49
Joined: Sun Jun 17, 2018 12:49 pm

Re: [Solved]Text all to one side

Post by markwrites »

Hagar Delest wrote: Mon Feb 26, 2024 10:06 pm You can't but you can anonymise it, see How to attach a document here.
Thanks. Only saw this now. Aplogy
OO 4.1.15 on Windows 7 64 bit
Post Reply