shawnm Posted July 13, 2010 Share Posted July 13, 2010 Hey guys, I'm trying to figure out how I can get the word count of an uploaded document with .doc or .docx extensions. Getting .rtf and .txt works fine but the .doc and .docx aren't so easy. Basically the website is being designed to spit out a word count of an uploaded document, multiply that by a price per word fee and give the client a quotation based on word count. I don't want clients having to copy and paste text into boxes on the site in order to achieve this. Any ideas on how I can acheive this, directly or indirectly? Any help on this would be GREATLY appreciated as I've been racking my brain trying to figure this one out. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/207654-ms-word-word-count-in-uploaded-document-on-my-website/ Share on other sites More sharing options...
litebearer Posted July 14, 2010 Share Posted July 14, 2010 perhaps convert doc to text file, then do your word count. see link for possible method http://snipplr.com/view/8364/convert-word-document-to-txt-text-file/ Quote Link to comment https://forums.phpfreaks.com/topic/207654-ms-word-word-count-in-uploaded-document-on-my-website/#findComment-1085652 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.