% htmldoc -f outfile.html infile1.html infile2.html ... % htmldoc -f outfile.pdf infile1.html infile2.html ... % htmldoc -f outfile.ps infile1.html infile2.html ...The "outfile.html", "outfile.pdf", and "outfile.ps" arguments are the desired output file. "infile1.html", "infile2.html", etc. are your HTML source files.
By default HTMLDOC looks at the extension of the output file to determine the output format. Files ending in ".ps" select Level 2 Adobe® PostScriptTM output. For Level 1 PostScript see "Forcing Level 1 Output" below.
% htmldoc -d outdir -t html infile1.html infile2.html ... % htmldoc -d outdir -t ps1 infile1.html infile2.html ... % htmldoc -d outdir -t ps2 infile1.html infile2.html ...The "outdir" argument is the desired output directory. The "-t html", "-t ps1", and "-t ps2" arguments select HTML and PostScript output, respectively. "infile1.html", "infile2.html", etc. are your HTML source files. A separate HTML or PostScript file (doc####.html or doc####.ps) will be created for each chapter (H1 heading) in the document as well as a table of contents file (index.html or index.ps). For HTML output, all local image files that are referenced in the document will be copied to the output directory as well.
Multiple output files are currently not supported for PDF output.
% htmldoc --numbered -f outfile.html ...
% htmldoc --logo logo.gif ...The logo file can be of any supported image file type (GIF, JPEG, PNG).
% htmldoc --title title.gif ...The logo file can be of any supported image file type (GIF, JPEG, PNG).
% htmldoc --webpage ...This is equivalent to using the "--no-title" and "--no-toc" options.
% htmldoc --toclevels # ...The default depth is three levels (H1 to H3). To turn the table of contents off, use the "--no-toc" option:
% htmldoc --no-toc ...
% htmldoc --no-title ...
% htmldoc --bodycolor #RRGGBB ...The color can be any primary color (black, red, green, yellow, blue, magenta, cyan, or white) or a specific red-green-blue value.
% htmldoc --bodyimage filename ...The image file can be any PNG, GIF, or JPEG image.
% htmldoc --logo logo.gif --barcolor #RRGGBB ...The color can be any primary color (black, red, green, yellow, blue, magenta, cyan, or white) or a specific red-green-blue value.
% htmldoc --gray -f outfile.ps ...This option is necessary for all B&W Level 1 PostScript printers.
% htmldoc --jpeg -f outfile.ps ...The default JPEG quality is 90; to set a different quality use:
% htmldoc --jpeg=quality -f outfile.ps ...where quality is the standard JPEG quality level from 1 to 100.
JPEG compression is not available on Level 1 PostScript printers.
% htmldoc -f outfile.ps -t ps1 ...This option is necessary for all Level 1 PostScript printers.
% htmldoc --duplex -f outfile.ps ...Note that this does not select duplexing on the printer but merely adjusts the formatting so that the left & right margins are swapped on the back side and chapters start on an odd-numbered page. You must still select duplexing in your printer driver or on the printer itself.
% htmldoc --size letter ... % htmldoc --size a4 ... % htmldoc --size universal ... % htmldoc --size WIDTHxHEIGHT ... % htmldoc --size WIDTHxHEIGHTin ... % htmldoc --size WIDTHxHEIGHTcm ... % htmldoc --size WIDTHxHEIGHTmm ...The "WIDTH" and "HEIGHT" arguments can be in points (no units specified), inches, centimeters, or millimeters. The default page size is Universal (8.27x11in or 210x279mm) which is the minimum of the US and European standard sizes (Letter and A4, respectively).
Note that this does not select a media size on the printer but merely adjusts the formatting so that the text and images appear within the given page area. You must still select the appropriate media size in your printer driver or on the printer itself.
% htmldoc --fontsize 9.0 --fontspacing 2.0 ... % htmldoc --bodyfont helvetica ... % htmldoc --headingfont times ...The typefaces for "--bodyfont" and "--headingfont" can be "courier", "times", or "helvetica".
Char | Description |
---|---|
. | A period indicates that the field should be blank. |
t | A "t" indicates that the field should contain the document title. |
h | An "h" indicates that the field should contain the current heading. |
l | A lowercase L indicates that the field should contain the logo image. |
1 | The number 1 indicates that the field should contain the current page number in decimal format (1, 2, 3, ...) |
i | A lowercase I indicates that the field should contain the current page number in lowercase roman numerals (i, ii, iii, ...) |
I | An uppercase I indicates that the field should contain the current page number in uppercase roman numerals (I, II, III, ...) |
% htmldoc --headfootsize 9.0 --headfootfont courier ...
% htmldoc --gray -f outfile.pdf ...
% htmldoc --jpeg -f outfile.pdf ...The default JPEG quality is 90; to set a different quality use:
% htmldoc --jpeg=quality -f outfile.pdf ...where quality is the standard JPEG quality level from 1 to 100.
% htmldoc --duplex -f outfile.pdf ...Note that this does not select duplexing on the printer but merely adjusts the formatting so that the left & right margins are swapped on the back side and chapters start on an odd-numbered page. You must still select duplexing in your printer driver or on the printer itself.
% htmldoc --size letter ... % htmldoc --size a4 ... % htmldoc --size universal ... % htmldoc --size WIDTHxHEIGHT ... % htmldoc --size WIDTHxHEIGHTin ... % htmldoc --size WIDTHxHEIGHTcm ... % htmldoc --size WIDTHxHEIGHTmm ...The "WIDTH" and "HEIGHT" arguments can be in points (no units specified), inches, centimeters, or millimeters. The default page size is Universal (8.27x11in or 210x279mm) which is the minimum of the US and European standard sizes (Letter and A4, respectively).
Note that this does not select a media size on the printer but merely adjusts the formatting so that the text and images appear within the given page area. You must still select the appropriate media size in your printer driver or on the printer itself.
% htmldoc --fontsize 9.0 --fontspacing 2.0 ... % htmldoc --bodyfont helvetica ... % htmldoc --headingfont times ...The typefaces for "--bodyfont" and "--headingfont" can be "courier", "times", or "helvetica".
Char | Description |
---|---|
. | A period indicates that the field should be blank. |
t | A "t" indicates that the field should contain the document title. |
h | An "h" indicates that the field should contain the current heading. |
l | A lowercase L indicates that the field should contain the logo image. |
1 | The number 1 indicates that the field should contain the current page number in decimal format (1, 2, 3, ...) |
i | A lowercase I indicates that the field should contain the current page number in lowercase roman numerals (i, ii, iii, ...) |
I | An uppercase I indicates that the field should contain the current page number in uppercase roman numerals (I, II, III, ...) |
% htmldoc --headfootsize 9.0 --headfootfont courier ...