I have a project where I have to do Word document manipulation, and the only 3rd party library/API I can find is Aspose.Words (and Apache POI, which doesn't seem like it can do anything with Word documents)... but that costs a crazy amount of money. I just need the ability to find/replace placeholders in a docx word document, and then be able to access the checkbox object within an docx document and mark it as checked, then convert the document into PDF and send it to the user.
What I've been doing is, is saving about a 100 documents as RTF, and reading the file into memory, replacing the placholders, than saving it. The problem is that ColdFusion cannot manipulate doc/docx files directly (such as marking a checkbox inside a document, and also saving the document as PDF). Now ColdFusion can intergrate with any Java library/API (since it runs ontop of Java).
Could I use docx4j to do what I need (I can easily save all the documents as docx)? I am thinking about converting the files into HTML if I can't find an alternative method, but that completely destroys the format and is a major pain.