Auto Resizing PDF in a Hotspot Popup

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Tony
Posts: 545
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Auto Resizing PDF in a Hotspot Popup

Post by Tony » Fri Oct 12, 2018 8:05 pm

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 335 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.
Last edited by Tony on Mon Oct 15, 2018 6:26 am, edited 3 times in total.
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

User avatar
360Texas
Moderator
Posts: 3295
Joined: Sat Sep 09, 2006 6:06 pm
Location: Fort Worth, Texas USA
Contact:

Re: Auto Resizing PDF in a Hotspot Popup

Post by 360Texas » Fri Oct 12, 2018 8:19 pm

Thank you Sir. Will have a go at it in a few minutes.
Dave
Pano2VR Forum Global Moderator
Image
Visit 360texas.com

User avatar
Tony
Posts: 545
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Auto Resizing PDF in a Hotspot Popup

Post by Tony » Fri Oct 12, 2018 11:22 pm

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
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

User avatar
Tony
Posts: 545
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Auto Resizing PDF in a Hotspot Popup

Post by Tony » Sat Oct 13, 2018 9:38 am

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
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

User avatar
Hopki
Gnome
Posts: 8761
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Auto Resizing PDF in a Hotspot Popup

Post by Hopki » Sun Oct 14, 2018 9:36 pm

Try this: http://support.ggno.me/pdf
Regards,
Hopki

User avatar
Tony
Posts: 545
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Auto Resizing PDF in a Hotspot Popup

Post by Tony » Sun Oct 14, 2018 11:06 pm

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
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

User avatar
Hopki
Gnome
Posts: 8761
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Auto Resizing PDF in a Hotspot Popup

Post by Hopki » Mon Oct 15, 2018 2:27 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests