N
N
Nikolai Savelyev2017-09-26 05:49:25
linux
Nikolai Savelyev, 2017-09-26 05:49:25

How to convert docx to pdf on server?

There is a debian 7 server and a site in php. There was a need to convert the downloaded docx to pdf. All google search results in libreoffice --headless. However, the libra installation itself pulls in X11 dependencies. How safe is it in general?
Is it possible that everyone who encounters this is pulling graphics to a web server?

Answer the question

In order to leave comments, you need to log in

7 answer(s)
S
Stanislav Vlasov, 2017-09-26
@nikweter

Yes, libreoffice wants _libraries_ x11 for headless. And no, it's not graphics as such, if the dependencies are resolved correctly.
At the same time, under Linux, perhaps, only such a solution allows you to get the most accurate docx-pdf conversion.
As for security, I don’t see any special problems with X libraries, the main problems will still be with libreoffice.

D
Dmitry, 2017-09-26
@slo_nik

Good morning.
There is PHPOffice . This library reads and converts files. With its help, you can try to convert the downloaded docx to pdf.
more
and more

O
oh, 2017-09-26
well @AnneSmith

it gives me the same fpdf
stackoverflow library in both english and russian google

S
Sergey Sokolov, 2017-09-26
@sergiks

It is possible through Google Apps: upload docx to Drive and receive a pdf version as a file or a link to a file. There is a REST API . In small quantities, absolutely free.

L
Lone Ice, 2017-09-26
@daemonhk

I can recommend mpdf for generating PDF files. In fact, there are several of them, it all depends on which library you "smoke" the fastest.

S
Stepan Krapivin, 2017-09-26
@xevin

unoconv

R
Roman Mirilaczvili, 2017-09-26
@2ord

Pandoc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question