Forcing to open download dialog when exporting pdf or txt files