Answer the question
In order to leave comments, you need to log in
Displaying DOCX as PDF on a Web Page
For a web application, it is necessary to display some types of documents directly in the browser, without the possibility of editing and creating new documents.
In particular, it is necessary to display *.docx files.
I was looking for libraries, there are a huge number of them, the functionality with generating documents or editing is not suitable. It would be nice to have a library without OS dependencies or third party applications.
Suggestions on how to directly display DOCX to DOCX and PDF to PDF or any other are welcome.
Web applications on Win Apache with PHP 5.4.
Answer the question
In order to leave comments, you need to log in
As already written above, "independent" does not exist at the moment and is unlikely to appear. Previously, something similar could be done through activex components, but it worked - it was only in ie.
At the moment, the most universal solution is ooconvert, which requires open (libre) office installed on the server; the same docx to pdf, which you, in turn, can display, for example, through pdf.js. All solutions are free, open source and well documented.
It would be nice to have a library without OS dependencies or third party applications.That's not possible - you'll need an application anyway that will render the docx to a browser-supported format.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question