No Description

Antialize 8f8b3dca50 Version 0.10.0_beta4 15 years ago
scripts 33940e1f34 Update config to use svg 15 years ago
src 396063c16e Use svg clipping, when using my version of the QT 15 years ago
.gitignore 442ed72499 Fixes for issue 267/268. Added arg screenWidth (defaults 1024). Changed fmt to default to jpg 15 years ago
COPYING 45fbd79b17 We use gplv3 17 years ago
Doxyfile edac9b5a82 Updated doxygen generation 15 years ago
README_WKHTMLTOIMAGE 8f8b3dca50 Version 0.10.0_beta4 15 years ago
README_WKHTMLTOPDF 8f8b3dca50 Version 0.10.0_beta4 15 years ago
common.pri 148ea7979a Fix windows shared build 15 years ago
static_qt_conf_base ccd5d5025a Explain why we exited with the error code we did 15 years ago
static_qt_conf_linux 33940e1f34 Update config to use svg 15 years ago
static_qt_conf_osx 33940e1f34 Update config to use svg 15 years ago
static_qt_conf_win 307a74b73f Prepare for beta release 15 years ago
version.pri 8f8b3dca50 Version 0.10.0_beta4 15 years ago
wkhtmltopdf.nsi.m4 519616f970 Update windows installer 15 years ago
wkhtmltopdf.pro 80d85e4d7a Share outputter code bettween wkhtmltopdf and wkhtmltoimage 15 years ago

README_WKHTMLTOIMAGE

=====================> wkhtmltoimage 0.10.0 beta4 Manual <======================
This file documents wkhtmltoimage, a program capable of converting HTML
documents into images.

==================================> Contact <===================================
If you experience bugs or want to request new features please visit
, if you have any problems or
comments please feel free to contact me:

==================================> License <===================================
Copyright (C) 2010 wkhtmltopdf/wkhtmltoimage Authors.



License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.

==================================> Authors <===================================
Written by Jan Habermann, Christian Sciberras and Jakob Truelsen. Patches by
Mehdi Abbad, Lyes Amazouz, Emmanuel Bouthenot, Benoit Garret and Mário Silva.

==================================> Synopsis <==================================
wkhtmltoimage [OPTIONS]...

==============================> General Options <===============================
--allow Allow the file or files from the specified
folder to be loaded (repeatable)
--cookie Set an additional cookie (repeatable)
--cookie-jar Read and write cookies from and to the
supplied cookie jar file
--crop-h Set height for croping
--crop-w Set width for croping
--crop-x Set x coordinate for croping
--crop-y Set y coordinate for croping
--custom-header Set an additional HTTP header (repeatable)
--custom-header-propagation Add HTTP headers specified by
--custom-header for each resource request.
--no-custom-header-propagation Do not add HTTP headers specified by
--custom-header for each resource request.
--debug-javascript Show javascript debugging output
--no-debug-javascript Do not show javascript debugging output
(default)
--encoding Set the default text encoding, for input
-H, --extended-help Display more extensive help, detailing
less common command switches
-f, --format Output file format (default is jpg)
-h, --help Display help
--htmldoc Output program html help
--images Do load or print images (default)
--no-images Do not load or print images
-n, --disable-javascript Do not allow web pages to run javascript
-n, --enable-javascript Do allow web pages to run javascript
(default)
--javascript-delay Wait some milliseconds for javascript
finish (default 200)
--load-error-handling Specify how to handle pages that fail to
load: abort, ignore or skip (default
abort)
--disable-local-file-access Do not allowed conversion of a local file
to read in other local files, unless
explecitily allowed with --allow
--enable-local-file-access Allowed conversion of a local file to read
in other local files. (default)
--manpage Output program man page
--minimum-font-size Minimum font size
--password HTTP Authentication password
--disable-plugins Disable installed plugins (default)
--enable-plugins Enable installed plugins (plugins will
likely not work)
--post Add an additional post field (repeatable)
--post-file Post an additional file (repeatable)
-p, --proxy Use a proxy
--quality Output image quality (between 0 and 100)
(default 94)
--readme Output program readme
-0, --disable-smart-width * Use the specified width even if it is not
large enough for the content
--stop-slow-scripts Stop slow running javascripts (default)
--no-stop-slow-scripts Do not Stop slow running javascripts
(default)
--transparent * Make the background transparent in pngs
--use-xserver * Use the X server (some plugins and other
stuff might not work without X11)
--user-style-sheet Specify a user style sheet, to load with
every page
--username HTTP Authentication username
-V, --version Output version information an exit
--width Set screen width (default is 1024)
(default 1024)
--zoom Use this zoom factor (default 1)

Items marked * are only available using patched QT.

=============================> Specifying A Proxy <=============================
By default proxy information will be read from the environment variables: proxy,
all_proxy and http_proxy, proxy options can also by specified with the -p switch

:= "http://" | "socks5://"
:= (":" )? "@"
:= "None" | ? ? (":" )?

Here are some examples (In case you are unfamiliar with the BNF):

http://user:password@myproxyserver:8080
socks5://myproxyserver
None

===============================> Static version <===============================
On the wkhtmltopdf website you can download a static version of wkhtmltopdf
. This static binary will
work on most systems and comes with a build in patched QT.

Unfortunately the static binary is not particularly static, on Linux it depends
on both glibc and openssl, furthermore you will need to have an xserver
installed but not necessary running. You will need to have different fonts
install including xfonts-scalable (Type1), and msttcorefonts. See
for trouble shouting.

================================> Compilation <=================================
It can happen that the static binary does not work for your system for one
reason or the other, in that case you might need to compile wkhtmltoimage
yourself.



================================> Installation <================================
There are several ways to install wkhtmltoimage. You can download a already
compiled binary, or you can compile wkhtmltoimage yourself.

==================================> Examples <==================================
This section presents a number of examples of how to invoke wkhtmltoimage.

To convert a remote HTML file to PNG:

wkhtmltoimage http://www.google.com google.png

To convert a local HTML file to PNG:

wkhtmltoimage my.html my.png