A printer initfile can be use to override the default settings used when ViewCompanion prints a document.
The file format is simple and uses a set of recognized keywords, as described below.
This file is used in combination with the command line option /pi.
You may also use a printer init file with the hot folder printing feature in ViewCompanion Premium.
Listing of a sample ini file can be found at the bottom of this page.
The file must start with the following header:
[ViewCompanion Plot Configuration]
Then one or more statements, using the following keywords, can be listed:
PENTABLE=pentablefilename
Print the file using the given pentable.
SCALEPENTABLE=ON/OFF
If set to ON the pentable will be scaled with the drawing.
SCALE=100/FIT
Sets the scale to use for printing. Accepted values are an integer (percentage), or FIT to scale the plot to fit the page.
CENTER=ON/OFF
If set to ON the plot will be centred on the page.
MONOCHROME=ON/OFF
If set to ON the plot will be drawn only in black and white.
POSTER=ON/OFF
Enables or disables the Poster feature.
HEADER=string
A text string to be used as header for the printed document.
The text can include predefined macros that can be replaced with information like file name, date and more.
FOOTER=string
A text string to be used as footer for the printed document.
The text can include predefined macros that can be replaced with information like file name, date and more.
FONT=ARIAL,12,BOLD
Set the font to use when date/time/filename is printed. The first parameter is a font name, eg. Arial, the next parameter is
the font height in points, and the last parameter is one of the following : Regular, Bold, Italic or Bold Italic.
HEADERPOS=UL
Sets the position for the header string. One of the following options is valid:
UL (Upper Left), UM (Upper Middle) or UR (Upper Right)
FOOTERPOS=UL
Sets the position for the footer string. One of the following options is valid:
LL (Lower Left), LM (Lower Middle) or LR (Lower Right).
COPIES=1
Sets the number of copies to print.
HORZOFFSET=0.25
Sets horizontal print offset to use. The offset must be given in inches.
VERTOFFSET=0.25
Sets vertical print offset to use. The offset must be given in inches.
ORIENTATION=1/2
Set orientation to 1 to print using portrait mode , and 2 to print in landscape mode.
PAPERBIN=Upper Tray
Select paper source to use.
-
PAPERSIZE=A0
Set the paper size to use. The following values are valid:
-
A0 | 841 x 1189 mm |
A1 | 594 x 841 mm |
A2 | 420 x 594 mm |
A3-Extra | 322 x 445 mm |
A3 | 297 x 420 mm |
A4-Extra | 236 x 322 mm |
A4-Plus | 210 x 330 mm |
A4 | 210 x 297 mm |
A5-Extra | 174 x 235 mm |
A5 | 148 x 210 mm |
A6 | 105 x 148 m) |
B0 | 1000 x 1414 mm |
B1 | 707 x 1000 mm |
B2 | 500 x 707 mm |
B3 | 353 x 500 mm |
B4 | 250 x 353 mm |
B5-Extra | 201 x 276 mm |
B5 | 176 x 250 mm |
B6 | 125 x 176 mm |
C6 | 162 x 229 mm |
Engineering-A | 8.5 x 11 inch |
Engineering-B | 11 x 17 inch |
Engineering-C | 17 x 22 inch |
Engineering-D | 22 x 34 inch |
Engineering-E | 34 x 44 inch |
Architectural-A | 9 x 12 inch |
Architectural-B | 12 x 18 inch |
Architectural-C | 18 x 24 inch |
Architectural-D | 24 x 36 inch |
Architectural-E | 36 x 48 inch |
Architectural-E2 | 30 x 42 inch |
Letter | 8.5 x 11 inch |
Legal | 8.5 x 14 inch |
Tabloid | 11 x 17 inch |
Slide | 11 x 7.33 inch |
Ledge | 17 x 11 inch |
Executive | 7.25 x 10.5 inch |
Statement | (5.5 x 8,5 inch) |
A1F | 594 x 1189 mm |
A3F | 297 x 594 mm |
PRINTERNAME=string
Name of printer to use.
DRIVERNAME=string
Name of driver to use. To be used together with PRINTERNAME.
PORTNAME=string
Name of port to use. To be used together with PRINTERNAME.
ROTATION=90
Sets the rotation of the plot. Accepted values are 0, 90,180 and 270.
USEROINSTRUCTION=ON/OFF
Some HPGL-2 files contains a RO (Rotation) instruction that controls the rotation of the drawing. Select this option to use this instruction when printing the file.
WATERMARKCOLOR=#RRGGBB
Watermark text color. The color value is coded as red, green and blue intensities in hexadecimal notation (HTML standard - #RRGGBB).
WATERMARKFIXEDPOS=10.5,20.5
Place watermark text at a fixed position. Requires two parameters, distance from the left and top edge of the paper.
Both distances are given in millimeters. Floating point values are accepted (using dot as decimal delimiter).
Note: Cannot be combined with WATERMARKVPOS.
WATERMARKFONT=ARIAL,26,BOLD
Define the font to use for watermark text. The first parameter is a font name, eg. Arial, the next parameter is
the font height in points, and the last parameter is one of the following : Regular, Bold, Italic or Bold Italic.
WATERMARKORDER=0
Set watermark draw order. Accepted values are 0 (below drawing) or 1 (on top of drawing).
WATERMARKROTATION=45
Set watermark text rotation. Accepted values are 0, 45, 90, 135, 180, 225, 270 and 315 degrees.
WATERMARKTEXT=string
A text string to be used as watermark text for the printed document.
WATERMARKVPOS=0
Vertical alignment to use for the watermark text. Possible values: 0 (top), 1 (middle) and 2 (bottom).
Note: Cannot be combined with WATERMARKFIXEDPOS.
Lines that start with ; or # are ignored (comments).
Footer and Header Macro Defintions
To include specific information in the header or footer, you may use the following macros as part of the text:
Type this |
To print this |
&d |
Date in short format as specified by Regional Settings in Control Panel. |
&f | File name. |
&F | Full file path including folder. |
&n | Line break. You can have a maximum of three text lines. |
&P | Total number of pages in document. |
&p | Printed page number. |
&s | Scaling used for printing. |
&t | Time in the format specified by Regional Settings in Control Panel. |
&u | Current user name |
Sample init file:
[ViewCompanion Plot Configuration]
PENTABLE=c:\vc\default.vpt
SCALE=FIT
CENTER=ON
COPIES=2
MONOCHROME=OFF
HEADER=Printed by &u on &d
HEADERPOS=UR
FOOTER=Page &p of &P
FOOTERPOS=LM
FONT=ARIAL,24,BOLD
ORIENTATION=2
PAPERSIZE=A3
|