N
N
Nurzhan Bakibaev2015-02-03 13:44:41
Python
Nurzhan Bakibaev, 2015-02-03 13:44:41

How to convert office documents (doc/docx/xls/xlsx) to pdf in python under ubuntu?

There is a task: it is necessary to translate documents sent by the user (word or excel) into pdf on the server.
Please tell me some python libraries or separate console applications that can be used.
I tried unoconv, but the quality is terrible - formatting gets lost, fonts change.
I would like to get the same quality as when you do 'save as pdf' in Word or when you print to pdf.
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Kuzmichev, 2015-02-03
@Assargin

You can look towards a python script that works with a running Libre/Open Office instance: blog.swlogic.eu/2011/06/03/rabota-s-openoffice-lib...
UPD. Ehehe, the method implies the use of the same uno that is used in unoconv, if I understand correctly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question