Download pdf from Resource library

Hi.

I have a strange anomaly when downloading this PDF. (I got the code from another forum post.) The download ads a .txt at the end for some reason and there is no content.

Any advice?
Archive.zip (575.5 KB)

Not sure why this would happen, but can you make a version where the PDF is inside of the resources folder and is downloaded using ${resourcesFolderName}/pdf.pdf ? This one is in your downloads folder on your local computer.

Try unchecking 'Automatically optimize when exporting' – it looks like Hype is turning it into a png for display. You may need to provide your own png image as a thumbnail since PDFs aren't really websafe for display.

1 Like

Thanks @Jonathan. That did the trick!

2 Likes