Preparing nevisIDM for use with OpenOffice templates (adnooprint)
Starting with v2.6, nevisIDM is able to use OpenOffice writer documents as templates to print jobs. In this chapter, the required setup is discussed.
Installation of adnooprint and OpenOffice
Installation of the OpenOffice server-wrapper package "adnooprint":
Linux: rpm -i adnooprint<version>.i486.rpm
If there is no OpenOffice (Writer, version 3.2.0) installation in /opt/ directory, adnooprint can be used as an installer for a minimalized headless OpenOffice server instance.
Download and unpack the file:
Linux: OOo_3.2.0_LinuxIntel_install_wJRE_en-US.tar.gz
from http://archive.apache.org/dist/incubator/ooo/stable/3.2.0/
and issue the command
adnooprint install OpenOffice <download dir>
This will install the required OpenOffice components.
System requirements for an OpenOffice installation, which will not be resolved by the installer:
Linux: (libraries):
libXext.so.6
libX11.so.6
libfreetype.so.6
To create and start an instance of adnooprint, type the command:
adnooprint handover RTGROUP=nvbgroup RTOWNER=nvauser
Configuration of adnooprint
The command
adnooprint
will show every possible command and option for adnooprint, including configuration and diagnostic tools.
The command
adnooprint config
opens a text editor, where the variables
RTOWNER=nvauser
RTGROUP=nvbgroup
OPENOFFICE_SERVER_HOST=localhost
OPENOFFICE_SERVER_PORT=8912
can be set.
Make sure that the host, port and rtowner/rtgroup settings correspond to the nevisIDM configuration (see the chapter "Configuration of nevisIDM").
To keep OpenOffice running, the owner-user should have a home directory or should be able to create and write to the directory /tmp/.openoffice.
After saving a configuration file, restart the adnooprint instance with:
adnooprint restart
Configuration of nevisIDM
Use the command
nevisidm config idm
to set the variables that correspond to the adnooprint settings:
printingOpenOfficeHost=localhost
printingOpenOfficePort=8912
printingPrinterName=
and then:
nevisidm restart
If printingPrinterName is not set, the default printer will be used (default printer of the host where the OpenOffice installation resides).