Question
can you amend Word docs using CF?
hi there,
i have a load of word documents (.doc / docx) on my server
i want to do the following:
1 read each document to find any instances of an email address contained within (will use Regex for that i guess)
2 replace each email address with "---there was an email address here and the server has removed it---"
3 save the new (amended) word document
Does CF 8 have any new clevernesses to help me out here?
I suspect I may have to read the contents of the word doc into memory, make my changes there and then create a new word doc (using cfdocument?) with my amended content that is now in memory.
If anyone has any comments / suggestions to help me avoid any dead-ends i'd be ever so grateful.
Thanks very much indeed.
i have a load of word documents (.doc / docx) on my server
i want to do the following:
1 read each document to find any instances of an email address contained within (will use Regex for that i guess)
2 replace each email address with "---there was an email address here and the server has removed it---"
3 save the new (amended) word document
Does CF 8 have any new clevernesses to help me out here?
I suspect I may have to read the contents of the word doc into memory, make my changes there and then create a new word doc (using cfdocument?) with my amended content that is now in memory.
If anyone has any comments / suggestions to help me avoid any dead-ends i'd be ever so grateful.
Thanks very much indeed.
