flexpaper大文檔播放

  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:\SWFTools\pdf2swf.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.6,
                 
ZoomTime : 0.5,
                 
ZoomInterval : 0.1,
                 
FitPageOnLoad : false,
                 
FitWidthOnLoad : false,
                 
PrintEnabled : false,
                 
MinZoomSize : 0.2,
                 
MaxZoomSize : 5,
                  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", ..

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章