Constants

DEFAULT_FONT

DEFAULT_FONT

Properties

$header

$header : 

Type

$footer

$footer : 

Type

$content

$content : 

Type

$font

$font : 

Type

$font_by_lang

$font_by_lang : 

Type

Methods

__construct()

__construct(  $use_cache = false,   $orientation = 'P') 

Parameters

$use_cache
$orientation

setEncoding()

setEncoding(string  $encoding) 

set the PDF encoding

Parameters

string $encoding

createHeader()

createHeader(string  $header) 

set the PDF header

Parameters

string $header

HTML

createFooter()

createFooter(string  $footer) 

set the PDF footer

Parameters

string $footer

HTML

createContent()

createContent(string  $content) 

create the PDF content

Parameters

string $content

HTML

setFontForLang()

setFontForLang(string  $iso_lang) 

Change the font

Parameters

string $iso_lang

Header()

Header() 

Footer()

Footer() 

render()

render(string  $filename,   $display = true) 

Render the pdf file

Parameters

string $filename
$display

: true:display to user, false:save, 'I','D','S' as fpdf display

Throws

\PrestaShopException

writePage()

writePage() 

Write a PDF page

getRandomSeed()

getRandomSeed(  $seed = '') 

Override of TCPDF::getRandomSeed() - getmypid() is blocked on several hosting

Parameters

$seed