php8.5
Home/ Manual/ pdf / converter/ wkhtmltox\PDF\Converter::__construct

wkhtmltox\PDF\Converter::__construct

PHP function Edit on GitHub ✎

(wkhtmltox >= 0.1.0)

Create a new PDF converter

Description

wkhtmltox\PDF\Converter::__construct([array $settings])

Creates a PDF converter, using optional configuration settings

Parameters

settings
NameDescriptionValuesChangelog
size.pageSizepaper size of output documentA4>= 0.1.0
size.widthwith of the output document210mm>= 0.1.0
size.heightheight of the output document297mm>= 0.1.0
orientationorientation of the output documentLandscapePortrait>= 0.1.0
Landscape
Portrait
colorModecolor mode of the output documentColorGreyscale>= 0.1.0
Color
Greyscale
resolutionresolution of the output documentmost likely has no effect>= 0.1.0
dpidpi to use while printing80>= 0.1.0
pageOffsetinteger added to page numbers generating headers, footers, and toc>= 0.1.0
copies>= 0.1.0
collatecollate copiesboolean>= 0.1.0
outlinegenerate PDF outlineboolean>= 0.1.0
outlineDepthmaximum depth of outline>= 0.1.0
dumpOutlinepath of file to dump outline XML>= 0.1.0
outpath of output file, if "-" stdout is used>= 0.1.0
documentTitletitle for the output document>= 0.1.0
useCompressionenable or disable lossless compressionboolean>= 0.1.0
margin.topsize of the top margin2cm>= 0.1.0
margin.bottomsize of the bottom margin2cm>= 0.1.0
margin.leftsize of the left margin2cm>= 0.1.0
margin.rightsize of the right margin2cm>= 0.1.0
imageDPImaximum DPI for images in the output document>= 0.1.0
imageQualitythe jpeg compression factor for images in the output document94>= 0.1.0
load.cookieJarpath of file used to load and store cookies/tmp/cookies.txt>= 0.1.0

Source: reference/wkhtmltox/wkhtmltox/pdf/converter/construct.xml · from the official PHP manual (php/doc-en)