MYPDF
extends PDFController
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
- Footer() : 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
- getOwnerDetails() : string
- getPageDetails() : string
- 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
- setOwnerDetails() : void
- setPageDetails() : void
Methods
__construct()
public
__construct(mixed $env) : mixed
Parameters
- $env : mixed
currentUnicodeState()
Checks if the font supports unicode mode. 0||1
public
currentUnicodeState() : int
Return values
intfixBoldMissing()
public
fixBoldMissing() : mixed
fixFontFiles()
public
fixFontFiles() : void
Footer()
public
Footer() : 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
intgetOwnerDetails()
public
getOwnerDetails() : string
Return values
stringgetPageDetails()
public
getPageDetails() : string
Return values
stringgetPdfAMode()
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
setOwnerDetails()
public
setOwnerDetails(string $details) : void
Parameters
- $details : string
setPageDetails()
public
setPageDetails(string $details) : void
Parameters
- $details : string