You can use Flask's send_file for serving files:
send_file
from Flask import send_filereturn send_file('test.pdf', as_attachment=True)
With as_attachment=True you can force the client to download the file instead of viewing it inside the browser.
as_attachment=True