Xinc has a variety of configuration options. The Viewer will allow you to configure most options using a dialog type of interface. This dialog can be invoked by selecting 'File/Preferences' from the Viewer's menu. The viewer stores configuration information to an XML file called '.xincconfig.xml'. This file is usually located in your 'user.home' directory. (Typically 'Documents and Settings\UserName' in windows and '/home/UserName' in Linux) Please note that the Viewer will strip all comments and formatting out of this configuration file. The Viewer also maintains history and Viewer specific information in a separate file called '.xincui.properties'.
You can also manually edit and maintain your own Configurations. This is more typical if Xinc is being deployed in a server environment without the Viewer. A sample configuration file with comments is included with the product. It may be found in the 'config' subdirectory. The file is called 'SampleXincConfig.xml'.
This section specifies configurable values used by the layout engine. All numeric values represent points (1/72 of an inch) unless otherwise stated.
HyphenationCharacterA single character which will be displayed when a word is hyphenated.
DefaultLineHeightBy default the height of a line will be set to this value times the current font size. The default value is 1.2.
BorderWidthThinThe thickness of a 'thin' border.
BorderWidthMediumThe thickness of a 'medium' border.
BorderWidthThickThe thickness of a 'thick' border.
DefaultFontThe default font name.
serifThe actual font to be used if the generic 'serif' font is specified in an XSL-FO document.
sans-serifThe actual font to be used if the generic 'sans-serif' font is specified in an XSL-FO document.
cursiveThe actual font to be used if the generic 'cursive' font is specified in an XSL-FO document.
fantasyThe actual font to be used if the generic 'fantasy' font is specified in an XSL-FO document.
monospaceThe actual font to be used if the generic 'monospace' font is specified in an XSL-FO document.
BaseUrlThe base URL to use when formatting a document and a base url can not be determined by any other means.
DefaultColorThe default foreground color.
PixelsPerInchThis value is used when lengths are specified in pixels and need to be converted to an absolute length in points.
DefaultImageDPIThis value is used to determine the height and width of images if a DPI value cannot be determined directly from the image.
DefaultPageWidthThe default page width in points.
DefaultPageHeightThe default page height in points.
FontSizeTable/XX_SMALLThe size in points of an XX_SMALL font.
FontSizeTable/X_SMALLThe size in points of an X_SMALL font.
FontSizeTable/SMALLThe size in points of an SMALL font.
FontSizeTable/MEDIUMThe size in points of a MEDIUM font.
FontSizeTable/LARGEThe size in points of a LARGE font.
FontSizeTable/X_LARGEThe size in points of an X_LARGE font.
FontSizeTable/XX_LARGEThe size in points of an XX_LARGE font.
This section of the configuration is optional. If specified, it is used to configure a printer. The javax.print.attribute.standard javadocs contain some additional details on these tags.
PrinterNameA string value indicating which printer to send output to.
job-nameA string value specifying the name of this print job
job-priorityAn integer value between 1 and 100, with 100 specifying the highest priority.
requesting-usernameA string value.
finishings
One of the following values:
One of the following values:
An integer value specifying the number of copies to print.
media-name
One of the following values:
One of the following values:
One of the following values:
An integer value specifying the number of pages to print on a single side of a sheet of paper. This may or may not be supported depending on your printer.
chromaticity
One of the following values:
One of the following values:
A set of integer ranges. For example: '1-5, 20-25' would indicate pages 1 through 5 and pages 20 through 25.
presentation-direction
One of the following values:
One of the following values:
One of the following values:
One of the following values:
A valid URI. For example: 'http://something.com/printer1'.
Several Java System properties may be set which alter Xinc's default behaviour. If you wish to use any of the properties described below, they will need to be set in your batch or shell script. If you are using Xinc.exe or XincUI.exe (the Viewer), you will need to set these properties by editing the Xinc.lax or the XincUI.lax files.
To set a property, edit your batch or shell script to look like this:
java -DPropertyName=PropertyValue ...
For example, if you want to manually specify a configuration file for Xinc you can setup your batch or shell
file like this:
java -Dxinc.config.filename=/tmp/xinc/CustomizedXincConfiguration.xml ...
xinc.config.home
This property specifies the directory where Xinc configuration files are located. If this property
is not set, the default directory will be the 'user.home' directory as described above.
xinc.config.filename
This property specifies the complete path and file name of the Xinc configuration file. If this property is not
set, the default file name will be '.xincconfig.xml' and the directory will be determined as described for
'xinc.config.home'.
xinc.config.uifilename
This property specifies the complete path and file name of the Xinc Viewer's history file.
If this property is not set, the default file name will be '.xincui.properties' and the directory will be
determined as described for 'xinc.config.home'.
xinc.licensefile
If defined, this property specifies the path and filename for the Xinc license file.
If this property is not set, the default filename will be 'XincLicense.xml' and the directory will be the
'xinc.config.home' directory as described above.