This is a simple Apache 2 module that implements a filter to add a header to the response:
Content-Disposition: attachment
As the example below hints, this was written to combat the
PDF XSS
vulnerability
To use it download it, untar it, and build it. Then, add something like the following to your Apache configuration:
LoadModule forcedl_module /usr/lib/apache2/modules/mod_forcedl.so
AddOutputFilterByType FORCEDL application/pdf
eff6e97c9d76648297e54943c2a481fdf20edb1637172d0d879a9e0df266276e5ea8a16a37e1c29a365691cd4f86ac9d8ac6b6fb702408b23ed542f11410e684f1575d7e