Hi Stephanie,
Instead of using query string parameter I would rather use HTML5 download attribute on an anchor link. This is recommended approach as PER HTML5 standards.
Assuming that you are using transformations as you stated. The code will be like this
<a href="{%DownloadFile%}" download="file.pdf">Download Your File</a>