RIA Forge has a tool called
http://docxextractor.riaforge.org/
Which pulls data from docx files. It does not create docx files however
Disclaimer: I wrote this
Question
I am working on a small project where I have to read more than 100 MS Word files and loop through each file and update their headers and footers. I want to accomplish this task in ColdFusion 10/11.
Is there any way I can get this done in ColdFusion?
Solution
RIA Forge has a tool called
http://docxextractor.riaforge.org/
Which pulls data from docx files. It does not create docx files however
Disclaimer: I wrote this
OTHER TIPS
The <cfdirectory>
tag can be used to work with files in a directory, for example getting a list to process using <cfloop>
.
ColdFusion does have some support for MS Office files. What you're trying to do can be done for an Excel spreadsheet, reading the file with <cfspreadsheet>
and then using functions such as SpreadsheetSetFooter(), before writing the file.
However, there are no comparable functions for Word files!