Implementing PDF file into 360° surround image

Q&A about the latest versions
Post Reply
Bostjan
Posts: 366
Joined: Fri Oct 17, 2008 4:06 pm

Implementing PDF file into 360° surround image

Post by Bostjan » Tue Oct 15, 2019 8:02 am

I have prepared a simple pano exibition tour where I implemented simple static pdf file display which show after picking the "?" button at the bottom or "i" at the left upper corner of each panel.
Here it is the tour: http://www.burger.si/test/Comtrade/Judje/vrp.html

It display ok with all browsers except the newes Microsoft Edge where the pdf file is visible all the time and can not be hidden.

I used: <embed src="Judje_katalog.pdf#toolbar=0&navpanes=0&scrollbar=0" type="application/pdf" width="100%" height="600px" /> for embeding it.

Is there a tip how to do that the way that it works fine also with the Edge?

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

Re: Implementing PDF file into 360° surround image

Post by Hopki » Tue Oct 15, 2019 10:53 am

Hi,
What you need to do is "unload" the PDF when hidden.
As an example:
• remove the iframe from the text box
• add an extra action to the PDF open button, mouse click, set value, "the iframe", text box, as well as make it visible
• the close button add the extra action, mouse click, set value, "leave blank", text box

When the text box is hidden there is also no iframe so nothin can be displayed.
On open the set value action adds the iframe to the text box and displays the PDF.
On close, the iframe is removed as well as hiding the text box.

Regards,
Hopki

Bostjan
Posts: 366
Joined: Fri Oct 17, 2008 4:06 pm

Solved (tx): Implementing PDF file into 360° surround image

Post by Bostjan » Tue Oct 15, 2019 3:36 pm

Martin thank you, regarding your instruction it works fine now.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests