Solved by andfanilo in post #2 
              
              
                Hello @cs.sabya 
There is an official Download Button, did you try to use it with the pdf_file variable? 
Have a nice day, 
Fanilo