Jump to content

read in doc files


lional

Recommended Posts

is it possible to read in doc files that will preserve the formatting. I am trying to write a site that will allow the client who has no knowledge of web development to create a word document bold the text that they would like, and have the php page read in that file and preserve the words that were put in bold face.

 

if the word doc does not work, what is the easiest way to accomplish this?

 

Thanks

 

Lional

Link to comment
https://forums.phpfreaks.com/topic/157960-read-in-doc-files/
Share on other sites

This would be really difficult as reading a word doc requires a DOM object and a MS server.

However you can get a variety of text editors that work through your web browser. If a user copies a document from MS Word it has the ability to preserve any formatting.

 

http://www.fckeditor.net/

Link to comment
https://forums.phpfreaks.com/topic/157960-read-in-doc-files/#findComment-833151
Share on other sites

It is an online text editor like MS Word only in your web browser. You type the text, copy from MS Word, etc. Add a submit button and then save the text to your database, a text file or whatever. When it needs to be edited you get the record from the database, text file etc and then put it back into the editor. When it is submitted you update the record.

Link to comment
https://forums.phpfreaks.com/topic/157960-read-in-doc-files/#findComment-833157
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.