You wouldn't be able to do this for a specific action. Whatever extension you might want to use would be applied to all of the Controller's actions. This is handled via the Controller's configuration file.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com