classes-TCPDFEX

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
Tags
class

TCPDFEX This is an extension of the TCPDF class for creating PDF document. This extension allows you to define custom Header and Footer for PDF documents.

author

Nicola Asuni - info@tecnick.com

Table of Contents

Properties

$booklet  : mixed
$cell_height_ratio  : mixed
$header_xobjid  : mixed
$imgscale  : mixed
$k  : mixed
$original_lMargin  : mixed
$original_rMargin  : mixed
$page  : mixed
$rtl  : mixed
$w  : mixed
$x  : mixed
$y  : mixed
$tce_cell_height_ratio  : mixed
$tce_data_cell_height  : mixed
$tce_main_cell_height  : mixed
$tce_page_width  : mixed
$tcexam_backlink  : mixed
URL link that points back to TCExam website.

Methods

__construct()  : mixed
This is the class constructor.
Footer()  : mixed
This method is used to render the page footer and overrides the original Footer() method on TCPDF.
Header()  : mixed
This method is used to render the page header and overrides the original Header() method on TCPDF.
printQuestionStats()  : mixed
Print question stats.
printSVGStatsGraph()  : mixed
Print SVG graph
printTestResultStat()  : mixed
Print test stats table
printTestUserInfo()  : mixed
Print testuser data
printUserTestDetails()  : mixed
print test details for the selected user
setTCExamBackLink()  : mixed
Set an URL link that points back to TCExam website (this will be printed as QR-Code on header).

Properties

$cell_height_ratio

public mixed $cell_height_ratio

$header_xobjid

public mixed $header_xobjid

$original_lMargin

public mixed $original_lMargin

$original_rMargin

public mixed $original_rMargin

$tce_cell_height_ratio

protected mixed $tce_cell_height_ratio
Tags
protected

$tce_data_cell_height

protected mixed $tce_data_cell_height
Tags
protected

$tce_main_cell_height

protected mixed $tce_main_cell_height
Tags
protected

$tce_page_width

protected mixed $tce_page_width
Tags
protected

URL link that points back to TCExam website.

protected mixed $tcexam_backlink = ''
Tags
protected

Methods

__construct()

This is the class constructor.

public __construct([ $orientation = 'P' ][,  $unit = 'mm' ][,  $format = 'A4' ][,  $unicode = true ][,  $encoding = 'UTF-8' ][,  $diskcache = false ][,  $pdfa = false ]) : mixed

It allows to set up the page format, the orientation and the measure unit used in all the methods (except for the font sizes).

Parameters
$orientation : = 'P'

(string) page orientation. Possible values are (case insensitive):

  • P or Portrait (default)
  • L or Landscape
  • '' (empty string) for automatic orientation

$unit : = 'mm'

(string) User measure unit. Possible values are:

  • pt: point
  • mm: millimeter (default)
  • cm: centimeter
  • in: inch

A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit.

$format : = 'A4'

(mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().

$unicode : = true

(boolean) TRUE means that the input text is unicode (default = true)

$encoding : = 'UTF-8'

(string) Charset encoding; default is UTF-8.

$diskcache : = false

(boolean) If TRUE reduce the RAM memory usage by caching temporary data on filesystem (slower).

$pdfa : = false

(boolean) If TRUE set the document to PDF/A mode.

Tags
public
see

getPageSizeFromFormat(), setPageFormat()

This method is used to render the page footer and overrides the original Footer() method on TCPDF.

public Footer() : mixed
Tags
public

Header()

This method is used to render the page header and overrides the original Header() method on TCPDF.

public Header() : mixed
Tags
public

printQuestionStats()

Print question stats.

public printQuestionStats( $stats[,  $display_mode = 2 ]) : mixed
Parameters
$stats :

(array) data to print

$display_mode : = 2

(int) display mode: 0 = disabled; 1 = minimum; 2 = module; 3 = subject; 4 = question; 5 = answer.

Tags
public

printSVGStatsGraph()

Print SVG graph

public printSVGStatsGraph( $svgdata) : mixed
Parameters
$svgdata :

(string) String containing SVG data to print.

Tags
public

printTestResultStat()

Print test stats table

public printTestResultStat( $data[,  $pubmode = false ][,  $stats = 2 ]) : mixed
Parameters
$data :

(array) Array containing test statistics.

$pubmode : = false

(boolean) If true filter the results for the public interface.

$stats : = 2

(int) 2 = full stats; 1 = user stats; 0 = disabled stats;

printTestUserInfo()

Print testuser data

public printTestUserInfo( $data[,  $onlytext = false ]) : mixed
Parameters
$data :

(array) Array containing test statistics.

$onlytext : = false

(boolean) If true print only text questions.

printUserTestDetails()

print test details for the selected user

public printUserTestDetails( $data[,  $onlytext = false ]) : mixed
Parameters
$data :

(array) Testuser data array.

$onlytext : = false

(boolean) If true print only text questions.

Set an URL link that points back to TCExam website (this will be printed as QR-Code on header).

public setTCExamBackLink( $link) : mixed
Parameters
$link :

URL link.

Tags
public
On this page
 

© 2004-2024 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy