I have just tested this on Stable, Beta. And it kind of works.
Stable (27) has a problem where it can't download client generated files. For example if you use the a[download] attribute you will see that it opens up the downloader but just sits there doing nothing.
In the Beta (28) everything works as expected, so I would expect your pdf to also save.
I simplified your code here: http://jsbin.com/opavet/latest which works for both links on Beta. But only the later on stable.