AnsweredAssumed Answered

How to embed the Share web Previewer on my website

Question asked by ventus85 on Nov 11, 2011
Good morning to all.
My question is this:
how to embed the Share web Previewer on my website?

My document is for example "test.pdf". Path: http://localhost:8080/alfresco/d/workspace/SpacesStore/fa6c4095-8bb4-4df6-b38a-9b29624bd930/test.pdf
My WebPreviewer: http://localhost:8080/alfresco/d/workspace/SpacesStore/ab7f682c-7307-4a7f-9dbb-e290492ef735/WebPreviewer.swf"

My code is


<div id="template_x002e_repo-web-preview_x002e_document-details-real-swf-div"
style="position: absolute; left: 0px; top: 167px; width: 619px; height: 670px;" class="web-preview real">
<embed height="100%" width="100%"
flashvars="fileName=test.pdf&amp;
paging=true&amp;
url=http%3A%2F%2Flocalhost%3A8080%2Falfresco%2Fd%2Fd%2Fworkspace%2FSpacesStore%2F
fa6c4095-8bb4-4df6-b38a-9b29624bd930%2Fcontent%3Fc%3Dforce%26noCacheToken%3D1320766146341&amp&amp; jsCallback=Alfresco.util.ComponentManager.get('template_x002e_repo-web-preview_x002e_document-details').onWebPreviewerEvent&amp;
jsLogger=Alfresco.util.ComponentManager.get('template_x002e_repo-web-preview_x002e_document-details').onWebPreviewerLogging&amp;
i18n_actualSize=Dimensioni%20effettive&amp;i18n_fitPage=Adatta%20pagina&amp;i18n_fitWidth=Adatta%20larghezza&amp;
i18n_fitHeight=Adatta%20altezza&amp;i18n_fullscreen=Schermo%20intero&amp;i18n_fullwindow=Massimizza&amp;
i18n_fullwindow_escape=Premere%20Esc%20per%20uscire%20dalla%20modalit%C3%A0%20a%20finestra%20intera&amp;i18n_page=Pagina&amp;
i18n_pageOf=di&amp;show_fullscreen_button=true&amp;show_fullwindow_button=true&amp;disable_i18n_input_fix=false"
wmode="transparent" allowfullscreen="true" allowscriptaccess="sameDomain" quality="high"
name="WebPreviewer_template_x002e_repo-web-preview_x002e_document-details" id="WebPreviewer_template_x002e_repo-web-preview_x002e_document-details"
src="http://localhost:8080/alfresco/d/workspace/SpacesStore/ab7f682c-7307-4a7f-9dbb-e290492ef735/WebPreviewer.swf"
type="application/x-shockwave-flash"></div>

In the web page I see the flash swf, but inside is empty.
The buttons (defined as i18n) are gray e there are no written.
Why?
What do I wrong?

Thank you.

Outcomes