PDFController
extends AbstractDebugPDF
in package
Collection of methods to set the pdf defaults, to fix missing fonts and to add encoding filter
Table of Contents
Methods
- __construct() : mixed
- currentUnicodeState() : int
- Checks if the font supports unicode mode. 0||1
- fixBoldMissing() : mixed
- fixFontFiles() : void
- getCoreFonts() : type
- Get the stored font list from the tcpdf library
- getCurrentFont() : array<string|int, mixed>
- Get the full font buffer description with vector coordinates
- getDefaultFontKey() : string
- getFontFamily() : string
- Get the name of the current loaded font family
- getFontFiles() : array<string|int, mixed>
- Get the font definitions properties
- getFontKeys() : array<string|int, mixed>
- Get the names of the loaded font keys
- getNumFonts() : int
- getPdfAMode() : bool
- Checks if the PDF/A mode is supported
- getProtectedFontBuffer() : type
- Get the buffer description if available from the font key name passed as argument
- getState() : int
- Get the state of the creation of the PDF process
- sanitizer() : string
- sanitizerPOP() : string
- setDefaultFont() : void
- setFontPath() : void
Methods
__construct()
public
__construct(mixed $env[, mixed $orientation = 'L' ][, mixed $unit_of_measure = 'mm' ][, mixed $page_format = 'A4' ][, mixed $unicode = true ][, mixed $encoding = 'UTF-8' ]) : mixed
Parameters
- $env : mixed
- $orientation : mixed = 'L'
- $unit_of_measure : mixed = 'mm'
- $page_format : mixed = 'A4'
- $unicode : mixed = true
- $encoding : mixed = 'UTF-8'
currentUnicodeState()
Checks if the font supports unicode mode. 0||1
public
currentUnicodeState() : int
Return values
intfixBoldMissing()
public
fixBoldMissing() : mixed
fixFontFiles()
public
fixFontFiles() : void
getCoreFonts()
Get the stored font list from the tcpdf library
public
getCoreFonts() : type
Return values
typegetCurrentFont()
Get the full font buffer description with vector coordinates
public
getCurrentFont() : array<string|int, mixed>
Return values
array<string|int, mixed>getDefaultFontKey()
public
getDefaultFontKey() : string
Return values
stringgetFontFamily()
Get the name of the current loaded font family
public
getFontFamily() : string
Return values
stringgetFontFiles()
Get the font definitions properties
public
getFontFiles() : array<string|int, mixed>
Return values
array<string|int, mixed>getFontKeys()
Get the names of the loaded font keys
public
getFontKeys() : array<string|int, mixed>
Return values
array<string|int, mixed>getNumFonts()
public
getNumFonts() : int
Return values
intgetPdfAMode()
Checks if the PDF/A mode is supported
public
getPdfAMode() : bool
Return values
boolgetProtectedFontBuffer()
Get the buffer description if available from the font key name passed as argument
public
getProtectedFontBuffer(string $fontKey) : type
Parameters
- $fontKey : string
Return values
typegetState()
Get the state of the creation of the PDF process
public
getState() : int
Return values
intsanitizer()
public
sanitizer(string $raw[, string $encoding = 'WINDOWS-1252' ]) : string
Parameters
- $raw : string
- $encoding : string = 'WINDOWS-1252'
Return values
stringsanitizerPOP()
public
sanitizerPOP(string $raw[, string $encoding = 'WINDOWS-1252' ]) : string
Parameters
- $raw : string
- $encoding : string = 'WINDOWS-1252'
Return values
stringsetDefaultFont()
public
setDefaultFont() : void
setFontPath()
public
setFontPath() : void