.\" Copyright (C) 2008 Steve Stalcup .\" .\" This manual page is free software. It is distributed under the .\" terms of the GNU General Public License as published by the Free .\" Software Foundation; either version 2 of the License, or (at your .\" option) any later version. .\" .\" This manual page is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this manual page; if not, write to the Free Software .\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 .\" USA .\" .TH "chm2pdf" "1" .if n .ad l .nh .SH "NAME" chm2pdf \- A tool convert chm to pdf format .SH "SYNOPSIS" .B chm2pdf .RI [ action ] .RI [ options ] .RI [ packages ] \&... .SH "DESCRIPTION" .PP chm2pdf is a package supports batch conversion, command line, PDF security options, password protection and compression modes. The program has Explorer-like interface .sp .SH OPTIONS .PP Actions of .B chm2pdf: (Usage: /usr/bin/chm2pdf [options] input_filename [output_filename]) .TP .BR \-\-`bodycolor color Specifies the background color for all pages. .TP .BR \-\-`bodyfont {courier,helvetica,monospace,sans,serif,times} .TP .BR \--bodyimage {bmp,gif,jpg,png} .TP .BR \-\-`book Specifies that the HTML sources are structured (headings, chapters, etc.). .TP .BR \-\-`bottom margin{in,cm,mm} Specifies the bottom margin in points (no suffix or ##pt), inches (##in), centimeters (##cm), or millimeters (##mm). .TP .BR \-\-`browserwidth pixels See http://www.htmldoc.org/newsgroups.php?ghtmldoc.general+v:3465 .TP .BR \-\-`charset {cp-874...1258,iso-8859-1...8859-15,koi8-r} Specifies the ISO character set to use for the output. .TP .BR \-\-`color Specifies that PDF output should be in color. .TP .BR \-\-`continuous Specifies that the HTML sources are unstructured (plain web pages). No page breaks are inserted between each file or URL in the output. .TP .BR \-\-`cookies 'name="value with space"; name=value' .TP .BR \-\-`datadir directory Specifies the location of the HTMLDOC data files, usually /usr/share/htmldoc .TP .BR \-\-`duplex Specifies that the output should be formatted for double-sided printing. .TP .BR \-\-`effectduration {0.1..10.0} Specifies the duration in seconds of PDF page transition effects. .TP .BR \-\-`embedfonts Specifies that fonts should be embedded in PDF output. .TP .BR \-\-`encryption Enables encryption of PDF files. .TP .BR \-\-`extract-only Extract the HTML files from the CHM file and stop. The extracted files will be found in CHM2PDF_WORK_DIR/input_filename_without_extension. .TP .BR \-\-`firstpage {p1,toc,c1} .TP .BR \-\-`fontsize {4.0..24.0} Specifies the default font size for body text. .TP .BR \-\-`headfootsize {6.0..24.0} Sets the size of the font to use on headers and footers. .TP .BR \-\-`headingfont {courier,helvetica,monospace,sans,serif,times} Sets the typeface to use for headings. .TP .BR \-\-`help Displays a summary of command-line options. .TP .BR \-\-`jpeg quality Sets the JPEG compression level to use for large images. A value of 0 disables JPEG compression. .TP .BR \-\-`landscape .TP .BR \-\-`left margin{in,cm,mm} Specifies the left margin in points .TP .BR \-\-`linkcolor color Sets the color of links. You can use well-known color names like blue, or the usual #RRGGBB notation. .TP .BR \-\-`links Enables generation of links in PDF files (default). .TP .BR \-\-`linkstyle {plain,underline} Sets the style of links. .TP .BR \-\-`logoimage filename.{bmp,gif,jpg,png} Specifies an image to be used as a logo in the header or footer in a PDF document. .TP .BR \-\-`logoimage filename.{bmp,gif,jpg,png} Note that you need to use the header and/or footer options with the l parameter. .TP .BR \-\-`no-compression Disables compression of PDF file. .TP .BR \-\-`no-duplex Disables double-sided printing. .TP .BR \-\-`no-embedfonts Specifies that fonts should not be embedded in PDF and PostScript output. .TP .BR \-\-`no-encryption Disables document encryption. .TP .BR \--no-links Disables generation of links in a PDF document. .TP .BR \-\-`no-localfiles .TP .BR \-\-`no-numbered Disables automatic heading numbering. .TP .BR \-\-`no-overflow .TP .BR \-\-`no-strict Disables strict HTML input checking. .TP .BR \-\-`no-title Disables generation of a title page. .TP .BR \-\-`no-toc Disables generation of a table of contents. .TP .BR \-\-`numbered Numbers all headings in a document. .TP .BR \-\-`nup {1,2,4,6,9,16} Sets the number of pages that are placed on each output page. Valid values are 1, 2, 4, 6, 9, and 16. .TP .BR \-\-`overflow Specifies that PDF output should be in color. .TP .BR \-\-`owner-password password Sets the owner password for encrypted PDF files. .TP .BR \-\-`pageduration {1.0..60.0} Sets the view duration of a page in a PDF document. .TP .BR \-\-`pageeffect {none,bi,bo,d,gd,gdr,gr,hb,hsi,hso,vb,vsi,vso,wd,wl,wr,wu} Specifies the page transition effect for all pages; this attribute is ignored by all Adobe PDF viewers. .TP .BR \-\-`pagelayout {single,one,twoleft,tworight} Specifies the initial layout of pages for a PDF file. .TP .BR \-\-`pagemode {document,outline,fullscreen} Specifies the initial viewing mode for a PDF file. .TP .BR \-\-`path "dir1;dir2;dir3;...;dirN" Specifies a search path for files in a document. .TP .BR \-\-`permissions {all,annotate,copy,modify,print,no-annotate,no-copy,no-modify, no-print,none} Specifies document permissions for encrypted PDF files. Separate multiple permissions with commas. .TP .BR \-\-`portrait .TP .BR \-\-`quiet Suppresses all messages, even error messages. .TP .BR \-\-`right margin{in,cm,mm} Specifies the right margin in points .TP .BR \-\-`size {letter,a4,WxH{in,cm,mm},etc} 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). .TP .BR \-\-`strict Enables strict HTML input checking. .TP .BR \-\-`textcolor color Specifies the default color of all text. .TP .BR \-\-`textfont {courier,helvetica,monospace,sans,serif,times} .TP .BR \-\-`title Enables the generation of a title page. .TP .BR \-\-`titlefile filename.{htm,html,shtml} 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 image title. .TP .BR \-\-`tocheader fff Sets the page header to use on table-of-contents pages. See below for the format of fff. .TP .BR \-\-`tocfooter fff Sets the page footer to use on table-of-contents pages. See below for the format of fff. .TP .BR \-\-`toclevels levels Sets the number of levels in the table-of-contents. .TP .BR \-\-`toctitle string Sets the title for the table-of-contents. .TP .BR \-\-`top margin{in,cm,mm} Specifies the top margin in points (no suffix or ##pt), inches (##in), centimeters (##cm), or millimeters (##mm). .TP .BR \-\-`user-password password Specifies the user password for encryption of PDF files. .TP .BR \-\-`version Displays the current version number. .TP .BR \-\-`webpage Specifies that the HTML sources are unstructured (plain web pages). A page break is inserted between each file or URL in the output. .TP .BR \-\-`color Specifies that PDF output should be in color. .TP .BR \-\-`color Specifies that PDF output should be in color. .SH BUGS Please report chm2pdf bugs to http://chm2pdf.googlecode.com/ .SH SEE ALSO .BR chm2pdf \-\-`help .SH AUTHORS Massimo Sandal .br Chris Karakas .br This manual page was written by Steve Stalcup for the \fBUbuntu GNU/Linux\fP system.