ReadMe for Adobe (R) Acrobat(R) Distiller(R) for UNIX(R) XTRAS Directory 
================================================================================
Updated: 11 June,1997

This directory includes files which customize the Acrobat Distiller 
installation for this site.


-----  Location of Site-Specific Files  -----


ACRO_RES_DIR

Distiller needs access to PostScript resources generally available at this 
site as well as ones which are part of the Distiller installation.  The 
directories Distiller will search are listed in the ACRO_RES_DIR file.  In 
searching for a PostScript resource the directories are actually searched for 
UPR (Unix PostScript Resource) database files which can map from the resource 
name to a filename.  

The initial value in the ACRO_RES_DIR file lists this Xtras directory 
(for the Distill.upr file), the default locations Adobe suggests for UPR
files describing PostScript resources (/usr/psres and $HOME/psres), and the
directory containing the fonts which come with Distiller.  If there are
additional locations for PostScript resources at this site (for example,
fonts installed in places other than the Adobe suggestions above) then the
ACRO_RES_DIR file should be edited using a text editor to list these locations.
(Changing this file to list site resources is preferable to having all users
individually set their PSRESOURCEPATH variables.)

See comments in the ACRO_RES_DIR and Distill.upr files for more
information.  Also, see comments in the application launch script (the
Distiller command you run) for a description of exactly how the value for the 
ACRO_RES_DIR is determined, including how the ACRO_RES_DIR file 
is used in that determination.  NOTE: When multiple instances of a PostScript
resource are encountered by reading multiple UPR files, the first encountered 
instance is actually used. This means that if the system administrator points
Distiller to a font in /usr/psres, a user cannot redefine that resource to be
in a different location.


-----  Site Customization  -----

Each site may customize certain behavior of Distiller by changing UPR and 
PostScript files in this directory.  For example, a site may prefer that 
distillation of documents should be ascii format by default.  To override 
the factory (Adobe) default of binary format PDF files, the command
    "<< /ASCII85EncodePages true >> setdistillerparams" 
could be run in the site-specific startup file Startup/Example.ps.

See the comments in the Distill.upr file for more about the customization
mechanisms available.  See the DistParm.pdf file in the Exchange/Help
directory for a description of setdistillerparams.

Distiller finds these customizations by virtue of the Xtras directory being 
on the ACRO_RES_DIR, as discussed above.


-----  Installations  -----

Since each platform shares the Xtras directory, the installer will NOT
override (and thus should not ask for) extra resources and default
locations for the log and config files for the daemon.  To make resources and 
default locations platform-specific, use the variable ACRO_CONFIG in the 
ACRO_RES_DIR path.  ACRO_CONFIG will evaluate to hppahpux rs6000ai, sparcsol,
or sparcsun.  In this fashion any platform-specific resources may be specified 
through a UPR file located in a path containing $ACRO_CONFIG.


-----  User Customization  -----

Similar to the customization for a site, users may customize Distiller for 
their own use.  Users may specify customizations to override or supplement 
site customizations.


Establish User Customization Directory

The first part of user customization is to establish a directory with the 
desired customizations.  

1.  Create a user customization directory (the name of "$HOME/psres" is already 
    included by default in the file ACRO_RES_DIR at installation time).  
    
2.  Copy to this directory from the site customization directory the UPR files 
    describing the behavior to be customized.  Establish any necessary 
    PostScript files for the customization.  


For example, when Distiller's PostScript interpreter initializes it executes a 
main [site-specific] startup file as indicated in Distill.upr.  A user wishing 
to customize this main startup file would copy the Distill.upr and Startup.ps 
files to the user's customization directory and edit the Startup.ps file to 
achieve the desired customization.  (The Distill.upr file indicates the main 
startup file is "Startup.ps" in the same directory as the UPR file.  This 
will be the newly established Startup.ps file so the Distill.upr file doesn't 
have to be edited.)  [check whether DstlrStartupDir entry has to be removed 
as there's no Startup subdir]

See the comments in Distill.upr for more about the customization mechanisms
available.


3.  Indicate to Distiller the location of the newly-created customization 
    directory.  This is done via the user's PSRESOURCEPATH environment variable.
    The PSRESOURCEPATH is a colon-separated list of directories to be searched 
    for UPR files describing PostScript resources.  (It is generally set in the 
    file executed by the user's shell at startup, e.g. ~/.login or ~/.cshrc for 
    csh.)  It should be set to include the user's customization directory.  It 
    Should also include a "::", which means to search the default locations, so 
    Distiller can find the site customizations and other PostScript resources 
    available at the site.  

For example, if the user created the customization directory "psres" below
their home directory, no changes would be necessary.  However, if the user
had chosen something like "Distillr_Stuff" then the PSRESOURCEPATH should
be set to "$HOME/Distillr_Stuff::".  This would cause Distiller to look for
resources first in the user's Distillr_Stuff directory and then (because of
the "::") in the other places it would normally look.

See the comments in the ACRO_RES_DIR file for more information about 
the PSRESOURCEPATH and ACRO_RES_DIR variables.

Note that users should NOT copy the ACRO_RES_DIR file to their 
customization directory; such a file will not be considered.  Instead, they 
should set their PSRESOURCEPATH variable.  


-----  User Preferences  -----

Certain parameters which may be specified to Distiller on the command line 
when it is run can be saved as user preferences (using the -saveprefs option).
The next time Distiller is run by the same user the saved preferences will be 
retrieved and used.  This provides another type of customization of Distiller 
on a user-by-user basis.

For the distill command the distillation parameters (how to compress color 
images, etc.) are stored as user preferences.  For the distilld command the 
distillation parameters as well as the monitor parameters (how often to monitor 
directories, what to do with the PostScript files after distillation, etc.), 
the list of monitored directories, and the system log file parameters (when to 
shorten the file) are stored as user preferences.  Whether or not the 
parameters are retrieved and saved can be controlled with command options.

See the -help info of distill and distilld for more information about saving 
parameters as user preferences.

The storage of user preferences is implemented as appropriate for the 
particular platform.  The user should not edit this file by hand but instead
use the -saveprefs command-line option to have the current settings stored.

For most platforms, the X resource manager mechanism is used to store user
preferences.  This saves resources in a file determined as follows [from
"X Window System Toolkit", Programmer's Guide, section 9.8, "Finding Files"]:
If the variable XUSERFILESEARCHPATH is defined in the user's environment,
search that path.  Else, if the variable XAPPLRESDIR is defined in the user's
environment, search the path "$XAPPLRESDIR/%N:$HOME/%N".  Else, search the
path "$HOME/%N". In all three cases "AcrobatDistiller" will be substituted
for "%N".

With the X resource manager mechanism a file "AcrobatDistiller" will be placed 
in the user's home directory if XUSERFILESEARCHPATH or XAPPLRESDIR do not 
indicate otherwise.  To avoid this, set XUSERFILESEARCHPATH to include an 
alternate location, such as "$HOME/.%N" to put the file in a hidden dot file 
in the home directory.  The XUSERFILESEARCHPATH is generally set in the file 
executed by the user's shell at startup, e.g. ~/.login or ~/.cshrc for csh.




Adobe, Acrobat, Distiller, and PostScript are trademarks of Adobe Systems
Incorporated or its subsidiaries and may be registered in certain jurisdictions.
UNIX is a registered trademark in the United States and other countries,
licensed exclusively through X/Open Company, Ltd. X Window System is a trademark
of the Massachusetts Institute of Technology. All other products or name brands
are trademarks of their respective holders.

Copyright 1983 - 1997 Adobe Systems Incorporated. All rights reserved.
