Web Script: org/alfresco/modules/document-preview.get
Generated from /share/service/script/org/alfresco/modules/document-preview.get on Jun 19, 2026 2:22:33 PM

Script Properties
Id:org/alfresco/modules/document-preview.get
Short Name:Document Preview
Description:Displays a flash preview of document.
Authentication:none
Transaction:none
Method:GET
URL Template:/modules/document-preview
Format Style:any
Default Format:html
Negotiated Formats:[undefined]
Implementation:class org.alfresco.web.scripts.DeclarativeWebScript
Extensions:[undefined]

Store: classpath:alfresco/site-webscripts

File: org/alfresco/modules/document-preview.get.desc.xml
<webscript>
  <shortname>Document Preview</shortname>
  <description>Displays a flash preview of document.</description>
  <url>/modules/document-preview</url>
</webscript>
File: org/alfresco/modules/document-preview.get.html.ftl
<div id="${args.htmlid}-dialog" class="document-preview">
   <div class="hd">
      <img id="${args.htmlid}-title-img" src=""/>
      <span id="${args.htmlid}-title-span"></span>
   </div>
   <div class="bd">
      <div id="${args.htmlid}-swfPlayer-div" class="preview-document-swf">\!--style="width: 480px; height: 500px;"-->
         ${msg("label.noFlash")}
      </div>

      <div class="bdft">
         <input id="${args.htmlid}-previous-button" type="button" value="${msg("button.previous")}" />
         <span  id="${args.htmlid}-currentFrame-span" class="footerText">${msg("label.currentFrame")}</span>
         <input id="${args.htmlid}-next-button" type="button" value="${msg("button.next")}" />
         &nbsp;|&nbsp;
         <span class="footerText"><label for="${args.htmlid}-jumpToPage-textfield">${msg("label.jumpToPage")}</label></span>
         <input id="${args.htmlid}-jumpToPage-textfield" class="jumpToPage" type="text" />
      </div>

</div>

<script type="text/javascript">//<![CDATA[
Alfresco.util.addMessages(${messages}, "Alfresco.module.DocumentPreview");
//]]></script>
File: org/alfresco/modules/document-preview.get.properties
header.previewDocument=Preview of {0}

label.noFlash=Unable to load Flash content. You can download the latest version of Flash Player from the \
  <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player Download Center</a>.
button.previous=Previous
button.next=Next
label.currentFrame=Page {0} of {1}
label.jumpToPage=Jump to Page:
message.invalidFrame=You must enter a frame between {0} and {1}

error.contentNotAVM2MovieClip=The preview cannot be displayed because it is not an AVM2 movie clip.
error.server=The preview cannot be displayed due to a server error.

Store: classpath:alfresco/webscripts

[No implementation files]