我使用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,这样我就可以看到在单页模式、双页模式和缩略模式下查看页面的选项。如何使两页浏览模式成为我的默认模式?
谢谢。
发布于 2011-03-25 12:27:53
默认情况下可以显示两页视图。我们可以只在flexpaper_flash.js中插入一个调用
function onDocumentLoaded(totalPages){
getDocViewer().switchMode('TwoPage');}但是我遇到了一个问题,它首先在单页模式下加载,然后将视图转换为两页模式。然后我不得不改变
ProgressiveLoading : true
至
ProgressiveLoading :错误的
发布于 2013-05-27 10:27:25
您可以只使用以下设置
InitViewMode (String)设置启动视图模式。例如“肖像”或"TwoPage“。
例如:
InitViewMode : 'TwoPage',更多信息:http://flexpaper.devaldi.com/docs_parameters.jsp
https://stackoverflow.com/questions/5417092
复制相似问题