docs/libwkhtmltox/index.html
| libwkhtmltox |
libwkhtmltox Documentation
libwkhtmltox is divided into several parts.
The file pdf.h contains a fairly high level and stable pure c binding to wkhtmltopdf. These binding are well documented and do not depend on QT. Using this is the recommended way of interfacing with the PDF portion of libwkhtmltox.
Using these binding it is relatively straight forward to convert one or more HTML document to a PDF file, using the following process:
wkhtmltopdf_init is called.
A [wkhtmltopdf_global_settings](structwkhtmltopdf global settings.html) object is creating by calling wkhtmltopdf_create_global_settings.
Non web page specific Setting for the conversion are set by multiple calls to wkhtmltopdf_set_global_setting.
A wkhtmltopdf_converter object is created by calling wkhtmltopdf_create_converter, which consumes the global_settings instance.
A number of object (web pages) are added to the conversion process, this is done by
A number of callback function are added to the converter object.
The conversion is performed by calling wkhtmltopdf_convert.
The converter object is destroyed by calling wkhtmltopdf_destroy_converter.
The file image.h contains a fairly high level and stable pure c binding to wkhtmltoimage. These binding are well documented and do not depend on QT. Using this is the recommended way of interfacing with the image portion of libwkhtmltox.
Using these binding it is relatively straight forward to convert one or more HTML document to a raster image or SVG document, using the following process:
The rest of the headers directly exposes the C++ QT dependent class used internally by wkhtmltopdf and wkhtmltoimage. They are not fairly well documented and are not guaranteed to remain stable. unless you know what you are doing you should not use these bindings.
Generated by 1.8.17