T
T
Think With Your Head2016-09-23 18:46:18
PHP
Think With Your Head, 2016-09-23 18:46:18

Is there a converter for html tags to open document xml tags?

Hello!
I am developing a web application for creating a resume.
A non-trivial task arose: the user is given the opportunity to type text in the vizivig editor, then what he typed must be saved in the DOCX format along with the formatting he specified.
What is used:
To generate DOCX, you can use only the OpenTBS plugin, the essence of which is that a template is created with the necessary styles in the Word and stubs are inserted with text in the form [data], which change to the user's entered text. Generating plugins like phpword and the like are not good, because. the style of documents (summaries) is very peculiar, and as you know, plugins that generate html in docx support styles very poorly. Therefore only OpenTBS www.tinybutstrong.com/opentbs.php
There are no problems at all with inserting simple data into DOCX, this plugin copes with a bang, I set the styles in Word what I need, which is very cool. But he does not understand the text formatted in web rich text (wysiwyg) editors and inserts it as it is - along with tags. Tags naturally cannot be cut - this is the architecture of the application, you need to save the formatting specified by the user, i.e. bold fonts, italics, lists, alignments, and so on and so forth.
That is, in fact, I need to create an online version of the Word, only cropped.
Can eat what ready decisions for such purpose?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
firm, 2016-09-23
@firm

If not found https://github.com/CatoTH/html2opendocument

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question