Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Wrapper class that extends TCPDF (lib/tcpdf/tcpdf.php). More...
Public Member Functions | |
__construct ($orientation='P', $unit='mm', $format='A4', $unicode=true, $encoding='UTF-8') | |
Class constructor. | |
get_export_fontlist () | |
Get font list from config. | |
get_font_families () | |
Returns list of font families and types of fonts. | |
is_core_font_family ($fontfamily) | |
Is this font family one of core fonts? | |
Output ($name='doc.pdf', $dest='I') | |
Send the document to a given destination: string, local file or browser. | |
Wrapper class that extends TCPDF (lib/tcpdf/tcpdf.php).
Moodle customisations are done here.
pdf::__construct | ( | $orientation = 'P', | |
$unit = 'mm', | |||
$format = 'A4', | |||
$unicode = true, | |||
$encoding = 'UTF-8' ) |
Class constructor.
See the parent class documentation for the parameters info.
pdf::get_export_fontlist | ( | ) |
Get font list from config.
array|string[] |
pdf::get_font_families | ( | ) |
Returns list of font families and types of fonts.
array | multidimensional array with font families as keys and B, I, BI and N as values. |
pdf::is_core_font_family | ( | $fontfamily | ) |
Is this font family one of core fonts?
string | $fontfamily |
bool |
pdf::Output | ( | $name = 'doc.pdf', | |
$dest = 'I' ) |
Send the document to a given destination: string, local file or browser.
In the last case, the plug-in may be used (if present) or a download ("Save as" dialog box) may be forced.
The method first calls Close() if necessary to terminate the document.
$name | (string) The name of the file when saved. Note that special characters are removed and blanks characters are replaced with the underscore character. |
$dest | (string) Destination where to send the document. It can take one of the following values:
|