I was wondering if any of you have run into this need and solved it in any way. The case is the next:
- I made a Markdown view using the .txt extension, in order to create Markdown version of some documents.
- This is made with custom CTP files, instead of a serializable view
- Now, I would like to take that Markdown content, and convert it to *.docx with the Pandoc tool
I’ve managed to find the requestAction method in controller, wich would allow me to request the *.txt page, save to a file, run shell command pandoc and create another file with the *.docx.
But in the method it states to be deprecated in order to use cells. The fact is I’ve read the docs for cells and don’t quite understand how to call a cell from a controller, get the response, and then save it to file.
Has anyone made something like this in the past?