ViewCompanion
Convert Init File Description

This file can be used to override the default settings used when ViewCompanion converts a drawing, and can be used in combination with the command line option /ci.

The file format is simple and uses a set of recognized keywords, as described below.
The file must start with the following header:

[ViewCompanion Convert Configuration]

Then one or more statements, using the following keywords, can be listed:

CREATEMULTIFILE=ON/OFF
If set to ON, multiple files will be created from a multipage HPGL file.

CREATEMULTIPAGE=ON/OFF
If set to ON, a multipage file will be created from a multipage HPGL file.

DWFCOMPRESSION=ON/OFF
If set to ON, DWF compression will be enabled. Set to OFF to create uncompressed DWF files.

LANDSCAPE=ON/OFF
If set to ON, the selected paper size will be rotated to landscape mode. Paper sizes are by default in portrait mode.

LOGFILE=ON/OFF
If set to ON, a log file will be created.
LOGFILEUNIT=0
Can be 0 (mm) or 1 (inches).

MONOCHROME=ON/OFF
If set to ON, the converted file will use only black and white colors.

PAPERSIZE=A3
Select the paper size to use for conversion.
Below is a table of the available paper formats:
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 mm)
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)

PDFCOMPRESSION=ON/OFF
If set to ON, PDF compression will be enabled. Set to OFF to create uncompressed PDF files.

PENTABLE=pentablefilename
Convert the file using the given pentable.

RASTERDPI=200
Sets the dots per inch to use when converting to raster formats.

RASTERBPP=1
Sets the number of bits per pixels to use when converting to raster formats.
Allowed values are : 1,4,8 and 24.

ROTATION=90
Sets the rotation of the plot. Accepted values are 0, 90,180 and 270.

SCALE=100
Sets the scale to use for conversion Accepted value are an integer (percentage).

SCALEPENTABLE=ON/OFF
If set to ON the pentable will be scaled with the drawing.

SCALINGTYPE=0
Set the scaling type to use. If set to 0 (zero), the SCALE parameter will be used.
If the scaling type is set to 1, the converted file will be scaled to fit the selected PAPERINDEX.
If the scaling type is set to 2, the USERWIDTH and USERHEIGHT parameters decide the size of the converted file.

SETBACKCOLOR=0
Set the background to use (integer value; 0=black, 16777215=white).

SVGCOMPRESSION=ON/OFF
If set to ON, SVG compression will be enabled. Set to OFF to create uncompressed SVG files.

TEXTPENTABLE=ON/OFF
If set to ON, pen table will also affect HPGL text entities (LB).

TIFFCOMPRESSION=1
Compression to use for converted TIFF files.
Following values are available:

1Uncompressed
2CCITT RLE (only valid if RASTERBPP is 1)
3CCITT G3 (only valid if RASTERBPP is 1)
4CCITT G4 (only valid if RASTERBPP is 1)
5LZW
32773Packbits

USEBACKCOLOR=ON/OFF
If set to ON, the selected background color will be used.

USERHEIGHT=1024
Set the user defined height to use for the converted file.

USERWIDTH=1280
Set the user defined width to use for the converted file.

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 converting the file.

Sample init file:

[ViewCompanion Convert Configuration]
      PENTABLE=c:\vc\default.vpt
      SCALE=100
      SCALINGTYPE=0
      MONOCHROME=OFF
      
      

© Software Companions,  Norway  E-mail: sales@softwarecompanions.com