Installation of wkhtmltopdf (Linux version)¶
It is necessary to install “wkhtmltopdf” to use the PDF output function in | IM-FormaDesigner for Accel Platform.
The procedure to install “wkhtmltopdf” in /usr/local/bin is described below.
Moreover, if intra-mart Accel Platformis created in distributed environment, it is required to install in each application server.
Check environment variables¶
Check if /usr/local/bin is included in environment variable PATH. Add it if it is not included.$ echo $PATH
Installation¶
Place the downloaded “wkhtmltopdf-0.9.9-static-amd64.tar.bz2” in /usr/local/.
Extract the compressed file.
$ tar jxf wkhtmltopdf-0.9.9-static-amd64.tar.bz2Create symbolic link by the name “wkhtmltopdf” for execution file “wkhtmltopdf-amd64”.
$ ln -s wkhtmltopdf-amd64 wkhtmltopdf
Checking after installation¶
Check that installation is completed normally.
$ wkhtmltopdf --versionCheck that the version information is displayed as follows.
※Irrespective of version 0.9.9 installed on 2012/10/01, it is checked that wkhtmltopdf 0.9.6 is output for ‘Name’ in our company.[foo@redhat src]$ wkhtmltopdf --version Unknown long argument --version Name: wkhtmltopdf 0.9.6 Synopsis: wkhtmltopdf [OPTIONS]... <input file> [More input files] <output file> Description: Converts one or more HTML pages into a PDF document, using wkhtmltopdf patched qt. General Options: -b, --book Set the options one would usually set when printing a book --collate Collate when printing multiple copies --copies <number> Number of copies to print into the pdf file (default 1) --cover <url> Use html document as cover. It will be inserted before the toc with no headers and footers -H, --default-header Add a default header, with the name of the page to the left, and the page number to the right, this is short for: --header-left='[webpage]' --header-right='[page]/[toPage]' --top 2cm --header-line --extended-help Display more extensive help, detailing less common command switches -h, --help Display help -O, --orientation <orientation> Set orientation to Landscape or Portrait -s, --page-size <size> Set paper size to: A4, Letter, etc. --password <password> HTTP Authentication password -p, --proxy <proxy> Use a proxy -q, --quiet Be less verbose -t, --toc Insert a table of content in the beginning of the document --username <username> HTTP Authentication username -V, --version Output version information an exit Contact: If you experience bugs or want to request new features please visit <http://code.google.com/p/wkhtmltopdf/issues/list>, if you have any problems or comments please feel free to contact me: see <http://www.madalgo.au.dk/~jakobt/#about>