I am trying to allow the user to download a pdf file with some instructions by clicking a button in a gui. I can’t find anything anywhere that doesn’t require a server. As this is for a college project I clearly don’t have a sever I can use. Is there any scripts that allows files to be downloaded to the users computer?
I made the same question a few weeks ago, take a look here:
There is no final solution in that post, but there are some ideas that can help you, depending on exactly what you want to do.
Is the PDF already created or do you plan to also generate the PDF when the user presses the button?
The pdf is created I just wanted the user to be able to download it when they click a button so they are able to print it off.
And where will you have the PDF stored? If you include it as a bundle resource you can use sys.open_url()
to open it in the browser.