Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.