Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/grails/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 flexpaper默认的两页视图设置_Ruby On Rails 3_Flash_Swfobject_Flexpaper_Pdf2swf - Fatal编程技术网

Ruby on rails 3 flexpaper默认的两页视图设置

Ruby on rails 3 flexpaper默认的两页视图设置,ruby-on-rails-3,flash,swfobject,flexpaper,pdf2swf,Ruby On Rails 3,Flash,Swfobject,Flexpaper,Pdf2swf,我正在使用flexpage和pdf2swf为我的pdf文件生成swf,并将其显示在我的页面中 这是我使用的设置 <script type="text/javascript"> highlightPageMenuLink(); var swfVersionStr = "10.0.0"; // For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no ve

我正在使用flexpage和pdf2swf为我的pdf文件生成swf,并将其显示在我的页面中

这是我使用的设置

<script type="text/javascript">
   highlightPageMenuLink();
  var swfVersionStr = "10.0.0";  // For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. 
    var xiSwfUrlStr = "playerProductInstall.swf"; // To use express install, set to playerProductInstall.swf, otherwise the empty string.  
    var flashvars = { 
      SwfFile : escape("<%= current_user.books.first.name%>.swf"),
        Scale : 0.6, 
        ZoomTransition : "easeOut",
        ZoomTime : 0.5,
      ZoomInterval : 0.1,
      FitPageOnLoad : false,
      FitWidthOnLoad : true,
      PrintEnabled : false,
      FullScreenAsMaxWindow : false,
      ProgressiveLoading : true,
      PrintToolsVisible : false,
      ViewModeToolsVisible : true,
      ZoomToolsVisible : true,
      FullScreenVisible : true,
      NavToolsVisible : true,
      CursorToolsVisible : true,
      SearchToolsVisible : false,
      localeChain: "en_US"
    };

    var params = {}
    params.quality = "high";
    params.bgcolor = "#ffffff";
    params.allowscriptaccess = "sameDomain";
    params.allowfullscreen = "true";
    var attributes = {};
    attributes.id = "FlexPaperViewer";
    attributes.name = "FlexPaperViewer";
    swfobject.embedSWF("FlexPaperViewer.swf", "flashContent", "650", "605", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes);
    swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script>

highlightPageMenuLink();
var swfVersionStr=“10.0.0”;//对于版本检测,设置为所需的Flash Player最低版本,或0(或0.0.0)表示无版本检测。
var xiswfullstr=“playerProductInstall.swf”;//要使用快速安装,请设置为playerProductInstall.swf,否则将显示空字符串。
var flashvars={
SwfFile:escape(“.swf”),
比例:0.6,
ZoomTransition:“easeOut”,
缩放时间:0.5,
ZoomInterval:0.1,
FitPageOnLoad:false,
FitWidthOnLoad:正确,
PrintEnabled:false,
FullScreenAsMaxWindow:错误,
渐进加载:正确,
PrintToolsVisible:false,
ViewModeToolsVisible:true,
ZoomToolsVisible:对,
全屏可见:正确,
导航工具可视:对,
CursorToolsVisible:对,
SearchToolsVisible:false,
localeChain:“恩_我们”
};
var params={}
params.quality=“高”;
params.bgcolor=“#ffffff”;
params.allowscriptaccess=“sameDomain”;
params.allowfullscreen=“true”;
var属性={};
attributes.id=“FlexPaperViewer”;
attributes.name=“FlexPaperViewer”;
swfobject.embedSWF(“FlexPaperViewer.swf”、“flashContent”、“650”、“605”、swfVersionStr、xiSwfUrlStr、flashvars、参数、属性);
createCSS(“#flashContent”,“显示:块;文本对齐:左;”);
ViewModeToolsVisible设置为true,通过此设置,我可以看到在单页模式、双页模式和拇指模式下查看页面的选项。 如何使两页查看模式成为默认模式


谢谢。

获得了默认显示两页视图的方法。我们可以在flexpaper_flash.js中插入一个调用

function onDocumentLoaded(totalPages){
getDocViewer().switchMode('TwoPage');}
但后来我遇到了一个问题,它首先以单页模式加载,然后将视图转换为两页模式。然后我不得不换衣服

渐进加载:真

渐进加载:false


您只需使用设置即可

InitViewMode(字符串)设置启动视图模式。例如 “肖像”或“两页”

e、 g:

更多信息:

InitViewMode : 'TwoPage',