I searched for a while, and I decided to try the source of the crowd.
I searched (Googled) for the answer and after a while looked through Stack Overflow, and I cannot find the correct and relatively easy way to create DOCX documents through Perl.
I want to create a DOC file, and since the DOCX is XML based, I assumed that this would be an easier way to achieve this.
I located the module RTF::Writer, but it is very limited in its capabilities.
There is more than one such library for PHP and other languages, but I cannot use this, unfortunately.
I do not work in a Windows environment, so I cannot use anything that will be integrated with Office, in addition, I do not want to start associating Office with my product.
I am open to suggestions, but please provide reasonable opportunities :) i.e. no, you scr * wed DOCX is impossible.
Here is what I tried: 1) Take the existing DOCX and modify the XML directly, everything that I achieved through this caused Word to crash: it is obvious that Word is very sensitive to its attribute order
2) Googled for answers, and I found some, for example Win32::Word::Writer, that works only on Windows and requires OLE and Office
3) Many messages have been found since 2010 that say that this is impossible, but almost 4 years have passed, maybe there is something there that can do this
4) I looked at commercial solutions, could not find it, I found a FOP that is able to create RTF, which is pretty close, but it lacks a lot of styles that I would like to use
5) ( ), DOCX, , ,
6) , OpenOffice::OODoc, 2010 , , OpenOffice , , (.. GUI-)
, , :}