'\" t .\" Title: xhtml2pdf .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 01/05/2019 .\" Manual: User Commands .\" Source: pisa .\" Language: English .\" .TH "XHTML2PDF" "1" "01/05/2019" "pisa" "User Commands" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" xhtml2pdf \- PDF generator using HTML and CSS .SH "SYNOPSIS" .HP \w'\fBxhtml2pdf\fR\ 'u \fBxhtml2pdf\fR [\fB\-b\ \fR\fB\fIbase\ path\fR\fR] [\fB\-\-base=\fR\fB\fIbase\ path\fR\fR] [\fB\-c\ \fR\fB\fICSS\ file\fR\fR] [\fB\-\-css=\fR\fB\fICSS\ file\fR\fR] [\fB\-\-css\-dump\fR] [\fB\-d\fR] [\fB\-\-debug\fR] [\fB\-\-encoding=\fR\fB\fIcharacter\ encoding\fR\fR] [\fB\-h\fR] [\fB\-\-help\fR] [\fB\-q\fR] [\fB\-\-quiet\fR] [\fB\-\-version\fR] [\fB\-w\fR] [\fB\-\-warn\fR] [\fB\-x\fR] [\fB\-\-xml\fR] [\fB\-\-xhtml\fR] [\fB\-\-html\fR] [SRC] [DEST] .SH "DESCRIPTION" .PP This manual page documents briefly the xhtml2pdf command\&. .PP xhtml2pdf is an HTML\-to\-PDF converter using the ReportLab Toolkit, HTML5lib and pyPdf\&. .PP It supports HTML 5 and CSS 2\&.1 (and some of CSS 3)\&. It is completely written in pure Python so it is platform independent\&. The main benefit of this tool that a user with Web skills like HTML and CSS is able to generate PDF templates very quickly without learning new technologies\&. Easy integration into Python frameworks like CherryPy, KID Templating, TurboGears, Django, Zope, Plone, Google AppEngine (GAE) etc\&. .SH "OPTIONS" .PP A summary of options is included below\&. .PP SRC .RS 4 Name of a HTML file or a file pattern using * placeholder\&. If you want to read from stdin use \- as file name\&. You may also load an URL over HTTP\&. Take care of putting the \fIsrc\fR in quotes if it contains characters like ?\&. .RE .PP DEST .RS 4 Name of the generated PDF file or \- if you like to send the result to stdout\&. Take care that the destination file is not already opened by any other application like the Adobe Reader\&. If the destination is not writeable a similar name will be calculated automatically\&. .RE .PP \fB\-b\fR, \fB\-\-base\fR .RS 4 Specify a base path if input comes via STDIN\&. .RE .PP \fB\-c\fR, \fB\-\-css\fR .RS 4 Path to default CSS file .RE .PP \fB\-\-css\-dump\fR .RS 4 Dumps the default CSS definitions to STDOUT\&. .RE .PP \fB\-d\fR, \fB\-\-debug\fR .RS 4 Show debugging information\&. .RE .PP \fB\-\-encoding\fR .RS 4 The character encoding of SRC\&. If left empty (default) this information will be extracted from the HTML header data\&. .RE .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 Show the help text\&. .RE .PP \fB\-q\fR, \fB\-\-quiet\fR .RS 4 Show no messages\&. .RE .PP \fB\-\-version\fR .RS 4 Show version information\&. .RE .PP \fB\-w\fR, \fB\-\-warn\fR .RS 4 Show warnings .RE .PP \fB\-x\fR, \fB\-\-xml\fR, \fB\-\-xhtml\fR .RS 4 Force parsing in XML mode (automatically used if SRC ends with \&.xml)\&. .RE .PP \fB\-\-html\fR .RS 4 Force parsin in HTML mode (default)\&. .RE .SH "AUTHOR" .PP xhtml2pdf was written by Dirk Holtwick <>\&. .PP This manual page was written by Toby Smithe <>, for the Debian project (but may be used by others)\&.