Answer the question
In order to leave comments, you need to log in
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
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.
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
it gives me the same fpdf
stackoverflow library in both english and russian google
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.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question