The following command-line options are supported by htmldoc:
--batchfilename.book
Generates the specified book file without opening the GUI.
--bodycolorcolor
Specifies the background color for all pages.
--bodyfont{courier,helvetica,monospace,sans,serif,times}--textfont{courier,helvetica,monospace,sans,serif,times}
Specifies the default typeface for all normal text.
--bodyimagefilename
Specifies the background image that is tiled on all pages.
--book
Specifies that the HTML sources are structured (headings, chapters, etc.)
--bottommargin
Specifies the bottom margin in points (no suffix or ##pt), inches (##in), centimeters (##cm), or
millimeters (##mm).
--charset{cp-nnnn,iso-8859-1,...,iso-8859-15,utf-8}
Specifies the character set to use for the output. Note: UTF-8 support is limited to the first 128
Unicode characters that are found in the input.
--color
Specifies that PostScript or PDF output should be in color.
--continuous
Specifies that the HTML sources are unstructured (plain web pages.) No page breaks are inserted
between each file or URL in the output.
--datadirdirectory
Specifies the location of the htmldoc data files, usually /usr/share/htmldoc or C:/ProgramFiles/HTMLDOC.--duplex
Specifies that the output should be formatted for double-sided printing.
--effectduration{0.1...10.0}
Specifies the duration in seconds of PDF page transition effects.
--embedfonts
Specifies that fonts should be embedded in PDF and PostScript output.
--encryption
Enables encryption of PDF files.
--fontsizesize
Specifies the default font size for body text.
--fontspacingspacing
Specifies the default line spacing for body text. The line spacing is a multiplier for the font
size, so a value of 1.2 will provide an additional 20% of space between the lines.
--footerfff
Sets the page footer to use on body pages. See the HEADERS/FOOTERSFORMATS section below.
--formatformat-tformat
Specifies the output format: epub, html, htmlsep (separate HTML files for each heading in the table-
of-contents), ps or ps2 (PostScript Level 2), ps1 (PostScript Level 1), ps3 (PostScript Level 3),
pdf11 (PDF 1.1/Acrobat 2.0), pdf12 (PDF 1.2/Acrobat 3.0), pdf or pdf13 (PDF 1.3/Acrobat 4.0), or
pdf14 (PDF 1.4/Acrobat 5.0).
--gray
Specifies that PostScript or PDF output should be grayscale.
--headerfff
Sets the page header to use on body pages. See the HEADERS/FOOTERSFORMATS section below.
--header1fff
Sets the page header to use on the first body/chapter page. See the HEADERS/FOOTERSFORMATS section
below.
--headfootfontfont
Sets the font to use on headers and footers.
--headfootsizesize
Sets the size of the font to use on headers and footers.
--headingfonttypeface
Sets the typeface to use for headings.
--help
Displays a summary of command-line options.
--helpdirdirectory
Specifies the location of the htmldoc online help files, usually /usr/share/doc/htmldoc or
C:/ProgramFiles/HTMLDOC/DOC.--hfimageNfilename
Specifies an image (numbered from 1 to 10) to be used in the header or footer in a PostScript or PDF
document.
--jpeg[=quality]
Sets the JPEG compression level to use for large images. A value of 0 disables JPEG compression.
--leftmargin
Specifies the left margin in points (no suffix or ##pt), inches (##in), centimeters (##cm), or
millimeters (##mm).
--letterheadfilename
Specifies an image to be used as a letterhead in the header or footer in a PostScript or PDF
document. Note that you need to use the --header,--header1, and/or --footer options with the L
parameter or use the corresponding HTML page comments to display the letterhead image in the header
or footer.
--linkcolorcolor
Sets the color of links.
--links
Enables generation of links in PDF files (default).
--linkstyle{plain,underline}
Sets the style of links.
--logoimagefilename
Specifies an image to be used as a logo in the header or footer in a PostScript or PDF document, and
in the navigation bar of a HTML document. Note that you need to use the --header,--header1, and/or
--footer options with the l parameter or use the corresponding HTML page comments to display the
logo image in the header or footer.
--no-compression
Disables compression of PostScript or PDF files.
--no-duplex
Disables double-sided printing.
--no-embedfonts
Specifies that fonts should not be embedded in PDF and PostScript output.
--no-encryption
Disables document encryption.
--no-jpeg
Disables JPEG compression of large images.
--no-links
Disables generation of links in a PDF document.
--no-numbered
Disables automatic heading numbering.
--no-pscommands
Disables generation of PostScript setpagedevice commands.
--no-strict
Disables strict HTML input checking.
--no-title
Disables generation of a title page.
--no-toc
Disables generation of a table of contents.
--numbered
Numbers all headings in a document.
--nuppages
Sets the number of pages that are placed on each output page. Valid values are 1, 2, 4, 6, 9, and
16.
--outdirdirectory-ddirectory
Specifies that output should be sent to a directory in multiple files. (Not compatible with PDF
output)
--outfilefilename-ffilename
Specifies that output should be sent to a single file.
--owner-passwordpassword
Sets the owner password for encrypted PDF files.
--pagedurationI{1.0...60.0}
Sets the view duration of a page in a PDF document.
--pageeffecteffect
Specifies the page transition effect for all pages; this attribute is ignored by all Adobe PDF
viewers.
--pagelayout{single,one,twoleft,tworight}
Specifies the initial layout of pages for a PDF file.
--pagemode{document,outlines,fullscreen}
Specifies the initial viewing mode for a PDF file.
--path
Specifies a search path for files in a document.
--permissionspermission[,permission,...]
Specifies document permissions for encrypted PDF files. The following permissions are understood:
all, none, annotate, no-annotate, copy, no-copy, modify, no-modify, print, and no-print. Separate
multiple permissions with commas.
--pre-indentdistance
Specifies the indentation of pre-formatted text in points (no suffix or ##pt), inches (##in),
centimeters (##cm), or millimeters (##mm).
--pscommands
Specifies that PostScript setpagedevice commands should be included in the output.
--quiet
Suppresses all messages, even error messages.
--refererurl
Specifies the URL that is passed in the Referer: field of HTTP requests.
--rightmargin
Specifies the right margin in points (no suffix or ##pt), inches (##in), centimeters (##cm), or
millimeters (##mm).
--sizepagesize
Specifies the page size using a standard name or in points (no suffix or ##x##pt), inches (##x##in),
centimeters (##x##cm), or millimeters (##x##mm). The standard sizes that are currently recognized
are "letter" (8.5x11in), "legal" (8.5x14in), "a4" (210x297mm), and "universal" (8.27x11in).
--strict
Enables strict HTML input checking.
--textcolorcolor
Specifies the default color of all text.
--title
Enables the generation of a title page.
--titlefilefilename--titleimagefilename
Specifies the file to use for the title page. If the file is an image then the title page is
automatically generated using the document meta data and title image.
--tocfooterfff
Sets the page footer to use on table-of-contents pages. See the HEADERS/FOOTERSFORMATS section
below.
--tocheaderfff
Sets the page header to use on table-of-contents pages. See the HEADERS/FOOTERSFORMATS section
below.
--toclevelslevels
Sets the number of levels in the table-of-contents.
--toctitlestring
Sets the title for the table-of-contents.
--topmargin
Specifies the top margin in points (no suffix or ##pt), inches (##in), centimeters (##cm), or
millimeters (##mm).
--user-passwordpassword
Specifies the user password for encryption of PDF files.
--verbose-v Provides verbose messages.
--version
Displays the current version number.
--webpage
Specifies that the HTML sources are unstructured (plain web pages.) A page break is inserted between
each file or URL in the output.