Newbie Question


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



Using Hype to Create a Slideshow with Random Image Order
(๐•„๐•š๐•”๐•™๐•’๐•–๐• ๐”พ๐•’๐•ฃ๐• ๐•—๐•’๐•๐• ) #2

Odd, I thought something like the followingโ€ฆ

<a href="/${resourcesFolderName}/test.pdf">Test PDF</a>

โ€ฆ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.

(stephen) #3

First add your pdf to the Resource Library and then @Photics is on the right track.

You are close, just remove the leading slash:

<a href="${resourcesFolderName}/test.pdf">Test PDF</a>

(๐•„๐•š๐•”๐•™๐•’๐•–๐• ๐”พ๐•’๐•ฃ๐• ๐•—๐•’๐•๐• ) #4

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.

(stephen) #5

Could you send me your Hype document so I can take a look? You can zip it up and drag it into a reply.

(๐•„๐•š๐•”๐•™๐•’๐•–๐• ๐”พ๐•’๐•ฃ๐• ๐•—๐•’๐•๐• ) #6

Thereโ€™s really not much to itโ€ฆ (30.2 KB)

โ€ฆbut the PDF doesnโ€™t load. Actually, right-clicking to download doesnโ€™t work eitherโ€ฆ

(stephen) #7

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.


Thank you very much that works great