CoolUtils Logo
German  Italian  Dutch  Spanish  Korean  Russian

Command Line Parameters

content

You can convert HTML files to other file formats via Command line using Total HTML Converter.

To work with Command line you should use the following code: HtmlConverter.exe <source> <destination> <options> ,

where

  • <source> is the destination path of the original HTML file location;
  • <destination> is the destination path where converted file should be kept;
  • <options> is the name of the option you want to use while converting the file.

For example: HtmlConverter.exe C:\Documents\index.htm C:\PDF\example.pdf - c PDF

The program will convert the file index.htm into PDF document example.pdf and place it in the folder C:\PDF\

  1. If you need to convert all the HTML files from appropriate folder use * sign.

    For example: HtmlConverter.exe C:\Documents\*.htm C:\PDF\ -c PDF

    Total HTML Converter will convert all HTML files from this folder C:\Documents\ to PDF format and place the converted files to folder C:\PDF\

  2. If you need to do batch conversion, put appropriate HTML files to list.txt

    For example: HtmlConverter.exe -list List.txt C:\PDF\ -c PDF

    Total HTML Converter will convert all the files from file list List.txt to PDF and place them to C:\PDF\

  3. As for Command line options you may observe the list of them in Total HTML Converter itself:

    • Click 'Help' and select 'Command line parameters'.

      Command-line2

    • The list of options will appear. The options are the following:

      • -log <FileName> - Do not 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
      • -FP - Fit To Page Option. Use it when you convert several HTML files with different orientation. The program will automatically select the rigth positioning for each file.
      • -si - Convert into single image. It means that you may convert several HTML files into one image (tiff, jpeg).
      • -ri - Items to render. You may choose what items should be included into the output document: text, images or shapes. You may choose one of these items, two of them or all three.
        • text - render text only. If you render text only, shapes and images will not be included into the output file.

        • shapes - If you render shapes only, text and images will not be converted.

        • images - If you render images only, shapes and text will not be converted

      • -PgHead - Page Heading with parameters like IE's page setup (&w&bPage &p of &P)
      • -PgFoot - Page Footing with parameters like IE's page setup (&u&b&d)
      • -HFFS - Headers and Footers font size
      • -HFFN - Headers and Footers font name
      • -HFM - Header and Footer 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
      • -jq - JPeg Quality
      • -OutFmt - Output Image Format (for PDF)
        • BMP - Bitmap compression
        • JPEG - JPEG compression
        • GIF - GIF compression
        • PNG - PNG compression
        • Metafile - Metafile
        • CCITT3 - Bi-level Group 3 CCITT compression, bidimensional (G3FAX2D)
        • CCITT4 - Bi-level 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 (pack bits)
        • 3 - JPEG compression
        • 4 - Bi-level Huffman compression (CCITT1D)
        • 5 - Bi-level Group 3 CCITT compression, monodimensional (G3FAX1D)
        • 6 - Bi-level Group 3 CCITT compression, bidimensional (G3FAX2D)
        • 7 - Bi-level 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 - Paper Size
        • 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>
      • -bc - Background Color
      • -wmText - Watermark Text. Watermark is the text which you may place in the document. The way it should look like is: wmText=Watermark wmSize=16 wmName=Verdana
      • -wmSize - Define watermark font size
      • -wmColor - Define watermark font color
      • -wmName - Set watermark font name
      • -wmHorizPos - Watermark Horizontal Position. Choose the positioning of the watermark.

        • Left - Left
        • Center - Center
        • Right - Right

      • -wmVertPos - Watermark Vertical Position

        • Top - Top
        • Middle - Middle
        • Bottom - Bottom

      • -OptionFile - Option file. If your command line is too long you can use Option File. All command line parameters can be placed in it.

  4. You may also use macros in the Destination path. To do this enter the following:

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

    For example: destination C:\<DATE>_<TIME:hhmm> produces file C:\20080301_1502

    Default options:


    DPI - Screen Pixels Per Inch
    DPIX - 0
    DPIY - 0
    JPEG Quality - 100
    BMP Pixel Format - 24bit
    Compression - Maximum
    Encrypt - False
    User Permissions - Copy, Modify, Print, FormFill, Annotation, Accessibility, DocAssembly, High Resolution Print
    Paper Size - A4
    Paper Orientation - Portrait
    Custom Paper Size Width - 10.2 inch
    Custom Paper Size Height - 11
    TIFF Compression Type - TIFF LZW
    Timeout - 600
    Background Color - White
    Background Type - Color

Site Map  |  Contacts |  Press Center | Resellers | About |  Privacy Policy |    Copyright © 1998-2017 CoolUtils Development. All rights reserved.   GPlus