L
L
Leonid2016-12-09 10:51:21
HTML
Leonid, 2016-12-09 10:51:21

How to overtake HTML to DOC - do you need suggestions (php-scripts / unix-utilities)?

The user in the admin panel edits the text in a WYSIWYG editor (TinyMCE), then clicks the Save to Word button and receives a doc (docx) file with the same text inside.
What do you recommend for converting html to doc format? Moreover, it is not necessary to consider only the php implementation, you can use some Unix utilities, if they are better)
ps: by the way, the option to save the html code to a file with the .doc extension is not considered, because this is not a full-fledged Word file .

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey S., 2016-12-09
@Winsik

for unix there is pandoc

I
Ilya Evseev, 2016-12-10
@IlyaEvseev

Google search: "convert html to docx linux".
Here we find:

soffice -headless -convert-to pdf -outdir pdfs/ *.html
soffice -headless -convert-to doc -outdir docs/ *.html

It?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question