Repeatable output
Reuse the same paper, scale, orientation, color and printer settings for every job.
Windows printing automation
Print PDF, DWG, DWF, DXF, PLT, HPGL/2, CGM, TIFF and other supported technical files from scripts and automated Windows workflows. Start with a simple print command, select a particular printer, or use a reusable printer configuration file for consistent output.
ViewCompanion can open and print supported technical documents from a command, batch file, another application or Windows Task Scheduler. This makes repetitive printing easier to standardize while keeping document processing on your own Windows computer or network.
Reuse the same paper, scale, orientation, color and printer settings for every job.
Start printing from batch files, scheduled tasks or an existing document-management process.
Print PDF, CAD drawings, plot files, raster documents and other supported formats through one application.
For straightforward printing, use the /p parameter followed by the document filename. ViewCompanion opens the file and prints it using the applicable printer and print settings.
/p before the document filename.General command pattern"C:\Program Files\Software Companions\ViewCompanion Premium\ViewCompanion.exe" /p "inputfile"
"C:\Program Files\Software Companions\ViewCompanion Pro\ViewCompanion.exe" /p "inputfile"
"C:\Program Files\Software Companions\ViewCompanion Standard\ViewCompanion.exe" /p "inputfile"
Print a PDF fileviewcompanion.exe /p "C:\Drawings\floor-plan.pdf"
Print a DWG drawingviewcompanion.exe /p "C:\Drawings\mechanical-layout.dwg"
Use /pt when the command itself should identify the printer, driver and port. This is useful when the same computer has several printers or plotters installed.
General /pt command patternviewcompanion.exe /pt "inputfile" "printer" "driver" "port"
Example using a named printerviewcompanion.exe /pt "C:\Drawings\sheet-a1.pdf" "Engineering Plotter" "Printer Driver Name" "PORTPROMPT:"
The printer, driver and port parameters must match the names configured in Windows. Verify them on the computer that will run the command. If you also need paper size, scaling, orientation or other repeatable settings, use a printer configuration file with /pi.
A printer configuration file stores the settings that should be applied to a print job. Use the /pi command followed by the configuration filename and document filename.
General /pi command patternviewcompanion.exe /pi "printer-config.ini" "inputfile"
Print an A3 drawing using saved settingsviewcompanion.exe /pi "C:\VCConfig\a3-landscape.ini" "C:\Drawings\assembly.dwg"
The command selects the document. The configuration file defines how and where it should be printed. You can update a shared configuration without rewriting every batch file that uses it.
a3-landscape.iniA3 paper, landscape orientation, centered and fitted to the page.a1-plotter.iniA named engineering plotter with A1 paper and a selected paper source.monochrome-review.iniBlack-and-white output with a review header and page-number footer.two-copy-issue.iniTwo copies with controlled scale and orientation.confidential-watermark.iniA repeated print profile with a visible document watermark.Every printer configuration file must start with the [ViewCompanion Plot Configuration] header. This example fits and centers a drawing on A3 paper in landscape orientation and adds useful document information.
a3-landscape.ini[ViewCompanion Plot Configuration]
SCALE=FIT
CENTER=ON
PAPERSIZE=A3
ORIENTATION=2
COPIES=1
MONOCHROME=OFF
HEADER=Printed by &u on &d
HEADERPOS=UR
FOOTER=&f - Page &p of &P
FOOTERPOS=LM
FONT=ARIAL,12,BOLD
Lines beginning with ; or # are treated as comments. See the printer configuration file reference for all supported keywords, paper sizes, header and footer macros, and watermark options.
| Setting | Purpose | Example |
|---|---|---|
SCALE and CENTER | Control drawing scale and placement on the sheet. | SCALE=FITCENTER=ON |
PAPERSIZE and ORIENTATION | Select the paper size and portrait or landscape output. | PAPERSIZE=A3ORIENTATION=2 |
PRINTERNAME, DRIVERNAME, PORTNAME | Direct the job to a particular installed Windows printer. | PRINTERNAME=Engineering Plotter |
MONOCHROME and PENTABLE | Control black-and-white output or apply a ViewCompanion pen table. | MONOCHROME=ON |
HEADER, FOOTER, FONT | Add filenames, dates, users, page numbers and other job information. | FOOTER=Page &p of &P |
WATERMARKTEXT and related options | Add and position watermark text on printed pages. | WATERMARKTEXT=CONFIDENTIAL |
Fit and center a document on A4 paper.
[ViewCompanion Plot Configuration] SCALE=FIT CENTER=ON PAPERSIZE=A4 ORIENTATION=1
Print two monochrome copies in landscape orientation.
[ViewCompanion Plot Configuration] MONOCHROME=ON COPIES=2 ORIENTATION=2
Add a gray diagonal watermark above the drawing.
[ViewCompanion Plot Configuration] WATERMARKTEXT=CONFIDENTIAL WATERMARKCOLOR=#808080 WATERMARKFONT=ARIAL,26,BOLD WATERMARKROTATION=45 WATERMARKVPOS=1 WATERMARKORDER=1
Place tested print commands in a Windows batch file when several known documents should be printed as one repeatable job. Each command can use the same configuration or a different profile.
print-drawing-set.bat@echo off
set "VC=C:\Program Files\Software Companions\ViewCompanion Premium\ViewCompanion.exe"
set "CFG=C:\VCConfig\a3-landscape.ini"
"%VC%" /pi "%CFG%" "C:\Drawing Set\sheet-01.pdf"
"%VC%" /pi "%CFG%" "C:\Drawing Set\sheet-02.dwg"
"%VC%" /pi "%CFG%" "C:\Drawing Set\sheet-03.plt"
If the print workflow will run unattended, test printer availability, permissions and paper handling while signed in as the same Windows account that will run the automated task.
SCALE=FIT and CENTER=ON when mixed drawing sizes should fit the selected paper.Yes. Use /p followed by the document filename for straightforward command-line printing.
Yes. Use /pt with the printer, driver and port, or define PRINTERNAME, DRIVERNAME and PORTNAME in a printer configuration file used with /pi.
Yes. A printer configuration file can define PAPERSIZE, ORIENTATION, SCALE, CENTER and other print settings.
Yes. The configuration format supports header, footer and watermark text, together with placement and formatting options. Header and footer macros can insert the filename, path, date, time, user, page number, total pages and print scale.
Yes. Printer configuration files can also be used with the hot-folder printing feature in ViewCompanion Premium.
See the complete ViewCompanion command-line parameter reference for the full command list and syntax.
ViewCompanion combines desktop viewing, printing and conversion with command-line and batch-processing tools for Windows workflows.
Explore ViewCompanion Premium Explore ViewCompanion Pro Explore ViewCompanion Standard