Sie sind nicht angemeldet.

1

Mittwoch, 8. Mai 2013, 15:25

I get this warning when trying to open a .pdf file

Hello,
I get this warning when trying to open a .pdf file

WARNING: Locally not trusted - ExternalInterface NOT available!
ERROR: decoding failed - pdf/Zeiss Contura G2 VAST XT.pdf

Here is my code:

The "open" code I copied from a thread that Klaus wrote??

<scene name="scene_01" title="View One" onstart="" thumburl="panos/01.tiles/thumb.png" lat="" lng="" heading="">








<view hlookat="103.328" vlookat="9.712" fovtype="MFOV" fov="99.982" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />




<preview url="panos/01.tiles/preview.jpg" />




<image>

<cube url="panos/01.tiles/pano_%s.jpg" />

<mobile>

<cube url="panos/01.tiles/mobile_%s.jpg" />

</mobile>

</image>







<action name="open">

set(plugin[%1].visible,true);

tween(plugin[%1].alpha,1);

</action>



<action name="close">

tween(plugin[%1].alpha,0,0.5,default, set(plugin[%1].visible,false) );

</action>



<plugin name="openimage"

url="pdf/Zeiss Contura G2 VAST XT.pdf"

align="center" x="10" y="10"

alpha="0"

onclick="action(close,get(name));"

/>



<hotspot name="fyi"

url="skin/fyi.jpg"

ath="30"

atv="0"

scale="0.6"

alpha="0.3"

onover="tween(alpha,1);tween(scale,0.6);"

onout="tween(alpha,1);tween(scale,0.6);"

onclick="action(open,openimage);"

/>












<!-- place your scene hotspots here -->

<hotspot name="spot2" style="skin_hotspotstyle" ath="177.967" atv="12.572" linkedscene="scene_02" />

<hotspot name="spot3" style="skin_hotspotstyle" ath="-96.489" atv="18.749" linkedscene="scene_06" />









</scene>



2

Donnerstag, 9. Mai 2013, 10:56

Hi,

a pdf document is NOT an image!

See here the url and alturl documentation for the support images formats for plugin/layer/hotspot elements:
http://krpano.com/docu/xml/#plugin.url

Best regards,
Klaus

3

Donnerstag, 9. Mai 2013, 21:11

Thanks, you are right!!!

I figured out how to open a .pdf using Openurl….

I did it and now the client wants it to pop up in the pano….

So I guess I convert the .pdf to .png and then use the code I have???