wkhtmltox\Image\Converter::__construct

(wkhtmltox >= 0.1.0)

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

Description

public wkhtmltox\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

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
"" default
jpg sortie sous la forme d'un JPEG
png sortie sous la forme d'un PNG
bmp sortie sous la forme d'un bitmap
svg sortie sous la forme d'un SVG
>= 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
abort abort the convertion process
skip do not add the object to the final output
ignore try to add the object to the final output
>= 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

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top