pdf file size is too smaller after --convert-to [closed]

asked 2015-03-12 19:38:49 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

After spent many days of struggling, finally I built libreoffcie- on Arch linux.

I run the command line on new built software: soffice --headless --convert-to pdf my.docx (here my.docx is a regular English document with size 19K)

my.pdf has been created successfully. but the display in Adobe Reader looks strange: The structure of pdf resembles original docx format. but all characters in pdf are display as [], in Adobe Reader.

I did the compare with the libreoffice installed on Mac. Here is the summary:

Original file size (.docx) 19K

pdf size after using software built on linux box: 8.5K

pdf size after using software installed on Mac: 98K

You see that the size after converting using new built was much smaller that the one built from installed software.

Any idea how this happened or how to debug the issue?

Thanks ahead for any help

Update: I tried to convert from .docx to txt or html format. They all succeeded without issue.

I tried with different filter for pdf convert: ./soffice --headless --convert-to pdf:writer_web_pdf_Export my.docx Result was the same.

it seemed that import a docx isn't issue and could convert to other format. but not pdf format.648

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-17 12:43:46.534473


does it convert well when using it via gui?

LogicDaemon gravatar imageLogicDaemon ( 2015-03-13 14:51:29 +0100 )edit