| Methods | ||
|---|---|---|
public
|
__construct(array $attributes = null)
|
# |
public
|
set(array|string $attributes, null|mixed $value = null): $this
|
# |
public
|
get(string $key): mixed
|
# |
public
|
setPdfBackend(string $pdfBackend): $this
|
# |
public
|
getPdfBackend(): string
|
# |
public
|
setPdflibLicense(string $pdflibLicense): $this
|
# |
public
|
getPdflibLicense(): string
|
# |
public
|
setChroot(array|string $chroot, $delimiter = ','): $this
|
# |
public
|
getAllowedProtocols(): array
|
# |
public
|
setAllowedProtocols(array $allowedProtocols): $this
|
# |
public
|
addAllowedProtocol(string $protocol, callable ...$rules): $this
|
# |
public
|
getChroot(): array
|
# |
public
|
setDebugCss(boolean $debugCss): $this
|
# |
public
|
getDebugCss(): boolean
|
# |
public
|
setDebugKeepTemp(boolean $debugKeepTemp): $this
|
# |
public
|
getDebugKeepTemp(): boolean
|
# |
public
|
setDebugLayout(boolean $debugLayout): $this
|
# |
public
|
getDebugLayout(): boolean
|
# |
public
|
setDebugLayoutBlocks(boolean $debugLayoutBlocks): $this
|
# |
public
|
getDebugLayoutBlocks(): boolean
|
# |
public
|
setDebugLayoutInline(boolean $debugLayoutInline): $this
|
# |
public
|
getDebugLayoutInline(): boolean
|
# |
public
|
setDebugLayoutLines(boolean $debugLayoutLines): $this
|
# |
public
|
getDebugLayoutLines(): boolean
|
# |
public
|
setDebugLayoutPaddingBox(boolean $debugLayoutPaddingBox): $this
|
# |
public
|
getDebugLayoutPaddingBox(): boolean
|
# |
public
|
setDebugPng(boolean $debugPng): $this
|
# |
public
|
getDebugPng(): boolean
|
# |
public
|
setDefaultFont(string $defaultFont): $this
|
# |
public
|
getDefaultFont(): string
|
# |
public
|
setDefaultMediaType(string $defaultMediaType): $this
|
# |
public
|
getDefaultMediaType(): string
|
# |
public
|
setDefaultPaperSize(string|float[] $defaultPaperSize): $this
|
# |
public
|
setDefaultPaperOrientation(string $defaultPaperOrientation): $this
|
# |
public
|
getDefaultPaperSize(): string|float[]
|
# |
public
|
getDefaultPaperOrientation(): string
|
# |
public
|
setDpi(int $dpi): $this
|
# |
public
|
getDpi(): int
|
# |
public
|
setFontCache(string $fontCache): $this
|
# |
public
|
getFontCache(): string
|
# |
public
|
setFontDir(string $fontDir): $this
|
# |
public
|
getFontDir(): string
|
# |
public
|
setFontHeightRatio(float $fontHeightRatio): $this
|
# |
public
|
getFontHeightRatio(): float
|
# |
public
|
setIsFontSubsettingEnabled(boolean $isFontSubsettingEnabled): $this
|
# |
public
|
getIsFontSubsettingEnabled(): boolean
|
# |
public
|
isFontSubsettingEnabled(): boolean
|
# |
public
|
setIsHtml5ParserEnabled(boolean $isHtml5ParserEnabled): $this
|
# |
public
|
getIsHtml5ParserEnabled(): boolean
|
# |
public
|
isHtml5ParserEnabled(): boolean
|
# |
public
|
setIsJavascriptEnabled(boolean $isJavascriptEnabled): $this
|
# |
public
|
getIsJavascriptEnabled(): boolean
|
# |
public
|
isJavascriptEnabled(): boolean
|
# |
public
|
setIsPhpEnabled(boolean $isPhpEnabled): $this
|
# |
public
|
getIsPhpEnabled(): boolean
|
# |
public
|
isPhpEnabled(): boolean
|
# |
public
|
setIsRemoteEnabled(boolean $isRemoteEnabled): $this
|
# |
public
|
getIsRemoteEnabled(): boolean
|
# |
public
|
isRemoteEnabled(): boolean
|
# |
public
|
setLogOutputFile(string $logOutputFile): $this
|
# |
public
|
getLogOutputFile(): string
|
# |
public
|
setTempDir(string $tempDir): $this
|
# |
public
|
getTempDir(): string
|
# |
public
|
setRootDir(string $rootDir): $this
|
# |
public
|
getRootDir(): string
|
# |
public
|
setHttpContext(resource|array $httpContext): $this
|
# |
public
|
getHttpContext(): resource
|
# |
public
|
validateLocalUri(string $uri)
|
# |
public
|
validatePharUri(string $uri)
|
# |
public
|
validateRemoteUri(string $uri)
|
# |
| Properties | |||
|---|---|---|---|
private
|
string
|
$rootDir
|
# |
private
|
string
|
$tempDir
|
# |
private
|
string
|
$fontDir
|
# |
private
|
string
|
$fontCache
|
# |
private
|
array
|
$chroot
|
# |
private
|
array
|
$allowedProtocols = ["file://" => ["rules" => []], "http://" => ["rules" => []], "https://" => ["rules" => []]]
|
# |
private
|
string
|
$logOutputFile
|
# |
private
|
string
|
$defaultMediaType = "screen"
|
# |
private
|
string|float[]
|
$defaultPaperSize = "letter"
|
# |
private
|
string
|
$defaultPaperOrientation = "portrait"
|
# |
private
|
string
|
$defaultFont = "serif"
|
# |
private
|
int
|
$dpi = 96
|
# |
private
|
float
|
$fontHeightRatio = 1.1
|
# |
private
|
bool
|
$isPhpEnabled = false
|
# |
private
|
bool
|
$isRemoteEnabled = false
|
# |
private
|
bool
|
$isJavascriptEnabled = true
|
# |
private
|
bool
|
$isHtml5ParserEnabled = true
|
# |
private
|
bool
|
$isFontSubsettingEnabled = true
|
# |
private
|
bool
|
$debugPng = false
|
# |
private
|
bool
|
$debugKeepTemp = false
|
# |
private
|
bool
|
$debugCss = false
|
# |
private
|
bool
|
$debugLayout = false
|
# |
private
|
bool
|
$debugLayoutLines = true
|
# |
private
|
bool
|
$debugLayoutBlocks = true
|
# |
private
|
bool
|
$debugLayoutInline = true
|
# |
private
|
bool
|
$debugLayoutPaddingBox = true
|
# |
private
|
string
|
$pdfBackend = "CPDF"
|
# |
private
|
string
|
$pdflibLicense = ""
|
# |
private
|
resource
|
$httpContext
|
# |