The configuration file pasta.cfg governs many printing options. The file is a normal ASCII text file that has a simple format described below.
The options are listed in the following two tables. They are divided into Generic Options and Arabic, Hebrew, and Thai options. For each option are listed the Key Name, the Default Value (if applicable), the Description, and the Equivalent Command Line Option (if applicable).
Note: For options that also have command line equivalents, Oracle recommends that you set the value in the configuration file.
| Key Name | Default Value | Description | Command Line Equivalent |
|---|---|---|---|
| outputFormat | ps | Two output formats are supported: PostScript ("ps") and text ("text"). When the output format is text, you can specify the output character set by the Oracle character set name (for example, text.WE8ISO8859P1). If you use "auto" as the output character set (text.auto), Pasta uses the appropriate character set according to the NLS_LANGUAGE value in the FND_LANGUAGES table. | -x |
| textAutoCharset | The default value is taken from the FND_LANGUAGES table. | When the outputFormat is set to "text.auto", Pasta uses a default character set for each language based on the language and character set mappings in the FND_LANGUAGES table. To override the default setting for a language, use the textAutoCharset option in the Language-Specific section of the pasta.cfg file. For example, to override the default character set for Japanese to use JA16EUC instead, enter the following: [Japanese] textAutoCharset=JA16SJIS | N/A |
| preprocess | N/A | Use this option to convert the output file. Enter a preprocessing command to invoke any executable that supports an input file and an output file (filter program). Pasta will invoke the filter program before passing the file to the printing command. | N/A |
| printCommand | N/A | Specific print command for Unix platform. | N/A |
| ntPrintCommand | N/A | Specific print command for Windows platform. | N/A |
| outFile | N/A | If you want to save the output file, use this option to define the ouput file name and its destination on the middle tier. | -o |
| noPrint | N/A | Set this option to "y" if you do not want Pasta to produce printed output. | -np |
| duplex | default | Specifies duplex printing. Options are "y", "n", or "default" (uses the printer-side setting). | N/A |
| embednumcopies | y | Set this option to "y" to embed the number of copies to be printed in a PostScript file. Using this option will eliminate the header page normally printed between reports. | N/A |
| copysort | y | If you set embednumcopies to "y", you can choose to have the copies collated, by setting this option to "y". | N/A |
| heightScaleRate | 1.0 | Adjusts the space between lines. | -h |
| widthScaleRate | 1.0 | Adjusts the space between characters. | -w |
| pagewidth | 8.27 | Adjusts the page width. | -pw |
| pageheight | 11.64 | Adjusts the page height. | -ph |
| topMargin | .25 | Adjusts the top margin. | N/A |
| bottomMargin | .25 | Adjusts the bottom margin. | N/A |
| rightMargin | .25 | Adjusts the right margin. | N/A |
| leftMargin | .25 | Adjusts the left margin. | N/A |
| Font.<Face>.<Style> | N/A | Specify the TrueType font file name. The <Face> must be either "Default" or the actual font face name (such as Helvetica). The <Style> must be either "Plain", "Bold", "Italic", or "BoldItalic". | N/A |
| fontsize | 7.8 (for landscape) 10.0 (for portrait) | Font size in points. If this is not set, the font size is calculated automatically. | -s |
| boldfontsize | Size in points (Default value from the fontsize parameter) | Font size for bold font in points. This option is used mostly when Font.Default.Bold is used for specifying a barcode font. | -bs |
| psEmbeddedFontType | type3 (default) type42 | A type of font that will be embedded in PostScript. | |
| tabsize | 8 | Pasta replaces a tab with the number of spaces specified in this option. | N/A |
| errorlogfile | (standard error output) | Set this option to have Pasta create a log file. | -el |
| Key Name | Default Value | Description | Equivalent Command Line Option |
|---|---|---|---|
| thai_space_compensation | n | In the Thai language, some characters are combined into one glyph. If this option is set to "y", Pasta will align your report by adding spaces at the end of the column that includes combined characters. | N/A |
| bidi_algorithm | oracle | If you set this option to "unicode", Pasta follows the Unicode BiDi algorithm. Setting the value to "oracle" will use Oracle's algorithm. | N/A |
| direction | default | Options are "ltr" (left-to-right), "rtl" (right-to-left), and "default" (depends on NLS_LANGUAGE setting). | N/A |
| dolayout | y | To layout the text, set this option to "y". If not, set it to "n". | N/A |
| doshaping | y | To shape the text, set this option to "y". If not, set it to "n". This option is for Arabic only. | N/A |
| numerals | context | Possible values are "arabic" for Arabic numerals, "hindi" for Hindi numerals, or "context" to use Arabic or Hindi depending on the context. Required for Arabic data only. | N/A |