Re: WORD to text problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello 
.



Am 3. Mai 2020 21:25:24 MESZ schrieb Tedd Sperling <tedd.sperling@xxxxxxxxx>:
>Hi gang:
>
>I have a problem where I have lot’s of people going to be putting data
>into a form. I can handle that OK — it's not a problem scrubbing the
>data for db storage.
>
>However, some of these “civilians” will use WORD even though the
>instructions tell them to use a text processor, only enter text, and
>NOT to use WORD!
>
>Unfortunately, I know it will be a losing battle because I am up
>against hundreds of people who want to submit data as they think it
>should look (i.e., bold, italic, different fonts, size, styles, and the
>list goes on an on).
>
>Also, I am positive some of you have solved this problem before by
>using preg_match, or regex, or some other method. So, I am asking to
>just to save myself some time.
>
>Does anyone have any code they can share?
>

The wysiwyg Editor's like Ckeditor have past from Word functions in JavaScript.

https://stackoverflow.com/questions/5540886/extract-text-from-doc-and-docx

And here are some  examples to get the text from a docx file. Maybe it is helpful für you.


BR Torsten 




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux