I am making a hype project to run off a USB Pen drive, I need to be able to hit a button and then a PDF file needs to open, can anyone advise me how to do this.
The pdf file will be on the USB Pen Drive, there will be no Internet connection
…would work. I tested it out and it didn’t work. Even though the file was in the resource folder, it didn’t load. Although, I am tired, so maybe I just missed something.
I tried with the slash and without. The PDF didn't open. It was just a white page. So, I just tried it in Firefox. It said that it could not be displayed properly. I could download the PDF from Safari to the desktop with a right-click.
Thanks @Photics. The issue is that Hype is trying to optimize the resource and ends up exporting a png (test.png) instead of the pdf. If you select the pdf in the Resource Library and uncheck ‘Automatically optimize when exporting’ it should work correctly.