- 2
- 0
- 约2.89万字
- 约 38页
- 2020-08-02 发布于上海
- 举报
Flexpaper二次开发入门教程
1. Flexpaper介绍
1.1 Flexpaper是什么?
Flexpaper是由一家新西兰的Devaldi公司开发的在线浏览各种文件的组件,它采用的是GPL开源的协议,即源代码开放并可以最其进行修改使用,这一切都是免费得,但不能对Flexpaper源码修改后封装成商业软件进行发布和销售。
Flexpaper官方主页:
1.2 Flexpaper可以做什么?
如果你有一些DOC、PPT、PDF等格式的文档,想在网站里提供给大家在线阅读,那怎样做好呢?现在Flexpaper可以为你做到,当然Flexpaper还有一个搭档,那就是SWFTools,通过SWFTools生产SWF,再通过Flexpaper组件显示,这对黄金搭档可以为你实现的在线文档功能。
使用Flexpaper浏览PDF,那需要PDF软件环境的支持吗?答案是不需要的,Flexpaper还可以被当做Flex的库来使用,这些都使开发、使用变得更简单。
?
1.3 Flexpaper版本
Flexpaper的初始版本1.0发布于2009年,到现在已经有42个版本。swc版本为组件包,使用swc组件包需要导入到工程中再调用,flash版本为可以单独执行的,里面有例子、JS文件、SWF文件,我们采用flash版本很容易就可以使用Flexpaper显示在线文档。
SWFTools介绍
1.5 SWFTools介绍
SWFTools是一个SWF处理、转换的开源工具,它的功能主要体现在:
1.???? SWF的抽取、合并、解析、读写;
2.???? PDF/JPEG/PNG/AVI/TTF/WAV等格式转换成SWF。
SWFTools是采用GPL开源协议,永久免费,现在SWFTools已经支持Solaris, Linux (32 bit 和 64 bit), FreeBSD, OpenBSD, HP-UX, Solaris, MacOS X and Windows 98/ME/2000/XP/Vista等多个系统。
,下载后安装后可以看到它的工具
官方对各个工具的描述:
PDF2SWF A PDF to SWF Converter. Generates one frame per page. Enables you to have fully formatted text, including tables, formulas, graphics etc. inside your Flash Movie. It's based on the HYPERLINK "" xpdf PDF parser from Derek B. Noonburg.
SWFCombine A multi-function tool for inserting SWFs into Wrapper SWFs, contatenating SWFs, stacking SWFs or for basic parameter manipulation (e.g. changing size).
SWFStrings Scans SWFs for text data.
SWFDump Prints out various informations about SWFs, like contained images/fonts/sounds, disassembly of contained code as well as cross-reference and bounding box data.
JPEG2SWF Takes one or more JPEG pictures and generates a SWF slideshow from them. Supports motion estimatpression (h.263) for better compression of video sequences.
PNG2SWF Like JPEG2SWF, only for PNGs.
GIF2SWF Converts GIFs to SWF. Also able to handle animated gifs.
WAV2SWF Converts WAV audio files to SWFs, using the HYPERLINK " L.A.M.E. MP3 encoder library.
AVI2SWF Converts AVI animation files to SWF. It supports Flash MX H.263 compression. Some examples can be found at HYPERLIN
原创力文档

文档评论(0)