Flexpaper 默认两页视图设置
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
获得默认显示两页视图的方法。我们可以在 flexpaper_flash.js 中插入一个调用,
但后来我遇到了一个问题,它首先以单页模式加载,然后将视图转换为两页模式。然后我不得不改变
true
Got the way to show two page view by default. we can just insert a call in flexpaper_flash.js
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
to
您只需使用设置即可
例如:
更多信息:http://flexpaper.devaldi.com/docs_parameters.jsp
You can just use the setting
e.g:
more info: http://flexpaper.devaldi.com/docs_parameters.jsp