加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

flexpaper大文档播放

发布时间:2020-12-15 04:42:27 所属栏目:百科 来源:网络整理
导读:? http://flexpaper.devaldi.com/docs_largedocs.jsp http://wujwmail.blog.163.com/blog/static/17055443320119532652421/ ? Publishing Large Documents Making large documents available to your end users can sometimes be difficult leading to long

? http://flexpaper.devaldi.com/docs_largedocs.jsp

http://wujwmail.blog.163.com/blog/static/17055443320119532652421/

?

Publishing Large Documents

Making large documents available to your end users can sometimes be difficult leading to long waiting times and excessive memory consumption when trying to load the entire document at once. FlexPaper solves this by allowing you to split up your documents and downloading only the visible pages.?

This also makes it possible to publish large documents to devices with lower memory and CPU power than a desktop.

?

Publishing documents in split up mode is easy. FlexPaper 1.4.5 and onwards provides you with out of the box scripts of how to publish large documents using PHP and ASP.NET. Make sure you set your configuration to 'split mode publishing' to use this functionality.

?

Publishing large documents manually to flash

In case you cannot run PHP on your server,splitting a document up using PDF2SWF is as simple as modifying your conversion command slightly:

C:SWFToolspdf2swf.exe?Paper.pdf? -o?Paper %.swf? -f -T 9 -t -s storeallcharacters


The?%?sign is what makes PDF2SWF create one file per page. Running this command should give you files "Paper1.swf","Paper2.swf". FlexPaper recognizes loading up pages in split mode by the having SwfFile in the following syntax:?{filename[*,padding],total pages}

Following our previous example,we can now modify SwfFile parameter slightly to fit our needs:

? ? ? ? $('#documentViewer').FlexPaperViewer(
? ? ? ? ?
{ config :
? ? ? ? ? ? ? ? ?
SwfFile "{Paper[*,0].swf,28}",Scale 0.6ZoomTime0.5ZoomInterval0.1FitPageOnLoad falseFitWidthOnLoadPrintEnabledMinZoomSize0.2MaxZoomSize5
? ? ? ? ? ? ? ? ? localeChain
"en_US"
? ? ? ?
}});

?

In this example,we are instructing FlexPaper to load up pages in a split-up approach with a total of 28 pages,with 0 in padding. The padding needs to be set to 1 should you have your files stored as "Paper01.swf","Paper02.swf",..

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读