Page 1 of 1

Auto Resizing PDF in a Hotspot Popup

Posted: Fri Oct 12, 2018 8:05 pm
by Tony
Hi

I've created a new, long form, tutorial that show how to build a skin that loads a PDF file in popup hotspot and automatically scales the PDF as the browser window scales.

Update: 15/10/18 - Thanks to Hopki, for his solution to the PDF issue. I've updated the tutorial to include this option.

Note: at this time the option to load an original PDF file into a hotspot is only available on the desktop. I’ll be posting an alternative ‘Mobile’ friendly addendum to this tutorial shortly.

Auto-Resize-43.jpg
Auto-Resize-43.jpg (732.33 KiB) Viewed 3649 times

https://tonyredhead.com/pano2vr/auto-re ... in-a-popup

There are a full set of tutorial files and the tutorial takes you step-by-step through the modification of an ht_info hotspot template to achieve the pdf presentation.

Comments and feedback welcomed.

Re: Auto Resizing PDF in a Hotspot Popup

Posted: Fri Oct 12, 2018 8:19 pm
by 360Texas
Thank you Sir. Will have a go at it in a few minutes.

Re: Auto Resizing PDF in a Hotspot Popup

Posted: Fri Oct 12, 2018 11:22 pm
by Tony
360Texas wrote: Fri Oct 12, 2018 8:19 pm Thank you Sir. Will have a go at it in a few minutes.
Hi, Let me know how you get on and if you find any errors or omissions.

cheers,

Tony

Re: Auto Resizing PDF in a Hotspot Popup

Posted: Sat Oct 13, 2018 9:38 am
by Tony
Okay, seems as though there is a big issue opening a PDF file into an HTML page. Basically you can't!! or at least I haven't found a way. If anyone has any tips I'd love to hear them.

My alternative is a mobile friendly high res jpg, created by exporting the pdf as jpg's, and implemented using the workflow covered in my tutorial https://tonyredhead.com/pano2vr/hotspot ... reen-image

I've used the 'isMobile' trigger to show either the pdf version or the jpg version.

Here's the result: https://s3-ap-southeast-2.amazonaws.com ... index.html

Tony

Re: Auto Resizing PDF in a Hotspot Popup

Posted: Sun Oct 14, 2018 9:36 pm
by Hopki
Try this: http://support.ggno.me/pdf
Regards,
Hopki

Re: Auto Resizing PDF in a Hotspot Popup

Posted: Sun Oct 14, 2018 11:06 pm
by Tony
Hi Hopki,

Okay, on my Samsung S8, clicked on the hotspot and it resulted in an automatic download of the pdf in a new window. Whas that the intended outcome?

Good alternative to reformatting it in HTML. I'll add it to the tutorial

cheers,

Tony

Re: Auto Resizing PDF in a Hotspot Popup

Posted: Mon Oct 15, 2018 2:27 pm
by Hopki
Hi Tony,
Yes, so on desktop you get the inline window but on mobile you get a new window for the PDF, so its still readable. :D
Regards,
Hopki