How to display DOC/PDF documents on a webpage
How to display DOC/PDF documents online like Baidu Library and. There are two main elements: first, how to convert DOC/PDF documents into swf format, the second is how to display the SWF file. The following briefly describes the two aspects:
Conversion of SwF using DOC/PDF
We recommend that you use the flashpaper2 doc、pptto swf, and swftools(%2swf.exe) to convert the data.
After the two tools are installed, set the corresponding command file path to the environment variable, and use the web development language to call the command in the system for conversion.
Note:
Swftools is a set of utilities that work with Adobe Flash files (SWF files. This toolkit includes SWF files for reading, combining them, and creating programs from other content (such as, sound files, videos or source code) with them. Swftools is released under GPL.
Display SWF System
Display SWF files. We can use the flexpaper open-source system.
Flexpaper is an open-source lightweight component used to display various documents in a browser. It is designed to be used with ipv2swf to display PDF in flex, this process does not require the support of the PDF software environment. It can be used as a flex library. The system URL is as follows:
Http://flexpaper.devaldi.com/
Https://code.google.com/p/flexpaper/
Demo
Http://devaldi.com/adaptiveui/Intl_Monetary_Fund.php? RO = flash, html
Http://devaldi.com/adaptiveui/Intl_Monetary_Fund.php? RO = HTML, flash & prefer = true
Http://devaldi.com/adaptiveui/Intl_Monetary_Fund.php? RO = HTML5, HTML & prefer = true