docs/libwkhtmltox/pagesettings.html
| libwkhtmltox |
Setting
Settings can be supplied to PDF and image c-bindings using utf-8 encoded strings. This is done by relatively simple reflection on the CropSettings, HeaderFooter, Margin, ImageGlobal, PdfGlobal, PdfObject, Size, and TableOfContent classes.
The following web page specific settings apply
The following settings apply for object loading.
load.username The user name to use when loging into a website, E.g. "bart"
load.password The password to used when logging into a website, E.g. "elbarto"
load.jsdelay The mount of time in milliseconds to wait after a page has done loading until it is actually printed. E.g. "1200". We will wait this amount of time or until, javascript calls window.print().
load.zoomFactor How much should we zoom in on the content? E.g. "2.2".
load.customHeaders TODO
load.repertCustomHeaders Should the custom headers be sent all elements loaded instead of only the main page? Must be either "true" or "false".
load.cookies TODO
load.post TODO
load.blockLocalFileAccess Disallow local and piped files to access other local files. Must be either "true" or "false".
load.stopSlowScript Stop slow running javascript. Must be either "true" or "false".
load.debugJavascript Forward javascript warnings and errors to the warning callback. Must be either "true" or "false".
load.loadErrorHandling How should we handle obejcts that fail to load. Must be one of:
load.proxy String describing what proxy to use when loading the object.
load.runScript TODO
load.printMediaType Should the content be printed using the print media type instead of the screen media type. Must be either "true" or "false". Has no effect for wkhtmltoimage.
The same settings can be applied for headers and footers, here there are explained in terms of the header.
The [wkhtmltopdf_global_settings](structwkhtmltopdf global settings.html) structure contains the following settings:
The [wkhtmltopdf_object_settings](structwkhtmltopdf object settings.html) structure contains the following settings:
The wkhtmltoimage_global_settings structure contains the following settings:
Generated by 1.8.17