You can do with it like that, and this is also possible (read that MS KB article)
1. Create a filter with this in doFilter:
2. Map filter to pdf's:
And that's it ;). Works nice with jboss-3.2.6 (tc5).