À¥¿¡¼ PDF ÆÄÀÏÀ» ¹Ù·Î º¼¼ö ÀÖ´Â À¥ÇÁ·Î±×·¥ÀÌ´Ù.
flexpaper´Â pdf¹®¼¸¦ swftoolÀ» ÀÌ¿ëÇؼ swfÆÄÀÏ·Î º¯È¯ÇÏ¿© ÀÚ½ÅÀÇ À¥¼¹ö¿¡¼ flash pluginÀ» ÅëÇؼ Á÷Á¢ ÀоîµéÀÌ´Â ¹æ½ÄÀÌ´Ù.
swftools ¼³Ä¡
# tar xzvf swftools-2012-02-04-0819.tar.gz
# cd swftools-2012-02-04-0819
# ./configure --prefix=/usr/local/swftools
# make
# make install
pdf2swf º¯È¯
# /usr/local/swftools/bin/pdf2swf <pdf file> -o <swf output file> -T <flash version>
# /usr/local/swftools/bin/pdf2swf webpdf.pdf -o webpdf.swf -T 9 -f
¼³Ä¡ÇÒ °ø°£¿¡ FlexPaper_1.5.1_flash.zip ¾ÐÃàÇØÁ¦
±âŸÀÚ¼¼ÇÑ ¹æ¹ýÀº example Æú´õ Âü°í
# mkdir webpdf
# cd webpdf
# unzip FlexPaper_1.5.1_flash.zip
# mkdir docs
# vi view_pdf.html
----------------------------------------------------------------------------------
<html>
<head>
<style type="text/css" media="screen">
html, body { height:100%; }
body { margin:0; padding:0; overflow:auto; }
#flashContent { display:none; }
</style>
<script type="text/javascript" src="js/flexpaper_flash.js"></script>
</head>
<body>
<div style="position:absolute;left:0px;top:0px;">
<a id="viewerPlaceHolder" style="width:695px;height:480px;display:block"></a>
<script type="text/javascript">
var fp = new FlexPaperViewer(
'FlexPaperViewer',
'viewerPlaceHolder', { config : {
SwfFile : escape('docs/<? echo $filename; ?>'),
Scale : 0.6,
ZoomTransition : 'easeOut',
ZoomTime : 0.5,
ZoomInterval : 0.2,
FitPageOnLoad : true,
FitWidthOnLoad : true,
PrintEnabled : true,
FullScreenAsMaxWindow : false,
ProgressiveLoading : false,
MinZoomSize : 0.2,
MaxZoomSize : 5,
SearchMatchAll : false,
InitViewMode : 'Portrait',
ViewModeToolsVisible : true,
ZoomToolsVisible : true,
NavToolsVisible : true,
CursorToolsVisible : true,
SearchToolsVisible : true,
localeChain: 'en_US'
}});
</script>
</div>
</body>
</html>
º¯È¯¹®¼´Â docs Æú´õ¾ÈÀ¸·Î »ðÀÔÇÏ°í viewer ½ÎÀÌÁî´Â Äڵ带 ¼öÁ¤Çؼ Àû´çÈ÷ »ç¿ëÇÏ¸é µË´Ï´Ù.