Flexpaper 默认两页视图设置

发布于 2024-10-25 23:09:25 字数 1674 浏览 1 评论 0原文

我使用 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>

ViewModeToolsVisible 设置为 true ,这样我可以看到以单页模式、两页模式和拇指模式查看页面的选项。 如何将两页视图模式设置为默认模式?

谢谢。

I am using flexpage along with pdf2swf to generate swf for my pdf files and showing it in my page.

Here is the setting i have used

<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>

ViewModeToolsVisible is set to true , with this I can see options to view pages in single page mode , two page mode and thumb mode.
How to make two page view mode my default ?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

何以笙箫默 2024-11-01 23:09:25

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

function onDocumentLoaded(totalPages){
getDocViewer().switchMode('TwoPage');}

但后来我遇到了一个问题,它首先以单页模式加载,然后将视图转换为两页模式。然后我不得不改变

渐进式加载:true

true

渐进式加载:假

Got the way to show two page view by default. we can just insert a call in flexpaper_flash.js

function onDocumentLoaded(totalPages){
getDocViewer().switchMode('TwoPage');}

But then I was having a problem ,it was loading in single page mode first and then was converting the view to two page mode . Then I had to change

ProgressiveLoading : true

to

ProgressiveLoading : false

余生共白头 2024-11-01 23:09:25

您只需使用设置即可

InitViewMode(字符串)设置启动视图模式。例如
“纵向”或“双页”。

例如:

InitViewMode : 'TwoPage',

更多信息:http://flexpaper.devaldi.com/docs_parameters.jsp

You can just use the setting

InitViewMode (String) Sets the start-up view mode. For example
"Portrait" or "TwoPage".

e.g:

InitViewMode : 'TwoPage',

more info: http://flexpaper.devaldi.com/docs_parameters.jsp

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文