(wkhtmltox >= 0.1.0)
wkhtmltox\Image\Converter::__construct — Cré un nouveau convertisseur d'image
$buffer = ?, array $settings = ?)Crée un convertisseur d'image, en utilisant optionnellement un buffer d'entrée ainsi qu'une configuration
bufferHTML
settings
| Nom | Description | Valeur | Historique | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| in | URL ou chemin du fichier d'entrée, si la sortie "-" est utilisée | /chemin/vers/markup.html | >= 0.1.0 | ||||||||||
| out | Chemin du fichier de sortie, si la sortie "-" est utilisée ; par défaut, un buffer inter est utilisé | /chemin/vers/sortie.png | >= 0.1.0 | ||||||||||
| fmt | format de sortie à utiliser | 
 | >= 0.1.0 | ||||||||||
| transparent | lors d'une sortie en PNG ou SVG, rend l'arrière plan transparent | booléen | >= 0.1.0 | ||||||||||
| screenWidth | la largeur d'écran à utiliser pour le rendu en pixels | 800 | >= 0.1.0 | ||||||||||
| smartWidth | lorsque vaut true, la largeur de l'écran est étendu à la largeur du contenu | booléen | >= 0.1.0 | ||||||||||
| quality | Facteur de compression à utiliser lorsque la sortie est une image JPEG | 94 | >= 0.1.0 | ||||||||||
| crop.left | Gauche/coordonnée en X de la fenêtre à capturer, en pixels | 200 | >= 0.1.0 | ||||||||||
| crop.top | Haut/coordonnée en Y de la fenêtre à capturer, en pixels | 200 | >= 0.1.0 | ||||||||||
| crop.width | Largeur de la fenêtre à capturer, en pixels | 200 | >= 0.1.0 | ||||||||||
| crop.height | Hauteur de la fenêtre à capturer, en pixels | 200 | >= 0.1.0 | ||||||||||
| load.cookieJar | Chemin du fichier utilisé pour charger et stocker les cookies. | /tmp/cookies.txt | >= 0.1.0 | ||||||||||
| load.username | user name to use when loging into a website | bart | >= 0.1.0 | ||||||||||
| load.password | the password to used when logging into a website | elbarto | >= 0.1.0 | ||||||||||
| load.jsdelay | the amount of time in milliseconds to wait after a page is loaded until it is captured | 1200 | >= 0.1.0 | ||||||||||
| load.zoomFactor | how much zoom should be applied to the content | 2.2 | >= 0.1.0 | ||||||||||
| load.customHeaders | custom headers to send when requesting the main web page | >= 0.1.0 | |||||||||||
| load.repertCustomHeaders | set true to send with all requests | boolean | >= 0.1.0 | ||||||||||
| load.cookies | cookie string to send when requesting the main web page | >= 0.1.0 | |||||||||||
| load.post | post string to send when requesting the main web page | >= 0.1.0 | |||||||||||
| load.blockLocalFileAccess | disallow local and piped files to access other local files | boolean | >= 0.1.0 | ||||||||||
| load.stopSlowScript | stop slow running javascript | boolean | |||||||||||
| load.debugJavascript | allow javascript to raise warnings | boolean | >= 0.1.0 | ||||||||||
| load.loadErrorHandling | set error handling strategy | 
 | >= 0.1.0 | ||||||||||
| load.proxy | >= 0.1.0 | ||||||||||||
| web.background | include background image in output | boolean | >= 0.1.0 | ||||||||||
| web.loadImages | include images in output | boolean | >= 0.1.0 | ||||||||||
| web.enableJavascript | enable or disable javascript | boolean | >= 0.1.0 | ||||||||||
| web.enableIntelligentShrinking | enable to attempt to fit more content on page, only applies to PDF output | boolean | >= 0.1.0 | ||||||||||
| web.minimumFontSize | the minimum font size allowed | 9 | >= 0.1.0 | ||||||||||
| web.printMediaType | print content using print media type instead of screen media type | boolean | >= 0.1.0 | ||||||||||
| web.defaultEncoding | content to use where no encoding is specified | utf-8 | >= 0.1.0 | ||||||||||
| web.userStyleSheet | URL or path to a user specified style sheet | /path/to/style.css | >= 0.1.0 | ||||||||||
| web.enablePlugins | enable or disable NS plugins | boolean | >= 0.1.0 |