Openoffice+pdf2swf+flexpaper Online display of office and PDF

Source: Internet
Author: User

Premise: My system is Ubuntu 13.10 64-bit system. This is a period of time after I have configured the environment to write, so there may be errors in operation, and therefore for reference only.

The most common way to search for office and PDF displays online is to turn them into SWF and display them through Flexpaper. This method has drawbacks, Flexpaper does not support all browsers (I can only use in Chrome, Firefox to set)

The system I'm using is Ubuntu 13.10 64 bit

The software mentioned, I will share in the attachment

First, OpenOffice Installation

Download the APACHE_OPENOFFICE_INCUBATING_3.4.1_LINUX_X86-64_INSTALL-RPM_ZH-CN in the attachment, unzip, install all the Deb packs in the RPMs, then press the FRY ungrpms/ Desktop-integration inside the Openoffice.org3.4-redhat-menus_3.4-9594_all.deb. If downloaded from the Internet OpenOffice inside the city RMP pack words need to convert themselves through alien to Deb (the attachment is my own conversion)

Once the installation is complete, you can run the

soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;"--nofirststartwizard

Online prompt using Soffice--headless--accept= "SOCKET,HOST=127.0.0.1,PORT=8100;URP;"--nofirststartwizard & is running in the background

Can be run later through Netstat-ano | grep 8100 is run at the time of viewing, the above command is running in 8100 oppenoffice

Online also said to install OpenOffice SDK3.3 this east, I do not pretend can also be converted

Second, offie to PDF

Download the jodconverter-2.2.2 in the attachment, through the command

Java-jar Jodconverter-2.2.2/lib/jodconverter-cli-2.2.2.jar Xxx.docx xxx.pdf

Convert Office to PDF

Iii. installation of freetype-2.4.6 and jpeg-8c

Without installing these two words there is no way to compile the swftools in the pdf2swf

The installation method is to enter the directory and then

./configure make make install

Iv. Adding fonts

Download the attachment in the chinese-simplified (have added some fonts inside), unzip, put in/usr/local/share/xpdf/, if there is no Xpdf folder to create a new one.

V. Installation of Swftools

Download the swftools-2013-04-09-1007 in the attachment, the same

./configure make make install

Yes, run it.

psf2swf

If the help prompt indicates a successful installation

Run command

pdf2swf -o XXX.swf -T -z -t -f XXX.pdf -s languagedir=/usr/local/share/xpdf/chinese-simplified -s flashversion=9

You can convert the PDF to SWF.

This concludes

All Accessory Accessories: http://pan.baidu.com/s/1hq7hU2g

Openoffice+pdf2swf+flexpaper Online display of office and PDF

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.