RTF to PDF conversion results different to Word -> PDF [closed]

asked 2017-07-07 14:10:43 +0200

Eddie Ridwan gravatar image

updated 2020-08-30 12:24:58 +0200

Alex Kemp gravatar image

I am running LibreOffice 4.2.8.2 420m0(Build:2) on Ubuntu, and using it to convert RTF documents to PDF using the --headless mode command line:

libreoffice --headless --norestore --convert-to pdf myfile.rtf

The reason for using version 4.2.8.2 is that I have not been able to retain hanging indents and other styles when converting with newer versions of Libreoffice.

When viewing my RTF document in Word and then printing to PDF, the whole document fits comfortably in a single page (Times New Roman, Folio paper size). However, when converting the same RTF document with Libreoffice, the resulting PDF no longer fits in a single page.

On closer examination, the difference appears to be in the line spacing, where the Libreoffice converted PDF has a greater line spacing than the original Word RTF.

Is there anyway to control this, so that the original Word RTF line spacing is retained?

Many thanks for any help or info.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2020-08-30 12:25:12.993243

Comments

Hi, I have managed to resolve this issue by editing the RTF document (in Word) and explicitly setting the line spacing -- in this case to being at least 12pt. It seems the original problem might be the different ways Word and Libreoffice treats line spacing when it is not explicitly specified.

Eddie Ridwan gravatar imageEddie Ridwan ( 2017-07-07 14:40:03 +0200 )edit