LibreOffice Draw can't keep justified text alignment when opening PDF?!

I’m trying to make some simple modifications to PDF-files (changing color of a few words and inserting links), which can be done easily with LibreOffice Draw (apparently not with other programs like Master PDF Editor or this online editor Easy to use Online PDF editor where I always end up changing the color of the whole line, not just the selected few words…). However when I open the PDF in LibreOffice Draw the text alignment never stays in justified mode, but will be aligned left (see image attached, left LibreOffice Draw, right Adobe Reader; the pdf was exported from a LibreOffice Writer document

).

I also don’t manage to change it back, the general align-tool allows only left, center and right, the paragraph settings when working in a text box seem to have no effect on the alignment… happens in LibreOffice Draw under Linux and Windows.
Is there a way to keep the alignment of the text when opening the pdf in LibreOffice Draw that I miss for some reason?

Or do you know of any other way to change text color (not just highlight) and insert a link to a pdf that works with (preferably Manjaro/Arch) Linux!

I will answer myself here, didn’t find a solution with LibreOffice Draw, but what seems to work for my purposes is the free version of PDF-XChange Editor (https://pdf-xchange.eu/) which (for now) works with Wine and can be found also in AUR AUR (en) - pdf-xchange

A recent bug report regarding this issue:
https://bugs.documentfoundation.org/show_bug.cgi?id=151552

1 Like

What is clearly visible on your screenshots is the difference in font types. Obviously, the font used in the PDF in not installed on your computer.

Remember that PDF is a frozen display format: runs of homogeneously formatted characters are positioned at an x,y position on the page. You no longer have a text flow but a set of text boxes with absolutely no instruction about which formatting to apply. Everything has already been resolved to leave you with strings in a given typeface and size at the location computed by the document application.

If the typeface is not installed, a substitute is used but generally it has not the same metrics as the original which results in the jagged right edge.

The only known reliable fix is to install the desired font.