TrueDTP can be executed in Batch-Modus (Command Line). This document describes the use of TrueDTP in batch and in winexe mode (execution from another windows applications).


Example 1 - Batch conversion using TrueDTP configuration file::
  In this case only basic parameter will be used. All settings (colors format, size...) will be readen from the TrueDTP configuration file.
"C:\Programme\cad2cad\TrueDTP\TrueDTP.exe" -batch -default:"c:\dtpconfig.tdt" -root:"c:\dxf_files" -m:"*a*.dxf"

The file dtpconfig.tdt is a configuration file that will be by saving the TrueDTP settings.



Example 2 - Batch conversion from command line:
  This example shows which parameter have to be set if you do not use TrueDTP configuration file.
"C:\Programme\cad2cad\TrueDTP\TrueDTP.exe" -batch -root:"c:\drw" -m:*.dxf -fo:tiff -colormode:rgb -dpi:400 -w:100 -h:300 -t:"c:\output"

Example 3 - Using command file:
  In this case the anly batch parameter is the name of the command file. This file includes all setting that can be done using the batch parameter.
"C:\Programme\cad2cad\TrueDTP\TrueDTP.exe" -file:"c:\dtp.par"
Command file:dtp.par:

#Comment
-batch
-recurse
-root:"d:\dxf"
-m:"c*.dwg,c*.dxf"
-target:"d:\tmp"
-format:pdf
-c:rgb
-w:100
-h:100
-dpi:300
-marginleft:10
-marginright:10
-margintop:10
-marginbottom:10
-keepdirstruct:yes
#Kommentarzeile


Name Value,
Example
Description
-file -file:"c:\truedtp.par" Defines the command file (see example 3)
The command file is a simple text file, that can be created using Windows Notepad.
The file must include all necessary parameters that are needed for batch execution.
#- marks a comment line
-default -default:"c:\myConfig.tdp" TrueDTP config file
-batch -batch Turns in batch mode, no user interface appears
-sem -sem:"semafor_name" Helps to control batch mode execution by starting the converter from other Windows applications.
The semaphore will be released after the conversion process is terminated.
-root
-r
-r:"c:\myFolder" Directory with files to be converted
-recurse -recurse Tells the program that sub-directories should be converted
-mask
-m
-m:"*a*.dxf" File filter
Legt Namen der Dateien fest, die konvertiert werden sollen.
All filter should be insertet in ""
Examples: -m:"a.dxf" , -m:"*b.dxf"
-xrefpath
-x
-x:"c:\xrefs" XRef directory (directory in which the external references)
-fontpath
-fp
-fp:"c:\shxs" Directory in which the SHX font files are located
-target
-t
-t:"c:\myOutput" Output directory for the converted files
-format
-fo
tiff, jpeg, png, bmp, gif, pdf, eps, hpgl, emf, wmf, svg, dwf, dwg, dxf, swf

-format:pdf
Output format
-keepdirstruct yes
no

-keepdirstruct
When you convert with the option "Recurse Subdirectories" directory structure will be maintained
-colormode
-c
rgb
grayscale
blackwhite

-colormode:rgb
Sets the color depth in the output files
-width
-w
-width:100 Width of the output image in mm
-height
-h
-height:200 Height of the output image in mm
-dpi -dpi:300 Resolution for raster images
-marginleft
-marginright
-margintop
-marginbottom
-marginleft:10 Output margins in mm
-pdfgenmode 0
1

-pdfgenmode:0
Layout conversion method:
0-Each layout is converted into a separate PDF file
1-Converts all layouts in one PDF file
-pdfcompression 0
1

-pdfcompression:0
PDF-Compression method.
0-No compression (ASCII)
1-Binary Compression
-dwfcompression ascii
bincomp
binary

-dwfcompression:binary
DWF Compression method. ascii-ASCII (No compression ), binary-binary output, bincomp-binar and compressed
-dwfversion 42
55
60

-dwfversion:55
DWF Output version
-dwflayoutconversion multifile
singlefile

-dwflayoutconversion:singlefile
singlefile-all Layouts will be saved in one DWF file
multifile-Each layout is converted into a separate file.