Java Document online playback implementation

Source: Internet
Author: User

A: Preparation conditions


(1) Install the OpenOffice First and start the OpenOffice service

(2) Jodconverter tools

Jodconverter is converted via OpenOffice, which converts the document into PDF format.

Download the tool from the official website to find all the jar files you need http://www.artofsolving.com/opensource/jodconverter
Commons-cli-1.2.jar
Commons-io-1.4.jar
Jodconverter-2.2.2.jar
Jodconverter-cli-2.2.2.jar
Juh-3.0.1.jar
Jurt-3.0.1.jar
Ridl-3.0.1.jar
Slf4j-api-1.5.6.jar
Slf4j-jdk14-1.5.6.jar
Unoil-3.0.1.jar

Xstream-1.3.1.jar

If you want to use Maven, sort out the relevant configuration

               <!--jodconverter required jar begin--><dependency><groupid>commons-cli</groupid><arti Factid>commons-cli</artifactid><version>1.2</version></dependency><dependency ><groupId>com.artofsolving</groupId><artifactId>jodconverter</artifactId>< Version>2.2.1</version></dependency><dependency><groupid>commons-io</groupid> <artifactId>commons-io</artifactId><version>1.4</version></dependency>< Dependency><groupid>org.openoffice</groupid><artifactid>juh</artifactid><version >3.0.1</version></dependency><dependency><groupId>org.openoffice</groupId> <artifactid>ridl</artifactid><version>3.2.1</version></dependency><dependency ><groupId>org.openoffice</groupId><artifactId>unoil</artifactId><version> 3.0.1</version> </dependency><dependency><groupid>org.openoffice</groupid><artifactid>jurt</ Artifactid><version>3.0.1</version></dependency><dependency><groupid> Org.slf4j</groupid><artifactid>slf4j-api</artifactid><version>1.5.6</version> </dependency><dependency><groupId>org.slf4j</groupId><artifactId>slf4j-jdk14< /artifactid><version>1.5.6</version></dependency><dependency><groupid> com.thoughtworks.xstream</groupid><artifactid>xstream</artifactid><version>1.3.1</ version></dependency><!--Jodconverter Required jar End---


(3) Installation Pdf2swf.exe

You can convert a PDF document to a SWF file



(4) Flexpaper_flash.js control

Can play SWF file


Two: Concrete realization

Reference: http://blog.csdn.net/u013628152/article/details/42146725

Java document online playback implementation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.