Fix regression that prevents downloading the PDF file (PR 4752)
Merge pull request #4793 from Snuffleupagus/save-regression

Fix regression that prevents downloading the PDF file (PR 4752)