CoolUtils Logo

Convert Doc (Word) Files Via Command Line With Total Doc Converter

Total Doc Converter can convert DOC files to HTML, PDF, XLS, JPG, TIFF, and text in batch. It is easy-to-use even for beginners.
Though the regular converter can convert files via command line, there is a special server version with ActiveX.

Usage: DocConverter.exe <source> <destination> <options>
If you have path with spaces, use quotation marks.


Note that you can use macros in the destination path:

  •  <DATE[:format]> - current date, default format is yyyymmdd
  •  <TIME[:format]> - current time, default format hhmmss

For example: destination C:\<DATE>_<TIME:hhmm> will produce this file C:\20150318_1248

Options:

  • -log <FileName> - Don`t show errors. Write them to the log file
  • -list - File with files mask to convert
  • -Recurse - Include subfolders
  • -do - Delete originals
  • -kfs - Keep Folder Structure
  • -c - Convert action
    • XLS - convert to Microsoft Excel Format
    • HTM - convert to HTML Format
    • PDF - convert to Acrobat Reader Format
    • JPG - convert to jpeg file
    • TIFF - convert to tiff file
    • TXT - convert to text file
    • UNI - convert to unicode text file
    • RTF - convert to rtf file
  • -tc - TIFF image compression
    • 0 - uncompressed TIFF
    • 1 - LZW compression
    • 2 - RLE compression (packbits)
    • 3 - JPEG compression
    • 4 - Bilevel Huffman compression (CCITT1D)
    • 5 - Bilevel Group 3 CCITT compression, monodimensional (G3FAX1D)
    • 6 - Bilevel Group 3 CCITT compression, bidimensional (G3FAX2D)
    • 7 - Bilevel Group 4 CCITT compression, bidimensional (G4FAX)
  • -ipath - Image Path
  • -TM - Top Margin MM
  • -LM - Left Margin MM
  • -BM - Bottom Margin MM
  • -RM - Right Margin MM
  • -po - Paper Orientation
    • Portrait - Portrait
    • Landscape - Landscape
  • -ps - PaperSize
    • Letter - Letter
    • LetterSmall - Letter Small
    • Tabloid - Tabloid
    • Ledger - Ledger
    • Legal - Legal
    • Statement - Statement
    • Executive - Executive
    • Folio - Folio
    • A3 - A3
    • A4 - A4
    • A4Small - A4Small
    • A5 - A5
    • B4 - B4
    • B5 - B5
    • Quarto - Quarto
    • EnvC5 - Envelope C5
    • EnvC3 - Envelope C3
    • EnvC4 - Envelope C4
    • EnvC6 - Envelope C6
    • EnvB4 - Envelope B4
    • EnvB5 - Envelope B5
    • EnvB6 - Envelope B6
    • EnvMonarch - Envelope Monarch
    • Custom - Custom, you need to set paper dimensions
  • -pd - Custom paper size dimensions <width>x<height>
  • -WordWrap - Word Wrap
  • -FontName - Font Name
  • -FontSize - Font Size
  • -FontStyle - Font Style (B - Bold, U - Underline, I - Italic, S - StrikeOut [Example -FontStyle IB])

Examples:

  • DocConverter.exe C:\DOC\*.DOC C:\PDF\ -cPDF
    Convert all Doc files from this folder C:\DOC to PDF format and place the converted files to folder c:\PDF
  • DocConverter.exe -list c:\List.txt C:\PDF\ -cPDF
    Convert all files from file list c:\List.txt to PDF and place them to c:\PDF
Site Map  |  Contacts |  Press Center | Resellers | About |  Privacy Policy |    Copyright © 1998-2014 CoolUtils Development. All rights reserved.