Documentation

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
int

getCoreFonts()

Get the stored font list from the tcpdf library

public getCoreFonts() : type
Return values
type

getCurrentFont()

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
string

getFontFamily()

Get the name of the current loaded font family

public getFontFamily() : string
Return values
string

getFontFiles()

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>

getPdfAMode()

Checks if the PDF/A mode is supported

public getPdfAMode() : bool
Return values
bool

getProtectedFontBuffer()

Get the buffer description if available from the font key name passed as argument

public getProtectedFontBuffer(string $fontKey) : type
Parameters
$fontKey : string
Return values
type

getState()

Get the state of the creation of the PDF process

public getState() : int
Return values
int

sanitizer()

public sanitizer(string $raw[, string $encoding = 'WINDOWS-1252' ]) : string
Parameters
$raw : string
$encoding : string = 'WINDOWS-1252'
Return values
string

sanitizerPOP()

public sanitizerPOP(string $raw[, string $encoding = 'WINDOWS-1252' ]) : string
Parameters
$raw : string
$encoding : string = 'WINDOWS-1252'
Return values
string

        
On this page

Search results