Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure Jspxcms Library

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article analyzes "how to configure a Jspxcms library". The content is detailed and easy to understand. Friends who are interested in "how to configure the Jspxcms library" can follow the editor's idea to read it slowly and deeply. I hope it will be helpful to everyone after reading. Let's learn more about "how to configure a Jspxcms library" with the editor.

The library function requires OpenOffice and SWFTOOLS support, which need to be installed on the server and start the OpenOffice service. Finally, the corresponding configuration is added to the / WEB-INF/classes/application.properties file of Jspxcms (version 6.5-7.0 is / WEB-INF/classes/custom.properties,6.0 and previous versions are / WEB-INF/conf/custom.properties).

Install OpenOffice installation in Windows environment

Download address: https://www.openoffice.org/download/index.html

Download the Windows version of OpenOffice, and the latest version is 4.1.2. After download, you can install it normally.

OpenOffice Startup Service

Enter / program/ (if you cannot find the program directory, go to C:\ Program Files (x86)\ OpenOffice 4\ program) and run the following command:

Soffice-headless-accept= "socket,host=127.0.0.1,port=8100;urp;"-nofirststartwizardOpenOffice service self-startup

When the server restarts, the OpenOffice service needs to be restarted. Starting the OpenOffice service manually is troublesome, and you can set the OpenOffice service to start itself.

Creating an OpenOffice.org Service on Windows

Self-starting of OpenOffice under Windows

SWFTOOLS installation

Download address: http://www.swftools.org/download.html

Download the Windows version of SWFTOOLS. The latest version is swftools-2013-04-09-1007.exe. After download, you can install it normally.

Install (CentOS-6 64-bit) OpenOffice installation in Linux environment

Download address: https://www.openoffice.org/download/index.html

Download the Linux version of OpenOffice, and the latest version is 4.1.2.

Linux command line download:

Wget http://jaist.dl.sourceforge.net/project/openofficeorg.mirror/4.1.2/binaries/zh-CN/Apache_OpenOffice_4.1.2_Linux_x86-64_install-rpm_zh-CN.tar.gz

Decompress:

Tar-zxvf Apache_OpenOffice_4.1.2_Linux_x86-64_install-rpm_zh-CN.tar.gz

Installation:

Cd RPMS/rpm-ivh * .rpmOpenOffice startup service / opt/openoffice4/program/soffice-headless-accept= "socket,host=127.0.0.1,port=8100;urp;"-nofirststartwizard & OpenOffice service self-startup

When the server restarts, the OpenOffice service needs to be restarted. Starting the OpenOffice service manually is troublesome, and you can set the OpenOffice service to start itself.

Just add the above OpenOffice service startup command at the end of the / etc/rc.d/rc.local file.

SWFTOOLS installation

Download address: http://www.swftools.org/download.html

Download the Linux version of SWFTOOLS, the latest version is swftools-2013-04-09-1007.tar.gz.

Linux command line download:

Wget http://www.swftools.org/swftools-2013-04-09-1007.tar.gz

Decompress:

Tar-zxvf swftools-2013-04-09-1007.tar.gz

Install the dependency package:

Yum install gcc* automake zlib-devel libjpeg-devel giflib-devel freetype-devel

Compile:

. / configuremakemake install

The SWFTOOLS file can be found at / usr/local/bin after installation.

Jspxcms configuration

Modify the configuration file: / WEB-INF/classes/application.properties (version 6.5-7.0 is / WEB-INF/classes/custom.properties,6.0 and previous versions are / WEB-INF/conf/custom.properties).

Configuration # swftoolsPdf2swf=/usr/local/bin/pdf2swf under openofficeHost=127.0.0.1openofficePort=8100swftoolsPdf2swf=C:\\ swftools\\ pdf2swf.exe#linux

The configuration of swftoolsPdf2swf is adjusted according to the actual installation directory of SWFTOOLS. After modifying the configuration, you need to restart the Web service (such as Tomcat) to take effect.

On how to configure the Jspxcms library to share here, I hope that the above content can enable you to improve. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report