Read Word file without losing formatting

1

How to read a Word file without losing its formatting?

Situation: The client wants to upload a Word file and save it all into the database as text (for future searches and similar).

Note: Using PHP only.

    
asked by anonymous 11.04.2014 / 03:34

1 answer

1

To read without losing formatting, save the record to the database with a field containing the extracted content in plain text format and the original file in a specific location using the record ID.

Use the search field for content and if you want to retrieve the file via download you can read the original file by the ID and send it via PHP.

    
11.04.2014 / 21:08