File Uploading and Then reading the file |
[eluser]Unknown[/eluser]
Hi Everybody, I am having some problems in uploading .doc and .odt files.I want to upload the above stated extensions and then also read the uploaded file so that i can display the contents of the file in proper format.so if anubody can help me in solving this problem,I will be gratefull to him/her. Thanx
[eluser]LuckyFella73[/eluser]
Could you also imagine to implement a rich-text-editor to format your texts (something like "tiny mce" or equivalent) ? It's pretty unusual (at least I never heard of it) to manage webcontents with .doc files. Should be quite hard to extract the right data out of the .doc file. But maybe someone here has a class for doing the stuff ..
[eluser]xwero[/eluser]
After a quick search on phpclasses.org i selected these libraries : PHP MS Word OpenOffice 2 HTML
[eluser]LuckyFella73[/eluser]
I doubt that you will have much fun trying to display your word-docs als HTML unless you don't mind to have a clean and serious looking website. Reading the detailed descriptions for these classes you let you know that you won't have much controll over formating your elements. Class: OpenOffice 2 HTML: Code: It can convert documents with images simple text styles. It can also convert tables but without style support. Class: PHP MS Wordand: Seems to manipulate/ edit word-docs but don't create HTML from.
[eluser]xwero[/eluser]
Oops, i should read descriptions more carefully Converting them to html was the first thing i was thinking when i read the topic start. I don't think it's a good idea to integrate the uploaded document with the sitedesign because then you will loose the mark up of the document so converted document should be shown in a new window. But i'm wondering if converting the documents to pdfs could be an option. Most people have a browser plugin that opens the pdf in their brower for a preview. |
Welcome Guest, Not a member yet? Register Sign In |