File Type Constants Specification

This section is a reference for those specifying the /F# and /C# source and target file types from the command line. The file type constants used are dependent on the conversion method being used (Please see section on conversion methods for more info).

 

MS Word Conversion Method (/M1)

If using the MS Word conversion method the table below is valid for the Target file type constant (/C# switch). Other file type constants may appear when selecting the "OTHER FILE TYPES" from the target file type selection within the software user interface.

File Type Constant

File Type

0

Word Document (*.DOC)

12

Word Document (*.DOCX) XML format

4

DOS Text (*.TXT)

5

DOS Text - Line Breaks (*.TXT)

7

Encoded Text (*.TXT)

8

HTML (*.HTM, *.HTML)

6

Rich Text Format (RTF)

2

Text

3

Text Line Breaks

7

Unicode Text

11

XML (MS Word 2003 and beyond)

13

XML document format with macros enabled

16

Word default document ‘SAVE AS’ file format. For Microsoft Office Word 2007 this is DOCX, but can be modified by a user.

17

PDF (requires Microsoft Add-in "Microsoft Save as PDF or XPS")

18

XPS (requires Microsoft Add-in "Microsoft Save as PDF or XPS")

19

Word XML Document (*.XML)

20

Word XML Macro Enabled (*.XML)

File Type Constants for use with the /M1 and /C# command line switches

 

Convert Doc Conversion Method (/M2)

If using the ‘Convert Doc’ conversion method the table below is valid for specifying the /C# and /F# command line arguments. This is the default conversion method.

File Type Constant

File Type

1

Text

4

HTML

5

RTF Rich Text Format

6

Unicode Text

9

Word Document (*.DOC)

*12

PDF format

13

Word Document (*.DOCX) XML format

File Type Constants for use with the /M2 /F# and /C# command line switches

* = Cannot use PDF as an original file type (/F#).

 

 

'PDF File Conversion' Method (/M3)

If you are using the PDF File Conversion method the table below is valid for specifying the /C# command line argument. /F# (original file type) is not required as it is assumed to be a PDF file.

File Type Constant

File Type

1

Text

2

HTML

3

RTF/DOC (Rich Text File/ MS Word file)

File Type Constants for use with the /M3 and /C# command line switches

 

 

See Also:

Complete List of Command Line Examples

"Using 'Convert Doc' - Command Line"

"Command Line Switch Specification"

Helpful Hints For Creating a Command Line