RTF to PDF conversion results different to Word -> PDF

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

Eddie Ridwan gravatar image

updated 2017-07-07 14:12:04 +0100

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 close merge delete

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 +0100 )edit