wkhtmltox\Image\Converter::__construct

(wkhtmltox >= 0.1.0)

wkhtmltox\Image\Converter::__constructCré un nouveau convertisseur d'image

Description

publicwkhtmltox\Image\Converter::__construct(string$buffer = ?, array$settings = ?)

Crée un convertisseur d'image, en utilisant optionnellement un buffer d'entrée ainsi qu'une configuration

Liste de paramètres

buffer

HTML

settings

NomDescriptionValeurHistorique
inURL ou chemin du fichier d'entrée, si la sortie "-" est utilisée/chemin/vers/markup.html>= 0.1.0
outChemin 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
fmtformat de sortie à utiliser
""default
jpgsortie sous la forme d'un JPEG
pngsortie sous la forme d'un PNG
bmpsortie sous la forme d'un bitmap
svgsortie sous la forme d'un SVG
>= 0.1.0
transparentlors d'une sortie en PNG ou SVG, rend l'arrière plan transparentbooléen>= 0.1.0
screenWidthla largeur d'écran à utiliser pour le rendu en pixels800>= 0.1.0
smartWidthlorsque vaut true, la largeur de l'écran est étendu à la largeur du contenubooléen>= 0.1.0
qualityFacteur de compression à utiliser lorsque la sortie est une image JPEG94>= 0.1.0
crop.leftGauche/coordonnée en X de la fenêtre à capturer, en pixels200>= 0.1.0
crop.topHaut/coordonnée en Y de la fenêtre à capturer, en pixels200>= 0.1.0
crop.widthLargeur de la fenêtre à capturer, en pixels200>= 0.1.0
crop.heightHauteur de la fenêtre à capturer, en pixels200>= 0.1.0
load.cookieJarChemin du fichier utilisé pour charger et stocker les cookies./tmp/cookies.txt>= 0.1.0
load.usernameuser name to use when loging into a websitebart>= 0.1.0
load.passwordthe password to used when logging into a websiteelbarto>= 0.1.0
load.jsdelaythe amount of time in milliseconds to wait after a page is loaded until it is captured1200>= 0.1.0
load.zoomFactorhow much zoom should be applied to the content2.2>= 0.1.0
load.customHeaderscustom headers to send when requesting the main web page >= 0.1.0
load.repertCustomHeadersset true to send with all requestsboolean>= 0.1.0
load.cookiescookie string to send when requesting the main web page >= 0.1.0
load.postpost string to send when requesting the main web page >= 0.1.0
load.blockLocalFileAccessdisallow local and piped files to access other local filesboolean>= 0.1.0
load.stopSlowScriptstop slow running javascriptboolean 
load.debugJavascriptallow javascript to raise warningsboolean>= 0.1.0
load.loadErrorHandlingset error handling strategy
abortabort the convertion process
skipdo not add the object to the final output
ignoretry to add the object to the final output
>= 0.1.0
load.proxy  >= 0.1.0
web.backgroundinclude background image in outputboolean>= 0.1.0
web.loadImagesinclude images in outputboolean>= 0.1.0
web.enableJavascriptenable or disable javascriptboolean>= 0.1.0
web.enableIntelligentShrinkingenable to attempt to fit more content on page, only applies to PDF outputboolean>= 0.1.0
web.minimumFontSizethe minimum font size allowed9>= 0.1.0
web.printMediaTypeprint content using print media type instead of screen media typeboolean>= 0.1.0
web.defaultEncodingcontent to use where no encoding is specifiedutf-8>= 0.1.0
web.userStyleSheetURL or path to a user specified style sheet/path/to/style.css>= 0.1.0
web.enablePluginsenable or disable NS pluginsboolean>= 0.1.0
To Top