CoolUtils Logo

Convert HTML Files Via Command Line With Total HTML Converter

Usage: HtmlConverter.exe <source> <destination> <options>
If you have path with spaces, use quotation marks.
By the way You can use macroses 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> produce file C:\20100923_1243

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 - Destination file format
    • doc - convert to Word file
    • rtf - convert to Rich Text file
    • xls - convert to Excel file
    • pdf - convert to PDF file
    • jpg - convert to JPEG file
    • tiff - convert to TIFF file
    • txt - convert to Text file
    • txtw - convert to Unicode Text file
    • emf - Enhanced windows metafile
    • Print - Print HTML file
  • -FP - Fit To Page
  • -AutoSize - Auto Size
  • -si - Convert into single image
  • -combine - Combine all html documents into one file
  • -ri - Render items
    • text - render text part
    • shapes - render shapes
    • images - render images
  • -PgHead - IE's hearders and footers are supported.Example: (&w&bPage &p of &P) adds page numbers ("Page 1 of 10")
  • -HeaderFileName - Set the header html file for the output document
  • -PgFoot - IE's hearders and footers are supported. Example: (&u&b&d)
  • -FooterFileName - Set the footer html file for the output document
  • -HFFS - Headers and Footers font size
  • -HFFN - Headers and Footers font name
  • -HFM - Header and Footer print mode
    • All - Print Footers or Headers on every page of document
    • NotFirst - Don't show header and footer on first page but print on other pages
    • NotLast - Don't show header and footer on last page but print on other pages
    • First - Print Footers or Headers only on the first page of the document
    • Last - Print Footers or Headers only on the last page of the document
  • -pc - PDF file compression
    • Fastest - Fastest compression
    • Normal - Normal compression
    • Max - Max compression
  • -DPI - DPI specifies the resolution (dots per inch) of the acquired image
  • -DPIX - DPIX specifies the horizontal resolution of the acquired image
  • -DPIY - DPIY specifies the vertical resolution of the acquired image
  • -po - Paper Orientation
    • Portrait - Portrait
    • Landscape - Landscape
  • -Timeout - Timeout milliseconds
  • -SiteUser - Site authentification user
  • -SitePass - Site authentification password
  • -jq - JPeg Quality
  • -OutFmt - Output Image Format (for PDF)
    • BMP - Bitmap compression
    • JPEG - JPEG compression
    • GIF - GIF compression
    • PNG - PNG compression
    • Metafile - Metafile
    • CCITT3 - Bilevel Group 3 CCITT compression, bidimensional (G3FAX2D)
    • CCITT4 - Bilevel Group 4 CCITT compression, bidimensional (G4FAX)
  • -DEC - Document Encoding Type
    • PA - Positional Accuracy
    • EE - Ease Of Editing
  • -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)
  • -mp - master (owner) password
  • -up - user password
  • -Author - Author (document properties)
  • -Creator - Creator (document properties)
  • -Keywords - Keywords (document properties)
  • -Subject - Subject (document properties)
  • -Title - Title (document properties)
  • -PFXFile - PFX File for sign document
  • -PFXPass - The password to open the PFX file
  • -SignLoc - The location that the signing was done
  • -SignCon - The contact information of the signer
  • -SignRes - The reason for signing document
  • -perm - user permissions
    • Copy - allow copy
    • Modify - allow modify
    • Print - allow print
    • Annotation - allow annotation
    • FormFill - allow form fill
    • Accessibility - allow accessibility
    • DocAssembly - allow document assembly
    • HighResPrint - allow high resolution print
  • -TM - Top Margin (inches)
  • -LM - Left Margin (inches)
  • -BM - Bottom Margin (inches)
  • -RM - Right Margin (inches)
  • -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
    • Auto - The size of the document will be calculated automatically
  • -pd - Custom paper size dimensions in mm <width>x<height>
  • -noac - No Auto Crop
  • -bc - Background Color
  • -bi - Background Image
  • -wmText - Watermark Text
  • -wmSize - Watermark Font Size
  • -wmColor - Watermark Font Color
  • -wmName - Watermark Font Name
  • -wmHorizPos - Watermark Horizontal Posisition
    • Left - Left
    • Center - Center
    • Right - Right
  • -wmVertPos - Watermark Vertical Posisition
    • Top - Top
    • Middle - Middle
    • Bottom - Bottom
  • -pn - Printer Name
  • -pt - Printer tray name
  • -IntPrn - Use Internal Printer Driver
  • -OptionFile - Option file. If your command line is too long you can use Option File. All command line parameters can be placed in it. The way it should look like is:
    • wmText=Watermark
    • wmSize=16
    • wmName=Verdana

Examples:

  • HtmlConverter.exe C:\Documents\index.htm C:\Pages\Doc1.doc -c doc
    Convert file index.htm into Word document Doc1.doc
  • HtmlConverter.exe http://www.CoolUtils.com C:\Pages\CoolUtils.pdf -c pdf
    Convert URL http://www.CoolUtils.com into PDF document CoolUtils.pdf
  • HtmlConverter.exe C:\Documents\*.htm C:\PDF\dest.pdf -cPDF -combine
    Convert all HTML files from this folder C:\Documents\ to PDF format and place the converted files to file C:\PDF\dest.pdf
  • HtmlConverter.exe -list List.txt C:\PDF\ -cPDF
    Convert all files from file list 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.