32 U23841-J-Z915-6-76
Using Xprint V7.0 options Producing Output with Xprint V7.0
3.4.4.2 Using Private Loadable Resources
Only administrators can create public loadable resources, but users can create
private loadable resources. To do this, create a file named .Xprint in your
home directory. You can insert as many comment lines as you like, which must
start with the “#” character. The definition of a loadable resource starts with its
name followed by any options allowed by xpadd -lrs. If a definition continues
on the next line, the current line must end with a backslash character.
Resources first have to be created with dedicated tools such as FGL or
SIEFONT from Siemens. These tools will generate the data to be downloaded
to the printer. The name of the generated file can be saved in a loadable
resource object. Each resource needs its own identifier in the printer. This
identifier has to be reflected in the resource object as the “printer internal
identifier”. The description of a resource can be registered in a loadable
resource object.
Resources may be called from documents if they include printer commands that
call the resource.
Examples
– The following example shows the definition of several loadable resource
objects.
# Private .Xprint file
#
# Loadable resources
# everypage logo
mylogo -pi 101 -pc HP-LASERJET -tp Overlay -ec
-fi $HOME/lrs/mylogo.hp -cr ALL
mybckgrd -pi 102 -pc HP-LASERJET -tp Overlay -ec
-fi $HOME/lrs/mybckgrd.hp
– Jobs can use the loadable resources as follows:
xpadd -dr mydocument -lr mylogo
xpadd -dr mydocument -lr mylogo mybckgrd
If a private loadable resource has the same name as a predefined
(public) loadable resource, the private one is given preference when the
name is selected. This means that first your .Xprint file is searched for
private loadable resoures. If none can be found, or the .Xprint file does
not exist, or the .Xprint file is not readable, then the resource is
assumed to be a public loadable resource.
i