Reading a Word Doc


I think I need to use CFFile: Read, but am not sure how. I am currently uploading word and pdf documents to my web site automatically and want to store all of the content of each document into a specific database table field. Doees anybody have any idea how I can read the content of a specific word or pdf document, in order to insert this information into a database? It doesn't have to look pretty - I plan on running a keyword search against this content. Thanks for your help...
Who is Participating?
1. upload the document using cffile and upload..

2. convert word to html and store in DB as needed
you should store the files in a particular directory and you use CF's search facilities to index and run a search against it.  Probably better than doing your own DB solution for search.  AFAIK, CF can index and search PDF and Word files.
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to and use offer code ‘EXPERTS’ to get 10% off your first purchase.

rajeevmshahAuthor Commented:
Thanks, guys. I like cheekycj's method. Can you please paste some sample code that would allow me to index the documents and run a search? Thanks a lot...
Check the 'Verity' Section in your CF Docco
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation in the Cleanup topic area:

Accept cheekycj

Please leave any comments here within the next four days.

EE Cleanup Volunteer
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.